Put the global actions in a bottom bar and the tools in the ribbon

Decision 3 correction and the owner's ribbon direction of 2026-10-28.

- One bar at the bottom of the side pane holds the workspace switcher,
  Help, and Settings, as in Obsidian. The switcher opens the workspace
  list above it. The header has no workspace button.
- While the side pane is closed, the workspace switcher, Help, and
  Settings move to the bottom of the left ribbon, so they stay
  reachable.
- New browser tab, Terminal, Plug-in views, and Commands moved from the
  header to the top of the left ribbon, so the tabs have more room.
  Their menus open at the right of the ribbon. The header keeps Save,
  the outline toggle, and the window controls. A detached tab window
  has no ribbon and keeps these tools in its header.
- Docs: decision 3 and the ribbon tools in UI-050, ui-design.md, and
  the user guide.

Tests: layout/titleBar checks the bottom bar, the ribbon fallback, and
the header buttons. workspace/openAndCreate uses the ribbon switcher in
a narrow window. tree/renameUndo reads the tools in the ribbon.
This commit is contained in:
Knotty Wyvern
2026-10-28 23:57:19 -07:00
parent eeddd880e1
commit c271e2bae1
13 changed files with 155 additions and 81 deletions
@@ -53,8 +53,9 @@ await runSmoke("workspace/openAndCreate", async ({ page }) => {
const view = window.__EditorView.findFromDOM(document.querySelector(".source-editor .cm-content"));
view.dispatch({ changes: { from: 0, to: view.state.doc.length, insert: "My pending edit" } });
});
// The workspace button at the left of the header names the workspace (src/lib/layout/WorkbenchHeader.svelte).
const trigger = page.locator(".workspace-button");
// The workspace switcher sits in the bar at the bottom of the side pane (src/lib/layout/LeftPane.svelte).
// When the side pane gives way in a narrow window, the switcher is at the bottom of the left ribbon.
const trigger = page.locator(".workspace-button, .ribbon-workspace button").first();
const menu = page.getByRole("dialog", { name: "Workspaces", exact: true });
await page.evaluate(() => window.__TEST__.reorder());
await trigger.click();
@@ -118,7 +119,6 @@ await runSmoke("workspace/openAndCreate", async ({ page }) => {
if (theme === 'dark') {
await page.keyboard.press('Enter');
await menu.getByText('D:\\Missing', { exact: true }).waitFor({ state: 'detached' });
assert.equal(await page.locator('.ws').textContent(), 'Notes', 'History removal does not close the current workspace');
await page.keyboard.press('Escape');
await trigger.click();
assert.equal(await menu.getByText('D:\\Missing', { exact: true }).count(), 0, 'Removed paths stay absent after reopening');
@@ -126,6 +126,7 @@ await runSmoke("workspace/openAndCreate", async ({ page }) => {
await page.keyboard.press('Escape');
}
await page.setViewportSize({ width: 1100, height: 800 });
assert.equal(await page.locator('.ws').textContent(), 'Notes', 'History removal does not close the current workspace');
await page.evaluate(() => window.__TEST__.clear());
await trigger.click();
await menu.getByText("No recent workspaces yet.").waitFor();