From 052042f4db92a4866fcb27c252743d5b6c017d4c Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Thu, 26 Feb 2026 15:53:40 +0000 Subject: [PATCH] Remove table_name requirement from AI chart generation frontend Backend now autonomously discovers relevant tables, so the frontend no longer needs to fetch tables or show a table selector for AI generation. Co-Authored-By: Claude Opus 4.6 --- .../chart-edit/chart-edit.component.css | 11 --------- .../chart-edit/chart-edit.component.html | 15 +----------- .../charts/chart-edit/chart-edit.component.ts | 23 ++++--------------- .../src/app/services/dashboards.service.ts | 2 -- 4 files changed, 5 insertions(+), 46 deletions(-) diff --git a/frontend/src/app/components/charts/chart-edit/chart-edit.component.css b/frontend/src/app/components/charts/chart-edit/chart-edit.component.css index 2498f2107..acc893957 100644 --- a/frontend/src/app/components/charts/chart-edit/chart-edit.component.css +++ b/frontend/src/app/components/charts/chart-edit/chart-edit.component.css @@ -140,17 +140,6 @@ } } -.ai-table-field { - flex: 0 0 220px; -} - -@media (width <= 600px) { - .ai-table-field { - flex: 1; - width: 100%; - } -} - .ai-description-field { flex: 1; } diff --git a/frontend/src/app/components/charts/chart-edit/chart-edit.component.html b/frontend/src/app/components/charts/chart-edit/chart-edit.component.html index 866ab4b55..fd7e37f16 100644 --- a/frontend/src/app/components/charts/chart-edit/chart-edit.component.html +++ b/frontend/src/app/components/charts/chart-edit/chart-edit.component.html @@ -20,7 +20,7 @@

{{ isEditMode() ? 'Edit panel' : 'Create panel' }}

@if (!loading()) {
- @if (aiTables().length > 0 && aiDashboardId()) { + @if (aiDashboardId()) {
@@ -33,19 +33,6 @@

{{ isEditMode() ? 'Edit panel' : 'Create panel' }}

@if (aiExpanded()) {
- - Table - - @for (table of aiTables(); track table.table) { - {{ table.display_name || table.table }} - } - - Select the table to generate a chart for - - Chart description