Frontend widgets and export interactions
The frontend turns a dashboard definition and its query results into a readable, interactive view. It keeps data work separate from presentation so each metric, chart, table, and image widget can refresh with the active filters while text and divider widgets remain static. Data marks and table cells can also drive dashboard filters. The same view provides query inspection, layout controls, and user-triggered CSV, PNG, and PDF exports.
Widget rendering model
The dashboard view places widgets in rows and gives each data-backed widget its own result set. A shared widget frame supplies the title, description, loading state, error state, query details, and export affordances before it passes the result to the matching renderer. Image widgets use the same data result path but render directly inside the frame.
Widget descriptions are available from the frame’s information tooltip. This keeps explanatory text available without taking space from the metric, chart, table, or image content.
The main flow moves from dashboard state to widget data and then to either an interactive view or an export action.
flowchart LR
A[Dashboard definition] --> B[Active filters and tabs]
B --> C[Widget data]
C --> D[Widget frame]
D --> E[Metric]
D --> F[Chart]
D --> G[Table]
D --> H[Image]
D --> I[Text or divider]
D --> J[Query details]
D --> K[Widget export]
B --> L[Dashboard export]
E --> M[Cross-filter]
F --> M
G --> M
M --> B
Metric widgets
A metric widget presents one value as a compact summary of a result set. It reads the configured value field from the first result row and applies the widget’s value format before displaying it. If the field is not present, it uses the first result value as a fallback.
The value area fits the displayed text to the available width. It reacts to widget resizing and to bundled web-font loading, with a lower size limit that keeps the value readable. The dashboard uses the same bundled type family for readable values and offline use.
References: frontend/…/MetricWidget.tsx• L10-73 frontend/…/format.ts• L53-77 frontend/…/dac.css• L38-73
Chart widgets
Charts turn result columns into visual series through explicit axis, value, label, and category encodings. The chart choice changes the visual question being answered: line, area, and bar charts show change or comparison, while proportion, flow, distribution, range, relationship, and progress charts show other views of the same result rows.
Charts provide shared reading aids such as formatted axes, tooltips, legends, reference guides, and theme colors. Multiple value fields create multiple series. A category field can split one value field into named series. A second value axis lets series with different units share one chart. Some chart types derive views in the browser, such as histogram bins, boxplot summaries, normalized bars, waterfall steps, funnel conversion values, uncertainty bands, range bars, and heatmap cells.
Chart marks can act as cross-filter controls when the dashboard defines a matching filter. A click or keyboard action selects the mark’s data value and refreshes related widgets. Date-aware charts also support dragging across a range. While a refresh is pending, the old view can remain visible but its controls are not ready for another selection. A short press selects a mark, while a drag does not turn into an accidental selection.
Charts format dates for axes and tooltips according to the field meaning and reduce labels when the plot is narrow. They keep value formatting tied to the relevant axis, including when a chart has left and right value axes. Named slices can use display labels and colors without changing the raw values used by filters.
Vega-Lite charts use a declarative chart description with the widget query result as their data source. The frontend converts named result columns into records, supplies the active dashboard theme, and replaces the chart data source with the widget result. External data URLs are rejected. Image marks can load only through the dashboard image rules. The chart uses a browser-safe expression interpreter and disables embedded actions so custom charts remain inside the dashboard’s data, security, layout, cross-filter, and export model.
Simple or layered non-faceted charts fit both dimensions of their widget. Faceted and other composed views keep their own internal composition and scale to the available area instead. The chart surface and tooltips use the dashboard theme so the visual remains readable beside the other widgets. Long axis and legend labels expose their full text on hover so a compact chart remains readable.
Chart rendering uses an SVG view. The chart marks the view as pending while it first renders or responds to a size change, so visual export waits for the chart to settle. Empty results show a no-data message and invalid chart specifications show an in-widget error.
Chart size follows the row height when the dashboard sets one. Otherwise the chart uses its normal height.
References: frontend/…/ChartWidget.tsx• L1363-1623 frontend/…/ChartWidget.tsx• L1629-2135 frontend/…/VegaLiteChart.tsx• L196-264 frontend/…/VegaLiteChart.tsx• L267-553
Table widgets
Tables present result columns as a scrollable grid. Column metadata controls the header label, value display, alignment, visibility, frozen position, and cell style. It can also mark group borders, render a value as an image thumbnail, or show a small sparkline inside a cell. When a dashboard does not provide column metadata, the table uses the result columns directly.
Table headers and cells can act as cross-filter controls when their values match a dashboard filter. A selection updates related widgets without changing the table’s result contract. A pending selection is delayed briefly so a double-click can copy a displayed value instead; keyboard selection remains available when the data is ready.
Adjacent columns can form a named column group. A group toggle hides or reveals the group’s detail columns while keeping the table’s result data unchanged. The control shows the group name and its member labels, supports mouse and keyboard use, and keeps focus on the same group after the layout changes. A group with one member remains an ordinary column. If all groups are collapsed, their controls remain available above the table; group collapse is local display state and does not change the plain-table CSV source.
A sparkline column turns a short ordered series stored in each cell into a compact trend view. The cell shows a point when it has one sample and a line when it has several. Hovering selects the nearest sample and shows its formatted x and y values, while an empty or invalid series shows a no-data mark. The parser accepts structured arrays and bounded JSON-array text, then keeps only points with a usable x value and finite numeric y value.
A table can also show a grand total row supplied with the result. The row uses the table’s column formats and stays visible at the bottom of the table while the detail rows scroll. It can appear even when the detail result has no rows.
A pivot table reshapes a flat result in the browser. It groups rows and columns by configured fields, combines values with an aggregation, and can add subtotal and grand-total rows and columns. The reshaped result then uses the same table display path, including value formats and conditional styles. A pivot without a usable value field falls back to the original result.
Users can sort a plain table by clicking a header. This changes the displayed row order in the browser and does not change the result source used for CSV export. Numeric columns sort as numbers when a numeric display rule is present. Other values use a natural text order, and equal values keep their original order. Pivot tables keep their group, subtotal, and total order because sorting those rows would break the pivot structure.
Users can resize a plain-table column with a pointer or keyboard. A double-click restores its measured width. Users can also freeze or unfreeze plain-table columns, copy a displayed cell value by double-clicking it, and see the full value in a tooltip when the cell is truncated. Frozen columns stay at the left edge while the table scrolls horizontally. Their offsets follow the rendered header widths, so the frozen boundary stays aligned when the table reflows. Pivots do not use frozen columns.
References: frontend/…/TableWidget.tsx• L95-232 frontend/…/TableWidget.tsx• L244-604 frontend/…/TableWidget.tsx• L659-754 frontend/…/TableWidget.tsx• L811-874 frontend/…/TableWidget.tsx• L1037-1195
Image widgets
An image widget turns one result row into one displayed image. The widget names the source, title, caption, and alternative-text columns, so a query can supply a gallery rather than a single fixed asset. One image fills the available space; multiple images form a horizontal, scrollable set.
Image URLs come from query data but pass through dashboard image rules before the browser loads them. Only suitable HTTPS URLs on another origin are shown. Unsupported URLs and load failures become an in-widget message, while captions can contain formatted text with the same image URL safety rule.
Image widgets show loading, error, and no-data states inside the shared frame. They do not provide query details, cross-filter controls, or a per-widget export menu, so image display remains separate from chart and table export behavior.
References: frontend/…/WidgetFrame.tsx• L21-114 frontend/…/dashboardImage.ts• L3-25 frontend/…/dashboard.ts• L74-89 frontend/…/dashboard.ts• L148-157
Text and divider widgets
Text and divider widgets provide static structure inside the dashboard. They do not request widget data, show query controls, or offer data export. Text is suited to notes and instructions and supports readable formatted content such as headings, links, lists, code, and images, while a divider separates nearby dashboard content.
References: frontend/…/DashboardWidget.tsx• L6-29 frontend/…/TextWidget.tsx• L8-17 frontend/…/DashboardView.tsx• L36-73 frontend/…/dac.css• L300-354
Tabbed widgets
A tabbed widget presents several complete widgets in one layout position. The active tab keeps the container’s title and description while its own label and description identify the selected view. Each tab has its own data identity, so changing tabs replaces the visible result instead of showing the prior tab’s data or loading state.
Tab content does not inherit configuration from the tab container. Its data, rendering type, query details, cross-filter bindings, and eligible export actions come from the selected tab. Tab names also qualify export names, which keeps downloads from different tabs distinct.
References: frontend/…/DashboardWidget.tsx• L60-137 frontend/…/dashboard.ts• L281-286
Data and query details
Each data-backed widget receives a result with named columns and rows. The dashboard view requests data with the current filter values, so changing a filter refreshes the widgets without changing their rendering contract. During a refresh, the previous result can remain visible until the new result arrives.
Filter controls
Filter controls turn dashboard filter definitions into user inputs. The filter bar lays controls out as a row or a responsive grid, then sends the selected value back to the dashboard filter state so widget queries and exports use the same value.
The control type defines the value interaction:
- Select filters support search and single or multiple values. A null choice remains a real null value rather than the text
null. - Date-range filters offer configured relative ranges and a custom calendar range. The picker resolves ranges in the viewer’s local time zone, supports searching the preset list, and can exclude today for supported “Last N days” presets.
- Date-range filters also accept typed
YYYY-MM-DDorDD.MM.YYYYdates. They apply only after both ends form a valid range, and they reject an end date before the start date. - Date, number, and text filters use direct input controls.
Select menus can show a metric beside each option as display text only. The selected option and filter state keep the option value. Loaded option errors remain visible to the user, and selected values remain available even when the current option list does not contain them.
References: frontend/…/FilterBar.tsx• L12-33 frontend/…/FilterBar.tsx• L164-203 frontend/…/FilterBar.tsx• L296-403 frontend/…/FilterBar.tsx• L405-603 frontend/…/FilterBar.tsx• L623-673 frontend/…/FilterBar.tsx• L675-895
Widget data lifecycle
The widget query is identified by the dashboard, widget, and filter values. This lets the frontend reuse matching results and avoid duplicate requests. Static widgets bypass this data path because their content is already part of the dashboard definition.
Cross-filter actions enter the same filter state as dashboard controls. The selected value then becomes part of the next widget query, so charts and tables can coordinate without a separate data path. The shared readiness state prevents a widget from issuing another selection while its dependent data is still refreshing.
Tabbed widgets keep the active tab’s data under a tab-specific widget identity. Switching tabs therefore replaces the visible widget state instead of showing the previous tab’s result. Dashboard CSV export uses the same tab identities to create a separate section for each tab.
When a result contains an error, the frame shows the error and does not render the widget body. When it contains no rows, the renderer shows a no-data state. These states also control whether a widget has useful export actions. Image widgets use the no-data and error states but are not exportable through the widget menu.
References: frontend/…/DashboardView.tsx• L44-163 frontend/…/DashboardWidget.tsx• L9-67 frontend/…/DashboardWidget.tsx• L118-137 frontend/…/useWidgetQuery.ts• L5-21 frontend/…/dashboard.ts• L281-286 frontend/…/WidgetFrame.tsx• L116-168
Query information
The widget header can expose the query that produced the current result. An engineer or user opens the information control to see highlighted SQL and can copy the query. The detail view appears after a short hover delay, stays open while the pointer enters it, and is available only when the data response includes query text.
The query popover is a viewer control rather than dashboard content. Visual export excludes it, just like the other widget controls. Image widgets are an exception because their frame renders before the shared query control path and does not show query details.
References: frontend/…/WidgetFrame.tsx• L121-149 frontend/…/QueryInfo.tsx• L26-107 frontend/…/QueryInfo.tsx• L116-212
Conditional formatting
Conditional formatting adds meaning to table values without changing the data. A column keeps its own display format while its style rules decide cell fill and text treatment.
Table style rules
Formatting rules are checked from top to bottom. The first matching rule wins. A rule without a condition matches every cell, so it belongs at the end when it is used as a base fill or gradient.
Rules can compare numbers, text, dates, empty values, or another column in the same row. A hidden column can supply a comparison or a color source while staying out of the visible table. A like relationship lets one column reuse another column’s row-level colors while keeping its own value display. The relationship follows its source through the configured chain; a cycle does not provide a valid color source.
Gradients can scale from the current minimum to maximum or use fixed absolute, percentage, or percentile anchors. Fixed anchors keep colors comparable when filters change. Named colors follow the active theme, while explicit colors remain fixed.
Pivot value fields can also use formatting layers. Their gradient scale can cover the full pivot grid, each row, or each leaf column, so the same values can be compared globally or within a group.
References: frontend/…/conditionalFormat.ts• L4-8 frontend/…/conditionalFormat.ts• L61-110 frontend/…/conditionalFormat.ts• L148-183 frontend/…/conditionalFormat.ts• L261-331 frontend/…/TableWidget.tsx• L659-754 frontend/…/TableWidget.tsx• L1051-1068 frontend/…/dashboard.ts• L142-225
Heatmap color scales
A heatmap uses one color scale across its full grid rather than one scale per column. It can show a discrete default range or a continuous ramp with optional fixed anchors. When values are printed inside cells, the text color changes with the fill so the value remains readable.
References: frontend/…/ChartWidget.tsx• L623-835 frontend/…/conditionalFormat.ts• L123-145
Layout resizing
The dashboard uses a responsive grid for widget placement. A widget’s column span controls its width within a row, while an optional row height controls the vertical space available to its children.
Row and chart sizing
Rows provide their height to chart widgets so a resized or explicitly tall row produces a taller plot. At wider screen sizes, a widget can set its own height; the row then grows to fit that widget while widgets without an explicit height keep the row height. A widget’s column span controls its width within the row. Charts keep a lower bound to prevent a narrow row from hiding the plot, and other widgets fill the available row space through the shared widget frame.
Vega-Lite views fit simple or layered non-faceted charts to the rendered widget width and height. Faceted and other composed charts use their own composition and scale within the available area. When the widget changes size, the view marks itself as pending, resizes, and runs again before clearing that state. This prevents a visual export from capturing a chart during its resize work.
References: frontend/…/DashboardView.tsx• L449-511 frontend/…/Row.tsx• L4-24 frontend/…/RowContext.ts• L3-10 frontend/…/ChartWidget.tsx• L1363-1375 frontend/…/VegaLiteChart.tsx• L267-277 frontend/…/VegaLiteChart.tsx• L477-514 frontend/…/dac.css• L8-35
Table column sizing
Plain tables measure their headers to set a starting width and keep each column within a readable minimum and maximum. A user can change that width with a pointer or keyboard, while the table remains horizontally scrollable when its columns exceed the available space. A double-click returns a column to its measured width.
Grouped tables keep measured widths for columns that remain visible when a group opens or closes. They measure newly revealed columns without stretching the existing columns again, so group controls do not undo user sizing or move the frozen boundary out of alignment.
References: frontend/…/TableWidget.tsx• L244-604 frontend/…/TableWidget.tsx• L889-1031 frontend/…/ColumnGroupToggle.tsx• L14-53
Grand total rows
A grand total table uses the configured widget height as the scroll area for its detail rows. Its summary row remains attached to the bottom edge, and frozen columns remain aligned with that row while the table moves horizontally.
References: frontend/…/TableWidget.tsx• L125-133 frontend/…/TableWidget.tsx• L1155-1184 frontend/…/WidgetFrame.tsx• L116-123
YAML panel resizing
In the live server view, the YAML panel opens beside the dashboard and can be resized from its left edge. The width stays within a practical range and is kept while the user moves between dashboard views in the same page session. The panel is not part of the dashboard’s visual export.
References: frontend/…/DashboardView.tsx• L39-41 frontend/…/DashboardView.tsx• L189-196 frontend/…/DashboardView.tsx• L412-524 frontend/…/YamlPanel.tsx• L33-50 frontend/…/ResizeHandle.tsx• L10-45
Export interactions
Exports start from controls in the dashboard header or in an eligible widget header. Menus close before the action runs, and visual exports disable their control until capture completes. Filenames use a safe form of the dashboard or widget name.
Widget exports
Chart and table widgets show a widget export menu after they have non-empty, error-free data. The menu offers the widget result as CSV and the visible widget frame as PNG or PDF. For a pivot table, CSV uses the reshaped grid shown by the table. For a plain table, it uses the result columns and rows rather than the local sort, hidden-column view, or conditional colors. Metric, image, text, and divider widgets do not have a per-widget export menu.
Visual capture removes export controls, query details, group controls, and transient copy feedback from the image so the downloaded view represents the widget rather than its chrome. Widget names, and tab names when present, contribute to the download filename.
References: frontend/…/WidgetExportButton.tsx• L21-68 frontend/…/WidgetFrame.tsx• L116-149 frontend/…/DashboardWidget.tsx• L83-89 frontend/…/ExportMenuButton.tsx• L4-17 frontend/…/ExportMenuButton.tsx• L36-102 frontend/…/QueryInfo.tsx• L116-145 frontend/…/csv.ts• L17-35 frontend/…/renderExport.ts• L1-9 frontend/…/renderExport.ts• L36-49
Dashboard exports
The dashboard export menu offers one CSV, PNG, or PDF for the current dashboard view. Dashboard CSV requests the widget results with the active filters, then writes each successful data widget as a named section. Text and divider widgets have no result section. Widgets with errors or no rows are left out. A tabbed widget contributes one section for each tab with usable data.
PNG and PDF capture the rendered dashboard area. A PDF uses the image of that area and can span several pages. For a tabbed dashboard, the capture represents the active tab because only that tab is rendered in the view.
References: frontend/…/DashboardView.tsx• L287-333 frontend/…/DashboardView.tsx• L378-391 frontend/…/DashboardView.tsx• L440-524 frontend/…/ExportMenuButton.tsx• L36-102 frontend/…/csv.ts• L37-67 frontend/…/renderExport.ts• L70-101
Export file behavior
CSV uses standard quoting for cells that contain commas, quotes, or line breaks. Dashboard CSV adds a # <widget name> section marker before each widget result. PNG and PDF use the rendered size and wait for fonts and pending dashboard content before capture, which keeps the exported view close to what the user sees.
References: frontend/…/csv.ts• L3-24 frontend/…/csv.ts• L27-55 frontend/…/renderExport.ts• L20-68 frontend/…/renderExport.ts• L70-135
Change checklist
When these files or sections are changed, remember to consider these:
- Keep pivot row fields, column fields, value fields, and aggregation settings aligned with the result column names. A query change can otherwise remove a group or measure from the reshaped table.
- Keep widget encodings and table column names aligned with the result column names. A query change can otherwise leave a widget with data that it cannot read.
- Keep filter serialization, filter control values, cross-filter bindings, widget query keys, and dashboard export requests aligned. A filter can appear correct in the URL while an interaction or export uses a different result if these contracts drift.
- Keep date-range preset names aligned with the supported preset list. Preserve the
{ start, end }date shape and local-date meaning when the filter reaches the query layer. - Preserve the rule that a date range is committed only when both dates are valid and ordered. Do not let an incomplete or rejected typed value replace the last complete range.
- Preserve real null values in multi-select filters. Do not serialize the UI’s null option marker as the string
null. - Keep option values and metric-value keys aligned. Metric text is display-only and must not replace the value sent to query or URL state.
- Treat widget and dashboard names as download-file inputs. Name changes affect both user-facing filenames and dashboard CSV section labels.
- Remember that hidden table columns remain in the result and therefore remain in plain-table CSV. Hiding a column changes the screen, not the result contract.
- Keep column-group members adjacent and their names aligned with returned columns. Reordering or separating them can split a group or remove the expected toggle.
- Treat column-group collapse as display state only. Do not use it as a filter for plain-table export data.
- Preserve the
data-dac-export-controlboundary when adding viewer controls. Visual capture depends on that marker to exclude controls from PNG and PDF output. - Recheck row-height behavior when changing chart sizing or frame overhead. A small layout change can reduce the usable plot area without changing chart data.
- Keep explicit widget heights and row heights aligned. At wider screen sizes, one explicit widget height makes the row grow while neighboring widgets without explicit heights retain the row height.
- Keep grand-total table heights and the supplied grand-total result aligned. The height defines the detail scroll area, while missing total column names produce blank summary cells.
- Keep table image columns and Vega-Lite image marks limited to values that the browser can load through the dashboard image rules. A display change to image mode changes the visual contract but not the raw CSV values.
- Keep tab-specific widget IDs and dashboard CSV lookup keys aligned. A mismatch can omit tab data from dashboard export even when the tab renders correctly.
- Keep sparkline column x and y mappings aligned with the series shape returned in each cell. Invalid points are dropped and can leave a cell with no trend to show.
- Keep Vega-Lite specs tied to the widget query result. External data URLs are rejected and cannot supply chart data.
- Keep chart and table cross-filter fields aligned with the values returned by the widget. A display mark or cell cannot select a filter value that is absent or incompatible.
- Keep image source, title, caption, and alternative-text fields aligned with returned columns. A query change can remove the image or its supporting text without changing the widget definition.
- Keep image sources within the dashboard image URL rules. A query can return a value that the browser must reject rather than load.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A widget encoding names a column that the result does not provide | The metric falls back to the first value or a chart can show an incomplete or unknown view | Treat result column names and widget encodings as one contract when changing queries or semantic fields |
| A chart or table cross-filter points to a missing or unusable result field | The control does not select a useful value and related widgets do not refresh as expected | Keep filter bindings tied to returned dimensions and wait for the widget to become ready before selecting |
| A filter configuration names an unsupported date preset | The preset is omitted from the date-range menu and users cannot select it | Use the supported preset keys or provide a custom range path |
| A typed date is invalid, incomplete, or ends before its start date | The filter keeps its prior complete range instead of sending the rejected value to the query | Enter valid dates in a supported format and commit both ends in order |
A multi-select filter turns its null choice into the text null | The query receives a different value and does not match SQL NULL rows | Preserve the filter bar’s real-null mapping through filter serialization |
| A pivot has no usable value field | The table displays the unpivoted result instead of the configured grouped view | Keep pivot value fields tied to columns returned by the query |
| A data request returns an error | The frame shows the error and the widget export menu is unavailable | Fix the query or connection before using the result as an export source |
| A data request returns no rows | The renderer shows a no-data state and dashboard CSV omits the widget | Distinguish a valid empty result from a failed request when reviewing filters |
| A column group has one member or its members are not kept together | The group has no usable multi-column toggle or the visible grouping does not match the intended columns | Define groups over adjacent columns and include at least two members |
| A catch-all conditional-format layer appears before a specific rule | The catch-all wins and later rules never style the cell | Put specific rules first and unconditional base layers last |
A like color source contains a cycle | The dependent column cannot use a valid source column for its coloring | Keep like references acyclic and point them to a real table column |
| A gradient range has the wrong number of anchors | The gradient falls back to evenly spaced anchors across the current values | Keep one range anchor for each gradient color |
| A Vega-Lite spec uses an external data URL | The chart is rejected instead of loading data outside the widget query | Put chart data in the widget query result and use the supplied data source |
| A Vega-Lite image mark uses an unsupported URL | The mark shows an image error instead of loading arbitrary remote content | Use a dashboard-approved absolute HTTPS image URL |
| A visual export is started while the target has no usable size | Capture fails instead of producing a blank file | Export a rendered widget or dashboard with visible content |
| A visual export starts while a chart is resizing | The file can capture an incomplete or wrongly sized chart | Wait for the chart’s pending state to clear before capture |
| A widget height conflicts with the intended row height | The row grows around the explicit-height widget and neighboring widgets can use a different height | Review row and widget height settings together at the responsive breakpoint |
| A grand-total result does not use the table’s visible column names | The sticky summary row shows blank values or places its label in the wrong column | Return total values with names that match the table result and keep the configured height valid |
| A tab widget ID does not match the dashboard export lookup key | The tab renders in the browser but its result is missing from dashboard CSV | Use the same base row-widget ID and tab name in rendering and export |
| A sparkline cell contains malformed, incomplete, or non-numeric series points | The cell shows no trend or fewer points than the source value suggests | Return a bounded series with the configured x and y fields and finite numeric y values |
| An image source is relative, same-origin, non-HTTPS, credentialed, or too long | The image is replaced by an unsupported-image message instead of being loaded | Return a suitable absolute HTTPS URL on another origin |
| An image URL becomes unavailable after it passes validation | The image area shows an image-load failure message | Keep the source reachable and provide a useful alternative-text column |
Key files
| File | Why to read it |
|---|---|
| frontend/…/DashboardView.tsx | Follow filter state, tabs, per-widget data loading, layout placement, and dashboard export actions. |
| frontend/…/DashboardWidget.tsx | See how static, data-backed, and tabbed widgets enter the shared frame and receive per-tab identities and cross-filter readiness. |
| frontend/…/WidgetFrame.tsx | See the common boundary between widget state and the metric, chart, table, text, and image renderers, including descriptions, sizing, and export controls. |
| frontend/…/FilterBar.tsx | See how dashboard filter definitions become date, number, text, single-select, and multi-select controls, including searchable date presets, local date ranges, typed dates, and display-only option metrics. |
| frontend/…/useWidgetQuery.ts | Understand the per-widget data refresh and cache boundary. |
| frontend/…/MetricWidget.tsx | See how one result value becomes a fitted metric display. |
| frontend/…/ChartWidget.tsx | See the built-in chart reading model, cross-filter behavior, axis formats, derived chart views, and supported visual families. |
| frontend/…/VegaLiteChart.tsx | See how declarative chart specs use widget data, theme values, semantic formats, image rules, cross-filter marks, responsive fitting, label help, and export readiness. |
| frontend/…/TableWidget.tsx | See table display, grand total rows, cross-filter controls, column groups, pivots, local sorting, hidden and image columns, frozen columns, resizing, copying, sparklines, and style application. |
| frontend/…/ColumnGroupToggle.tsx | See the accessible expand and collapse interaction for grouped table columns. |
| frontend/…/columnGroups.ts | See how table column metadata becomes grouped display state and an outline for group controls. |
| frontend/…/SparklineCell.tsx and frontend/…/sparkline.ts | See how compact per-row trends are parsed, drawn, and inspected with hover values. |
| frontend/…/pivot.ts | See how table results become grouped values with subtotals and totals. |
| frontend/…/conditionalFormat.ts | See the rule order, cross-column comparisons, and gradient behavior. |
| frontend/…/QueryInfo.tsx | See the delayed query inspection, copy interaction, and export-control boundary. |
| frontend/…/WidgetExportButton.tsx | See the per-widget export choices and eligibility rules, including pivot CSV behavior. |
| frontend/…/ExportMenuButton.tsx | See the shared menu behavior used by widget and dashboard exports. |
| frontend/…/csv.ts | See the CSV shape, quoting rules, section markers, and download naming. |
| frontend/…/renderExport.ts | See how rendered PNG and PDF captures wait for content and exclude viewer controls. |
| frontend/…/dashboardImage.ts | See the URL rules that protect data-driven dashboard images. |
| frontend/…/Row.tsx and frontend/…/ResizeHandle.tsx | See how row space and the live YAML panel respond to resizing. |
| frontend/…/dac.css | See the responsive widget sizing rules, bundled fonts, chart surfaces, tooltips, and readable text-widget styling. |
Related pages: Server and frontend, Frontend dashboard experience, Local server API and live reload, MCP dashboard tooling