Skip to content

fix(sql-workspace): Run on an empty editor says so; status bar follows the active tab - #1481

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1478-1479-sql-run-feedback
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1478-1479-sql-run-feedback

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Fixes #1478 and #1479.

#1478, Run on an empty editor

  • Run / F5 / Ctrl+Enter with nothing to run (empty, whitespace or comment-only text) set the status Nothing to run instead of doing nothing; Explain says Nothing to explain.

#1479, status bar

  • The status bar's message, row and column counts and time are the active tab's own: switching to a tab that has not run clears them (a hook in build publishes them when the active session changes; it does nothing while a query is running).
  • A plain N row(s). is not repeated in the status bar: the result bar shows it and the status bar's right side has the N rows, M cols. Errors, Statement 3 of 5 failed…, OK. Rows affected: … and capped-result messages stay.

QueryaShellStatus.setQueryMetrics replaces the shown numbers (and leaves a running query's busy message alone); unit tests added.

Not covered: a widget test of the workspace itself (it needs a database delegate); the two behaviours are small and sit on the tested QueryaShellStatus.

…llows the active tab

Run / Explain with nothing to run show 'Nothing to run' instead of
silence. The status bar shows the active tab's own message, row and column
counts and time, and nothing for a tab that has not run. A plain 'N row(s).'
is no longer repeated in the status bar (the result bar and the counts on its
right already show it).

Fixes #1478, fixes #1479
@github-actions github-actions Bot added bug Something isn't working frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions P3 Low priority / Polish & Enhancements labels Oct 11, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 88e16f1 into dev Oct 11, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1478-1479-sql-run-feedback branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Theme parser epic label: frontend P3 Low priority / Polish & Enhancements ui User interface components and widgets ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant