Skip to content

ux(sql-workspace): toolbar and tab strip as one system (#1558, stage 1, part 1) - #1727

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
epic/sql-workspace-layout
Oct 18, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
epic/sql-workspace-layout

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Refs #1558 (stage 1, first PR). Stage 1 continues with the editor and results surfaces; stage 2 (fewer rows) is separate.

What a screenshot of current dev (Demo Playground, 1028 px window, sidebar open, dark theme) showed, and what this changes:

  • Explain and Diagram shared an icon (account_tree_outlined). Explain now has manage_search_rounded (a magnifier over lines: the plan); Diagram keeps the tree.
  • Two looks of icon buttons in one row (Explain and Session bordered; History, Format, Open, Save plain). Explain and Session are now ghost, like the others; only the run button is filled.
  • Auto-commit pill next to 36 px buttons, and the same state again in the Session label. The badge is now shown only for what is not the default (Transaction open, Manual commit); auto-commit is named by the Session menu (label when wide, tooltip Session: auto-commit when narrow).
  • Labels never shown on a laptop: compact was decided at 900 px of toolbar width, which a 1028 px window with the sidebar open never reaches. The row now collapses one control at a time: above 900 px all labels; below, Explain and Session are icons and Execute (F5) keeps its label; below 620 px the run button is an icon too. At 1028 px with the sidebar open the run button reads Execute (F5) (checked on the running app).
  • Tab strip on shadcn tokens (colorScheme.card / .border) next to a toolbar on workbench tokens: it now uses SqlEditorChrome.sqlToolbarDecoration, the same surface and hairline as the toolbar under it.

Tests: sql_workspace_chrome_guards_test (no colorScheme and no raw Color(0x in the tab strip, toolbar and editor chrome; Explain and Diagram icons differ; tab strip and toolbar share the decoration); the label test is rewritten for the three widths (900+, 800, 560); the transaction e2e test reads the Session tooltip where it read the pill. Workspace and e2e suites pass locally (586).

Not in this PR: the editor's accent glow and the results frame (stage 1, next), the duplicated counts and the staged-changes row (stage 1 / 2), the layout work of stage 2. The before/after screenshot pair for dark and light themes the issue asks for comes with the end of stage 1.

…s own icon, labels collapse one control at a time, the tab strip uses workbench tokens (#1558)
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 47031da into dev Oct 18, 2026
16 checks 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.

1 participant