Keep global actions visible and follow each platform's title bar

Phase 5-4.

- The workspace button sits at the left end of the header. It shows
  the workspace name and opens the workspace list below it.
- The left ribbon is always present: plugin views at the top, Help and
  Settings at the bottom. The left pane footer is gone.
- Tabs keep 120 pixels and scroll. Fades show tabs out of view, and a
  list button names all tabs, with pinned and unsaved marks. The
  active tab now scrolls into view with its close button.
- A drag area of 120 pixels follows the tabs. In a narrow header, the
  tabs shrink first, and the drag area keeps at least 48 pixels.
- Caption buttons are square, 46 pixels wide, and full height. When the
  pointer rests on maximize, the new window_snap_layouts command opens
  Snap Layouts with Win+Z for the focused window.
- macOS keeps its native traffic lights: tauri.macos.conf.json and the
  runtime window builders use an overlay title bar. Title bars leave
  --rs-titlebar-inset-start free for the traffic lights.
- 3 new catalog rows and 1 removed row, in French, Japanese, and
  Simplified Chinese.
- Docs: UI-050, the user guide, and ui-design.md.

Tests: the new layout/titleBar. Tests that used the left pane footer,
the rounded caption buttons, the 600-pixel theme editor pane, or a
ribbon of no width now follow the new layout.
This commit is contained in:
Knotty Wyvern
2026-10-28 20:21:20 -07:00
parent 9cf82503d0
commit c8cf56b224
31 changed files with 438 additions and 125 deletions
+16
View File
@@ -934,3 +934,19 @@ Native shell, background image, and desktop acceptance remain open.
- Evidence: `tests/smoke/layout/viewModes.smoke.mjs`, `tests/unit/layout/documentPanes.spec.ts`, and `tests/unit/layout/settings.spec.ts`.
- Replaces / replaced by: `ModeSwitcher.svelte` and its hover test.
- Limits: Split now shows Write beside Read when Write is the editor. Choose Source for the former source and preview layout. Browser checks use desktop service mocks.
### UI-050 — Global actions, tabs, and platform title bars
- Type: Rule change
- Date: 2026-10-28
- Status: Implemented for user review
- Decision source: Owner decisions 3, 7, and 12 of 2026-10-27 (interface review issues 3, 8, and 15), stage 5-4.
- Previous rule: The workspace button, Help, and Settings sat in the footer of the left pane, so they left the window with the pane. The plugin ribbon had no width without plugin entries. Tabs could shrink to 69 pixels, with no list and no sign of hidden tabs. The fixed drag area was 40 pixels. Every platform got rounded 40-pixel caption buttons, and macOS got Windows caption buttons.
- New rule: The workspace button sits at the left end of the header. It shows the workspace name and opens the workspace list below it. The left ribbon is always present: plugin views at the top, Help and Settings at the bottom. Tabs keep 120 pixels and scroll, with fades at the ends and a ⌄ list of all tabs that marks pinned and unsaved tabs. The header keeps a drag area of 120 pixels after the tabs. In a narrow header, the tabs shrink first, and the drag area keeps at least 48 pixels. Windows and Linux get square caption buttons, 46 pixels wide and full height. macOS keeps its native traffic lights through an overlay title bar, and each title bar leaves `--rs-titlebar-inset-start` (78 pixels) free for them.
- Snap Layouts: The custom title bar has no native caption buttons, so a hit test cannot show the flyout. When the pointer rests 500 ms on maximize, the host presses Win+Z for the focused window. This is the method of the existing Win+H dictation command.
- Reason: Global actions must stay reachable when the side pane closes. A tab label must stay readable. Each platform keeps its own window conventions.
- Scope: The main header, the left ribbon, the tab bars, the Settings and Browser window title bars, and the window builders of the host.
- Shared implementation: `WorkbenchHeader.svelte`, `PluginRibbon.svelte`, `TabBar.svelte`, `WindowControls.svelte`, `src-tauri/src/window_frame.rs`, `src-tauri/tauri.macos.conf.json`, and the `--rs-titlebar-inset-start` token.
- Evidence: `tests/smoke/layout/titleBar.smoke.mjs` and the Rust command list test.
- Replaces / replaced by: The left pane footer, and the ribbon rule "The ribbon has no width when it has no entries."
- Limits: Browser checks use desktop service mocks. Snap Layouts, the native drag area, and the macOS title bar need native acceptance. The macOS code path was not compiled here. On Windows 10, Win+Z does nothing.
+3 -3
View File
@@ -112,10 +112,10 @@
},
"RuneStone/src/lib/layout/TabBar.svelte": {
"counts": {
"action": 1
"action": 2
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
"design": "Shared action menu for tab actions and the list of all tabs",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/layout/titleBar.smoke.mjs"
},
"RuneStone/src/lib/layout/Workbench.svelte": {
"counts": {
+5 -2
View File
@@ -139,9 +139,12 @@ Decisions: [UI-002](design-decisions.md#ui-002--share-the-requested-dropdown-des
## Window and navigation
- The main header holds navigation, document tabs, actions, and window controls.
- The main header holds the workspace button, navigation, document tabs, actions, and window controls. The workspace button names the window and opens the workspace list.
- The left ribbon stays visible when the side pane is closed. It holds plugin views at the top and Help and Settings at the bottom.
- Tabs keep a minimum width of 120 pixels and scroll. Fades show tabs out of view, and ⌄ lists all tabs. A drag area of 120 pixels sits after the tabs. In a narrow header, the tabs shrink first, and the drag area keeps at least 48 pixels.
- Windows and Linux title bars use square caption buttons, 46 pixels wide and full height. Rest the pointer on maximize for Snap Layouts on Windows 11. macOS keeps its native traffic lights, and title bars leave `--rs-titlebar-inset-start` free for them.
- Files, Search, Bookmarks, and installed sidebar views such as Git share the top navigation group. The active navigation button shows which view fills the left pane.
- Plugin editor views can use the vertical plugin ribbon. The ribbon has no width when it has no entries.
- Plugin editor views can use the left ribbon.
- The built-in browser opens from its own toolbar action. Project Management opens from Plug-in views. Keep Plug-in views in the toolbar, away from the new-tab button.
- Document and plugin tabs share the tab bar. The new-tab button follows the tabs. Tabs keep their order and pin state when a plugin replaces its view.
- The main window keeps an empty New tab after its last tab closes. A secondary window closes with its last tab. The unsaved-edit and active-terminal confirmations still apply, and Cancel keeps the tab open.
+4 -3
View File
@@ -22,7 +22,7 @@ This guide explains how to work with files, documents, tabs, settings, and the b
A workspace is a folder on your computer. RuneStone reads and writes its files directly.
1. Select the folder button at the bottom of the sidebar, or press Ctrl+O.
1. Select the workspace name at the left end of the title bar, or press Ctrl+O.
2. Choose a recent workspace, **Open another folder…**, or **New workspace…**.
Each workspace opens in its own window. The current window keeps its documents and terminals.
@@ -145,6 +145,7 @@ Each open tab keeps its undo history, cursor, and scroll position.
| Close the tab | Ctrl+W |
| Reorder | Drag the tab. Press Escape to cancel. With a tab focused, press Alt+Shift+Left or Alt+Shift+Right. |
| Pin, close others, or close all | Right-click the tab. |
| Find a tab | Select ⌄ after the tabs for a list of all tabs. The list marks pinned and unsaved tabs. Fades at the ends of the tab strip show that more tabs are out of view. |
| Move to a new window | Drag the tab out of the tab strip, or right-click it and choose **Open in new window**. |
| Move to another window | Drag the tab to the tab strip of the other window. |
@@ -187,7 +188,7 @@ If a write fails, your edits stay in the tab. RuneStone does not lock files, so
## Change settings
Select the gear at the bottom of the sidebar, or press Ctrl+,. Use the search field to find a setting.
Select the gear at the bottom of the left ribbon, or press Ctrl+,. Use the search field to find a setting.
Settings apply to all workspaces on this computer and update all open windows.
| Category | Settings |
@@ -248,6 +249,6 @@ The [Terminal guide](guides/terminal.md) lists the terminal shortcuts.
## Get help
Press F1, or select the question mark at the bottom of the sidebar, for **Help and about**. It shows the app version, basic steps, and every shortcut.
Press F1, or select the question mark at the bottom of the left ribbon, for **Help and about**. It shows the app version, basic steps, and every shortcut.
When you report a problem, include the app version, operating system, steps, expected result, and error text.