discourse/plugins/discourse-data-explorer/test/javascripts/acceptance
Natalie Tay 2598983e02
UX: Data explorer improvements (#40605)
Small updates to data explorer:

For `/new` (AI query creation)
- Auto-runs the generated query and shows the result first, mirroring
/edit
- New admin-only POST queries/preview endpoint runs unsaved SQL so
results can be previewed before creating a query
- Chart / table / SQL segmented control similar to /edit
  - SQL with a resizable grippie
- "Save query" is now the primary button
- added a "Run" button.
- Saving transitions to /edit and auto-runs (?run=true).
- More breathing room between SQL and the name/description fields.

For `/edit`
- Disables Run / Save-and-run / Undo / Help / Delete while a query is
running or AI is generating.

Charts & tables (shared QueryResult)
- Smarter default view: falls back to table when a chart would silently
drop columns (e.g. user / username / reason / sum) pure-numeric series
still chart.
- long tables now cap at chart height with a chevron expand button, so
action buttons stay reachable (this was done before)
- /g/x/reports also have memory over which option (chart/table) was
chosen before

Copy (i18n)
- "Re-generate" to "Update prompt".
2026-06-05 19:31:37 +08:00
..
list-queries-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
new-query-test.js UX: Data explorer improvements (#40605) 2026-06-05 19:31:37 +08:00
param-input-test.js UI: Update manual data explorer query page (step 3/n) (#40190) 2026-05-21 01:24:30 +08:00
run-query-test.js UI: Update manual data explorer query page (step 3/n) (#40190) 2026-05-21 01:24:30 +08:00