Editable AST Preview Before Apply
Translated queries appear as editable chips (one chip per condition, sort or group) with a live row-count estimate. Users can remove, tweak or reorder parts before applying, so AI suggestions stay drafts under user control.
Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A translated AST with three chips and a preview estimate of '142 rows'.
Expected behavior
Editing a chip updates the estimate and the optional row highlighting without committing anything. Apply commits the query as a single journal entry. Discard restores the prior view exactly.
Planned API surface
grid.ai.preview(ast)previewPanel.editableonPreviewChangegrid.ai.applyPreview()grid.ai.discardPreview()Acceptance criteria
- The preview never alters the committed query state (pending)
- Chip edits are validated through the AST schema (pending)
- Apply creates one undoable entry (pending)
- The estimate matches the applied result count (pending)