Skip to content

feat(queries): streamline table tabs and unify result footers - #189

Merged
Blankll merged 4 commits into
masterfrom
feat/table-context-menu-and-db-footer
Oct 19, 2026
Merged

Blankll merged 4 commits into
masterfrom
feat/table-context-menu-and-db-footer

Conversation

@Blankll

@Blankll Blankll commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

UI polish for the Queries workspace: faster table navigation, consistent status footers, and app-wide scrollbar parity.

Table context menu

  • View Data is now the first table context-menu item and behaves exactly like double-clicking the table.
  • View Structure is second and opens the table tab directly on its Schema sub-page — no generated information_schema query in a separate editor.
  • The selected sub-page is stored in table-view tab metadata, so reopening an existing tab switches between Data and Schema instead of creating duplicates.
  • Select Top 100 remains available as the third item.

Table-view footers

  • The footer now exists on every table-view sub-page, always showing the database:
    • Data — rows and execution time (unchanged)
    • Schema — column count
    • Indexes — index count
    • Foreign Keys — foreign-key count
    • Triggers — trigger count
  • Metadata panels emit their count after loading, so the footer tracks tab switches and table/database changes.

Result panel footer

  • Removed the duplicate 61 rows • 21ms block from the result-panel header.
  • The footer is now the single source of result stats:
    • SELECT results — DataGrid footer with database, row range, and execution time.
    • Statements without a result grid (DML/DDL) — footer with database, affected rows (or “Command completed”), and execution time.
  • Removed the duplicated affected-row line from the DML success body.

Editor scrollbar

  • Monaco vertical/horizontal scrollbars now use the app’s 5px size instead of the 14px/12px defaults.
  • Disabled Monaco scrollbar shadows.
  • Matched the native scrollbar thumb: 3px radius and the same muted-foreground background (25%, 40% on hover/active).

Verification

  • npm run build — passed (vue-tsc + Vite)
  • npx jest --runInBand — 698 tests / 43 suites passed
  • npm run lint:check — 0 errors; one pre-existing UnoCSS ordering warning in DefaultAvatar.vue
  • Added tabStore coverage for opening/switching table-view tabs on a requested sub-page
  • Rebuilt the Tauri app locally, ad-hoc signed it (Developer ID identity unavailable on the build machine), installed it to /Applications/SQLKit.app, and verified the running build embeds the updated frontend asset.

Notes

  • The whole application status bar was removed rather than only its Database item, since its rows/time values are now duplicated in the table/result footers.
  • This PR does not include a release/version bump.

…ters

- add View Data as the first table context-menu action and keep View Structure second
- open View Structure directly on the table's Schema sub-page instead of generating a query tab
- persist table-view sub-page selection in tab metadata and reuse existing tabs
- show the active database beside rows and execution time in table/result footers
- remove the redundant application status bar and derive footer database reactively
- cover sub-page routing in tabStore tests
@Blankll
Blankll force-pushed the feat/table-context-menu-and-db-footer branch from 4ec2992 to d74a2f3 Compare October 18, 2026 15:43
- emit countChange from schema, indexes, foreign keys, and triggers panels
- render a persistent database/count footer for every metadata sub-page
- add localized count labels
… stats

- remove rows/time from the result-panel header
- show database, affected rows, and time in a footer for statements without a result grid
- drop the duplicated affected-row line from the DML success state
- use the app's 5px scrollbar size for vertical and horizontal Monaco scrollbars
- disable Monaco scrollbar shadows
- reuse the native scrollbar thumb color and radius
@Blankll Blankll changed the title feat(queries): streamline table context menu and show database in footers feat(queries): streamline table tabs and unify result footers Oct 18, 2026
@Blankll
Blankll merged commit fe708cb into master Oct 19, 2026
3 checks passed
@Blankll
Blankll deleted the feat/table-context-menu-and-db-footer branch October 19, 2026 00:42
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