Skip to content

Remove table_name requirement from AI chart generation frontend#1639

Merged
gugu merged 1 commit into
mainfrom
frontend_ai_chart_remove_table_name
Feb 26, 2026
Merged

Remove table_name requirement from AI chart generation frontend#1639
gugu merged 1 commit into
mainfrom
frontend_ai_chart_remove_table_name

Conversation

@gugu

@gugu gugu commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Backend now autonomously discovers relevant tables, so the frontend no longer needs to fetch tables or show a table selector for AI generation.

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 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 26, 2026 15:57
@gugu gugu enabled auto-merge (squash) February 26, 2026 15:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the frontend “table selection” requirement from AI chart generation, aligning the UI/service contract with the updated backend behavior where relevant tables are discovered automatically.

Changes:

  • Updated DashboardsService.generateWidgetWithAi to remove the tableName argument and no longer send it as a query param.
  • Simplified ChartEditComponent AI generation flow by removing table-fetching prerequisites and the table selector UI.
  • Cleaned up related CSS for the removed AI table selector field.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
frontend/src/app/services/dashboards.service.ts Drops tableName from the AI widget generation API call signature and request params.
frontend/src/app/components/charts/chart-edit/chart-edit.component.ts Removes table prerequisites and updates AI generation callsite to match the new service signature.
frontend/src/app/components/charts/chart-edit/chart-edit.component.html Removes the table selector and shows the AI section based only on dashboard availability.
frontend/src/app/components/charts/chart-edit/chart-edit.component.css Removes styling for the deleted .ai-table-field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gugu gugu merged commit 5408467 into main Feb 26, 2026
17 of 19 checks passed
@gugu gugu deleted the frontend_ai_chart_remove_table_name branch February 26, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants