Repository navigation
[DO NOT MERGE] feat(app): refresh chart explorer UI and clarify AI assistant controls - #3864
elizabetdev wants to merge 25 commits into
Conversation
- Focus the question input instead of the source select, so opening the AI assistant no longer pops the source dropdown. - Show the A shortcut as a Kbd instead of an '[A]' suffix. - Drop the Experimental badge. The assistant is already gated by the server's ANTHROPIC_API_KEY, so the badge implied an opt-in that does not exist. - Replace the chart name field with InlineNameInputControlled so the name is a label until clicked. Refs HDX-6227 Co-authored-by: Cursor <cursoragent@cursor.com>
The assistant expanded inline above the chart, pushing it down and away from where its result appears. It now opens in a resizable panel beside the chart, using the same docking as the alert panel. Generating a chart replaces the current chart and time range, so the success notification now offers an Undo that restores both. Moves the assistant out of DBChartPage into components/ChartAssistant. Co-authored-by: Cursor <cursoragent@cursor.com>
Saving a chart from the explorer was only reachable through an unlabeled kebab menu next to Run, so users did not find it. Make it a labeled secondary button that opens the existing save modal. The modal title and button use sentence case. Adds unit and e2e coverage for the explorer-to-dashboard save. Co-authored-by: Cursor <cursoragent@cursor.com>
The explorer's name field was discarded unless the chart was saved, and it changed nothing visible while exploring. Hide it in the explorer. An unnamed chart now gets a default name from its first series and group by when it is saved to a dashboard, and that name seeds an inline alert's display name. Tile names are still editable in the tile editor. Co-authored-by: Cursor <cursoragent@cursor.com>
The chart type tabs took a full row and the AI assistant toggle sat on its own line above the builder toggle. Move the chart type into the header next to the builder toggle and pass the AI assistant toggle in as a header action, which removes two rows above the chart. Markdown is only offered on dashboard forms. The explorer has nowhere to save a markdown tile, so the option was dead weight there. Existing markdown tiles keep their type. Co-authored-by: Cursor <cursoragent@cursor.com>
Tiles keep the title and description on their own row. Below it, the data source sits on the left and the chart type, builder toggle, and save actions on the right. The explorer has no title row, so its first row is the data source with the tools on the right, including the AI assistant toggle. The data source row moves out of ChartEditorControls into ChartDataSource so the header can own the layout. Raw SQL and PromQL editors don't show a data source here, as before. Co-authored-by: Cursor <cursoragent@cursor.com>
The picker already shows Data Source as its placeholder, so the separate label was redundant. The picker gets an aria-label so it keeps an accessible name. Co-authored-by: Cursor <cursoragent@cursor.com>
The series format drawer took over the whole screen to edit one number format. Open it as a popover anchored to the series' format button instead, so the chart stays visible while editing. The popover owns its open state and mounts its form only while open, so each open starts from the saved format and closing without Apply discards edits. The disclosure state in ChartSeriesEditor and ChartFormulaEditor goes away. The heading is now sentence case. Co-authored-by: Cursor <cursoragent@cursor.com>
The Where input's placeholder and the Lucene language picker already say what the field is. Removing the label lets the input take the space, and the grid template now follows the cells that remain (Where alone, Where with Group By, or Having). Co-authored-by: Cursor <cursoragent@cursor.com>
Series and formulas in the chart editor sit in cards. A swatch and accent bar show the color the chart draws that line in, read back from the rendered chart so it matches even though colors are assigned after sorting by series key. Grouped charts color per group, so their cards show no color. Table cards show the pinned column color. Co-authored-by: Cursor <cursoragent@cursor.com>
Display Settings opened in a Mantine drawer over the page. It now docks in the same right-hand panel as the alert editor, so the preview stays in view while settings change. Only one of the two is open at a time: opening the alert hides display settings, and display settings hide an open alert without discarding its edits. The toolbar groups the series actions (Add Series, Add Formula) on the left and the panel openers (Add alert, Display Settings) on the right. Co-authored-by: Cursor <cursoragent@cursor.com>
The Builder/SQL/PromQL switch decides which source controls apply, but it sat among the chart type and save actions while the source, connection and data source pickers moved between the header and the editor body. The header is now one row in every mode: the mode switch, then that mode's source controls (source; connection and source; or PromQL data source), with chart type and save actions on the right. Display Settings uses the same button in all three editors. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: fb419a5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
E2E Test Results✅ All tests passed • 489 passed • 1 skipped • 1119s
Tests ran across 4 shards in parallel. |
…the AI assistant in a popover Co-authored-by: Cursor <cursoragent@cursor.com>
…der's first row Co-authored-by: Cursor <cursoragent@cursor.com>
… explorer header Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…rt-explorer-ui Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # packages/app/src/DBChartPage.tsx
Co-authored-by: Cursor <cursoragent@cursor.com>
🔴 Tier 4 — CriticalTouches authentication, tenancy data models, the public API or shipped database config — or substantially changes the query rendering engine, background tasks, the OTel pipeline, image build, or release CI. Why this tier:
Review process: Deep review from a domain expert. Synchronous walkthrough may be required. Stats
|
Co-authored-by: Cursor <cursoragent@cursor.com>
| : undefined | ||
| } | ||
| clearErrors={clearErrors} | ||
| chartColor={ |
There was a problem hiding this comment.
🟡 P2 — Series card colors are matched by position to the last run config, so they go stale after a swap or remove/add
The only check here is seriesChartColors.series.length === fields.length. Moving a series with the up/down buttons calls useFieldArray swap, which does not re-run the query. After that, card 0 shows the line color of the series that used to be first, even though a different series now sits in that slot. Remove one series and add another, without running, and you get the same mismatch. Key the colors by field id, or by a hash of the series definition, instead of by index. Failing that, drop them whenever the form's series differ from previewConfig.select, so a card shows no color rather than the wrong one.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| [displayType], | ||
| ); | ||
|
|
||
| const sourceControls = ( |
There was a problem hiding this comment.
🟡 P2 — Markdown tiles now show a data source picker that does nothing
sourceControls is now rendered on every tab. Before, the source select lived in ChartEditorControls, RawSqlChartEditor and PromqlChartEditor, which all sit in the branches after activeTab === 'markdown' ?, so markdown tiles never showed it. Now a dashboard markdown tile gets a source picker (with schema preview) that has no effect. Render ChartDataSource/ChartRawSqlSource only when activeTab !== 'markdown', or only when displayTypeRequiresSource(displayType) is true; that helper is already imported in this file.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| const measure = | ||
| firstSeries.aggFn === 'count' | ||
| ? 'Count of events' | ||
| : `${firstSeries.aggFn} of ${firstSeries.valueExpression?.trim() || 'events'}`; |
There was a problem hiding this comment.
🟡 P2 — getDefaultChartName names every metric chart 'avg of Value'
setMetricName in ChartSeriesEditor sets valueExpression to 'Value' for every metric series. As a result, saved metric tiles and the default alert names all come out as 'avg of Value' or 'sum of Value', and a count on a metric source reads 'Count of events'. renderChartConfig.ts, around line 171, already labels these as ${aggFn}(${metricName}). Accept metricName (and alias) in firstSeries and prefer alias, then metricName, then valueExpression. Add a metric case to the new test.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| () => ({ | ||
| opened, | ||
| setOpened, | ||
| setOpened: openAlertPanel, |
There was a problem hiding this comment.
🟡 P2 — The alert button hides its error badge while Display Settings covers the alert panel
When Display Settings takes the panel, opened in the context stays true but alertVisible is false. AlertPanelButton (AlertPanelButton.tsx:28) uses !alertPanel?.opened to decide whether to carry the alert's error or warning badge, so it drops the badge exactly when the panel showing that error is hidden. It also reports aria-expanded=true for a panel that isn't shown. Add a separate visible: alertVisible to the context and use it for the badge and for aria-expanded. Keep opened for open()'s snapshot logic.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
PR Review
8 finding(s): 🔴 0 P0/P1 · 🟡 7 P2 · 🔵 1 P3 1 posted as inline comment(s) on the changed lines. 2 listed below. 5 unchanged from an earlier push (already inline above). Findings outside the changed lines
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
Deep Review✅ No critical issues found. This is a client-side UI refactor; no finding causes data corruption, a guaranteed crash, or a security regression. The strongest items are a markdown-tab source regression, three risks around the new color/undo/auto-submit behaviors, and test coverage for them. 🟡 P2 — recommended
🔵 P3 nitpicks (8)
Reviewers (10): correctness, adversarial, frontend-races, kieran-typescript, testing, maintainability, project-standards, agent-native, learnings-researcher, previous-comments. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
| } | ||
| clearErrors={clearErrors} | ||
| chartColor={ | ||
| seriesChartColors?.series.length === fields.length |
There was a problem hiding this comment.
🟡 P2 — Series cards show the wrong colors after a swap, or after a remove and add, until the chart is run again
The only staleness check is seriesChartColors.series.length === fields.length. swapSeries (a useFieldArray swap in EditTimeChartForm.tsx:329) does not re-run the query, so 'Move down' on series A swaps the cards but leaves the colors where they were. Card B then shows A's line color, and removing one series and adding another does the same. Fix: also check that each field still matches previewConfig.select[index] (for example isEqual on aggFn, valueExpression and aggCondition), and return no color when it doesn't. That gives the stated intent of 'no color rather than a wrong one'.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| await chartExplorerPage.chartEditor.getSeriesCardColors(); | ||
|
|
||
| expect(new Set(cardColors).size).toBe(2); | ||
| expect([...cardColors].sort()).toEqual([...lineColors].sort()); |
There was a problem hiding this comment.
🟡 P2 — E2E color test sorts both arrays, so it passes when cards have each other's colors
expect([...cardColors].sort()).toEqual([...lineColors].sort()) only checks that the two sets of colors are the same. If series A's card shows B's line color and B's card shows A's, the test still passes. Pair each card with its line instead: hover a line or read the legend and compare against that card's alias, or give the two series distinct aliases and match legend entries to cards by alias.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| const [hasContent, setHasContent] = useState(false); | ||
| const [root, setRoot] = useState<HTMLDivElement | null>(null); | ||
| const showPanel = opened && hasContent; | ||
| const sidePanelVisible = sidePanelOpened === true && sidePanel != null; |
There was a problem hiding this comment.
🟡 P2 — New logic for switching between the alert panel and display settings has no unit test
AlertPanel.test.tsx has no case for sidePanel/sidePanelOpened/onSidePanelClose. Add tests for these cases: the side panel hides an open alert and the alert comes back with its edits when the side panel closes; opening the alert calls onSidePanelClose; a closed side panel with a closed alert renders no alert-panel.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| > | ||
| <Text size="xs" pt="2px"> | ||
| New AI Assistant available, enable with configuring the{' '} | ||
| <code>ANTHROPIC_API_KEY</code> environment variable on the {brandName}{' '} |
There was a problem hiding this comment.
🟡 P2 — New file renders an unstyled <code> element, which breaks the REQUIRED code snippets rule
Replace <code>ANTHROPIC_API_KEY</code> with Mantine <Code>ANTHROPIC_API_KEY</Code>. While moving this callout, also use variant="info" instead of color="dark" variant="outline" (semantic variants rule) and sentence case: 'New AI assistant available'.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| > | ||
| <Stack pr="md" pb="md" role="dialog" aria-label="Display Settings"> | ||
| <Group justify="space-between" wrap="nowrap"> | ||
| <Text fw={600}>Display Settings</Text> |
There was a problem hiding this comment.
🟡 P2 — New panel heading and button use Title Case 'Display Settings'
Under the sentence-case convention, the new panel header text, its aria-label, and the label of the new DisplaySettingsButton (DisplaySettingsButton.tsx:14) should read 'Display settings'. The same applies to 'Time Series' in the new CHART_TYPE_OPTIONS in ChartTypeSwitcher.tsx. Update the e2e and unit locators that match on these labels at the same time.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| setSaveToDashboardModalOpen={setSaveToDashboardModalOpen} | ||
| /> | ||
| actionsTarget={toolbarTargets?.actions} | ||
| />{' '} |
There was a problem hiding this comment.
🟡 P2 — Stray {' '} text node after ChartActionBar
/>{' '} puts a whitespace text node between the action bar and the end of the ErrorBoundary. It looks like a leftover from formatting; delete {' '}.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4733b05. Configure here.
| />, | ||
| toolbarTargets.save, | ||
| )} | ||
| </> |
There was a problem hiding this comment.
Markdown tiles show data source picker
Medium Severity
sourceControls (including ChartDataSource) now always renders in the toolbar, including when activeTab is markdown. Markdown tiles previously had no data source picker because that control lived inside the builder/SQL/PromQL editors. Changing source on a markdown tile dirties the form and can persist a source that the tile does not use.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 4733b05. Configure here.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
| setValue('alert', { | ||
| ...DEFAULT_TILE_ALERT, | ||
| ...(chartName && { displayName: chartName }), | ||
| displayName: |
There was a problem hiding this comment.
🟡 P2 — Alerts on unnamed dashboard tiles now get a fixed name like "Count of events" instead of the server-derived " - Tile"
Before, an unnamed chart set no displayName, so the server named the alert formatTileAlertDisplayName(dashboard.name, tile.name) (packages/common-utils/src/alerts.ts), which includes the dashboard context. Now every unnamed tile alert stores a name built from the query, which drops the dashboard and stays stale if the tile is renamed later. Only fall back to getDefaultChartName in the explorer (!isDashboardForm). RawSqlChartEditor still uses chartName && {...}, so the two editors now behave differently.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| .toHaveLength(2); | ||
| const lineColors = await chartExplorerPage.getLineColors(); | ||
| const cardColors = | ||
| await chartExplorerPage.chartEditor.getSeriesCardColors(); |
There was a problem hiding this comment.
🟡 P2 — The series color E2E test sorts both lists, so it passes even when cards show the wrong line's color
expect([...cardColors].sort()).toEqual([...lineColors].sort()) only checks that the two sets of colors match, not which card got which color. It cannot catch swapped or misindexed colors, which is the mapping this feature exists to get right. Match each card to its line by series alias or legend label, or at least compare the lists in order against known series positions.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| * It becomes the tile name on save and the default alert name, so an unnamed | ||
| * chart still has a name where it is stored. | ||
| */ | ||
| export function getDefaultChartName( |
There was a problem hiding this comment.
🟡 P2 — getDefaultChartName puts raw aggFn values into saved tile names instead of the existing AGG_FNS labels
Tile names come out as none of <expr> for Custom, count_distinct of X, or avg of Value for metric series (the metric name is ignored), and these are saved permanently. Use the labels in AGG_FNS (packages/app/src/ChartUtils.tsx:76) and include metricName for metric sources.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| <Divider my="sm" /> | ||
| <Flex justify="flex-end"> | ||
| <Flex justify="flex-end" mb="md"> | ||
| <Button |
There was a problem hiding this comment.
🟡 P2 — The heatmap editor still has its own inline Display Settings button instead of the new DisplaySettingsButton
Every other editor (builder, SQL, PromQL) now uses DisplaySettingsButton, which is subtle with an icon. The heatmap editor keeps a secondary compact-sm copy, so it looks different and the test id is defined twice. Replace it with <DisplaySettingsButton onClick={onOpenDisplaySettings} />.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| data-testid="display-settings-button" | ||
| > | ||
| <IconAdjustmentsHorizontal size={14} className="me-2" /> | ||
| Display Settings |
There was a problem hiding this comment.
🟡 P2 — New UI text uses Title Case ("Display Settings"), which breaks the sentence case convention
Use "Display settings" here and in the panel header and aria-label (ChartDisplaySettingsDrawer.tsx:332-334). The new ChartGroupByInput ("Group By", "SQL Columns") and the ChartTypeSwitcher label "Time Series" break the same rule.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| <Text size="xs" pt="2px"> | ||
| New AI Assistant available, enable with configuring the{' '} | ||
| <code>ANTHROPIC_API_KEY</code> environment variable on the {brandName}{' '} | ||
| server. |
There was a problem hiding this comment.
🟡 P2 — The new ChartAssistant file renders a raw element, which the code snippet convention forbids
The REQUIRED code snippet rule says inline tokens use Mantine <Code>. Replace <code>ANTHROPIC_API_KEY</code> with <Code>ANTHROPIC_API_KEY</Code>.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
Co-authored-by: Cursor <cursoragent@cursor.com>
| onAddAlert={() => | ||
| setValue('alert', { | ||
| ...DEFAULT_TILE_ALERT, | ||
| ...(chartName && { displayName: chartName }), |
There was a problem hiding this comment.
🟡 P2 — Raw SQL alerts from the explorer now get no default name
The explorer now hides the name field (showChartName={false}), so chartName is always empty there. The builder path falls back to getDefaultChartName for the alert's displayName (ChartEditorControls.tsx), but this raw SQL onAddAlert still uses ...(chartName && { displayName: chartName }). An inline raw-SQL alert created from the explorer therefore has neither a display name nor chartConfig.name. Fix: give it the same fallback, e.g. displayName: chartName || 'Untitled chart', or a name derived from the connection or source.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| ): string { | ||
| if (firstSeries?.aggFn == null) return 'Untitled chart'; | ||
| const measure = | ||
| firstSeries.aggFn === 'count' |
There was a problem hiding this comment.
🟡 P2 — getDefaultChartName gives vague names for metric and quantile series, with inconsistent casing
Picking a metric sets valueExpression to 'Value' (ChartSeriesEditor setMetricName), so every metric chart is named avg of Value and the metric name is lost. Quantile series also drop their level (e.g. quantile of Duration). Raw aggFn names are lowercase while count gets Count of events. Fix: prefer metricName when it is set, include the quantile level, and capitalize the measure. Add test cases for the metric and quantile inputs.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
| data-testid="display-settings-button" | ||
| > | ||
| <IconAdjustmentsHorizontal size={14} className="me-2" /> | ||
| Display Settings |
There was a problem hiding this comment.
🟡 P2 — New UI strings use Title Case instead of sentence case
The conventions require sentence case for every user-facing string. Newly added labels break this: Display Settings here (also the panel heading and aria-label at ChartDisplaySettingsDrawer.tsx:332-334), and Time Series in ChartTypeSwitcher.tsx:25. Change them to Display settings and Time series, and update the e2e locators that match on these names.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
Co-authored-by: Cursor <cursoragent@cursor.com>
|
|
||
| // The explorer no longer names charts, so an unnamed chart gets a name from | ||
| // its query when it is saved as a tile. | ||
| function getTileName(chartConfig: SavedChartConfig): string { |
There was a problem hiding this comment.
🟡 P2 — Explorer SQL/PromQL charts are always saved with the literal name "Untitled chart"
The explorer no longer shows a name field, and getTileName returns the placeholder for every non-builder config (and for builder Search tiles, where select is a string). So every raw SQL or PromQL chart saved from the explorer is stored with the name "Untitled chart". Before this change the user could type a name, or the name was left unset. Leave name unset when no meaningful default exists, so the tile renders its usual untitled placeholder instead of storing placeholder text as user data, or derive a name for these modes too.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond


Summary
Refreshes the chart explorer and chart editor UI (HDX-6227). The explorer had too many rows of controls, no clear way to save a chart, and an AI assistant whose placement and scope were unclear. The changes group the controls by what they do:
The commits are separable by item if you'd rather review them one at a time.
Screenshots or video
Same screen, data (e2e seed data), viewport and theme. Before is the merge base on
main.Explorer, two series (series B filtered to
SeverityText:error)Display Settings
SQL mode
PromQL mode
The AI assistant panel is not shown: it needs an AI-enabled deployment, and I haven't verified it in a browser (see below).
The images live on the
elizabet/hdx-6227-pr-screenshotsbranch. Delete it after this merges.How to reproduce
Starting point:
yarn app:dev:local, then onboarding → "Connect to Demo Server" and open Chart explorer. PromQL mode needsNEXT_PUBLIC_ENABLE_PROMQL=true.On
main:On this branch:
How to test on Vercel preview
Preview routes: /chart
Steps:
Testing
tsc,oxlintandoxfmtare clean forpackages/app. I did not run the fullmake ci-lintormake ci-unit.packages/app/src/componentspasses (3,307 tests), including new unit tests for the series color mapping and the chart type select.Known gaps
setTimeout(() => submitRef.current(), 100).ChartDisplaySettingsDraweris no longer a drawer. I kept the name to avoid touching about 100 test call sites.References
Note
Medium Risk
Large UI refactor across chart explorer, editor, and alert side panel touches shared form plumbing and save/dashboard naming; behavior is mostly presentation but regressions could affect chart runs, saves, and panel state.
Overview
Refreshes Chart Explorer around a sticky two-row
PageLayoutheader: mode/source controls, labeled Save to dashboard, and the AI assistant as a sparkles popover (hotkeyA) with post-generation undo via extractedChartAssistantPopover. The explorer hides the chart name field; saving to a dashboard now appliesgetDefaultChartNamefrom the first series and group-by.The chart editor toolbar can be hoisted into the page header through
EditTimeChartFormtoolbarTargets(portals for leading, chart type, save, and time/granularity/Run). Chart type moves from tabs to an iconChartTypeSwitcher; Markdown is omitted outside dashboard tiles.Series and formulas use
SeriesCardaccents fed by colors reported fromDBTimeChart(TimeChartSeriesColors/getSeriesChartColors). Per-series number format uses a popover instead of a drawer. Display settings render in the alert panel’s right slot (AlertPanelLayoutsidePanel) rather than a Mantine drawer, with mutual exclusivity vs the alert editor.Supporting cleanup: shared
ChartDataSource/ChartRawSqlSource,DisplaySettingsButton, renamed live-interval setter in search, docs/skills for Chart Explorer header pattern, tests and E2E selectors scoped to the page root for header-mounted controls.Reviewed by Cursor Bugbot for commit fb419a5. Bugbot is set up for automated code reviews on this repo. Configure here.