Skip to content

feat(ui): support an editable SQL preview in useConfirm - #22

Merged
AzizARSLN merged 14 commits into
chore/i18n-health-bulkfrom
feat/ui-editable-sql-confirm
Nov 4, 2026
Merged

AzizARSLN merged 14 commits into
chore/i18n-health-bulkfrom
feat/ui-editable-sql-confirm

Conversation

@AzizARSLN

Copy link
Copy Markdown
Owner

Extends useConfirm with an editable SQL preview so callers can let the user tweak the statement before it runs.

  • New ConfirmOptions.sql_editable turns the read-only preview into a textarea.
  • New ConfirmResult { confirmed, sql } returned by confirmSql; confirm() keeps its boolean contract for existing callers.
  • The dialog keeps the draft in a ref so the stable close callback never reads stale state.

@AzizARSLN
AzizARSLN merged commit d3dbf28 into chore/i18n-health-bulk Nov 4, 2026
1 check failed
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.

1 participant