Skip to content

feat(editor): show success feedback for non-SELECT statements#391

Merged
debba merged 4 commits into
TabularisDB:mainfrom
danielnuld:feat/non-select-result-feedback
Jun 29, 2026
Merged

feat(editor): show success feedback for non-SELECT statements#391
debba merged 4 commits into
TabularisDB:mainfrom
danielnuld:feat/non-select-result-feedback

Conversation

@danielnuld

@danielnuld danielnuld commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

When a statement returns no result set (INSERT/UPDATE/DELETE and DDL such as CREATE/ALTER/DROP VIEW), the editor now shows an explicit success panel instead of an empty grid under a misleading "0 rows retrieved" header.

Why

Running a non-SELECT statement gave no clear confirmation it succeeded — the result area showed "0 rows retrieved" and an empty grid, leaving users unsure whether anything happened.

How

A non-SELECT result has columns.length === 0. Both result-rendering paths now detect that and render a success panel (check icon, "Query executed successfully", the affected-row count when greater than zero, and the execution time):

  • Single statement — the inline result block in Editor.tsx (via runQuery).
  • Multiple statementsResultEntryContent (used by MultiResultPanel and StackedResultItem).

SELECT results are unaffected; a SELECT returning zero rows still shows its grid and header. The affected-row line is hidden when the count is zero, so DDL reads cleanly as just "Query executed successfully".

Adds the editor.queryExecuted and editor.rowsAffected i18n keys across all 8 locales.

Testing

  • pnpm typecheck and ESLint pass.
  • Verified live against a local MySQL 8: running INSERT, UPDATE and CREATE OR REPLACE VIEW now shows the success panel (with the affected-row count for DML, and without it for DDL).
image

Daniel Noé Núñez López and others added 4 commits June 26, 2026 13:33
Statements that return no result set (INSERT/UPDATE/DELETE and DDL such
as CREATE/ALTER/DROP VIEW) previously rendered an empty grid under a
misleading "0 rows retrieved" header, leaving users unsure whether the
statement actually ran.

Render an explicit success panel with a check icon, a "Query executed
successfully" message, the affected-row count when greater than zero,
and the execution time. SELECT results are unaffected.

Adds the editor.queryExecuted and editor.rowsAffected i18n keys across
all 8 locales.
The success panel added in the previous commit only covered the
multi-result path (MultiResultPanel -> ResultEntryContent). A single
statement runs through runQuery and renders the inline result block in
Editor.tsx, which still showed an empty grid under "0 rows retrieved".

Add the same success panel to the inline path: when the result has no
columns (and there are no pending insertions), render the check icon,
"Query executed successfully", the affected-row count when > 0, and the
execution time.
@debba debba merged commit 33dd58b into TabularisDB:main Jun 29, 2026
1 check passed
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.

2 participants