Show one view control and name the file once
Phase 5-3. - One radio group shows Write, Source, and Read at all times, with an icon and a name. Narrow panes show only the icons. The arrow keys move the choice, and the group has one Tab stop. The current choice gets the selection fill and an accent bar. Hover gets only a fill. - A Split toggle shows Read beside Write or Source. Each document pane keeps a split flag beside its reading flag. Read ends Split. - Ctrl+Shift+E switches between Read and the editor. Ctrl+E still switches between Write and Source. - "IDE" becomes "Source" in the Chrome type, the tab menu (a View submenu), the status bar, the catalog, the tests, and the docs. - Settings, General, File name title hides the title in Write and Read. It is on by default. - The breadcrumb shows only the folder of the file. The status bar shows the view, not the path. - ModeSwitcher.svelte and its hover test are gone. The new test layout/viewModes covers the control. - The command palette from 5-2 gets its row in docs/menu-surfaces.json. - The user guide Format table is whole again. The 5-2 edit had put the Paragraph and Insert rows under the shortcut table. - 8 new catalog rows and 10 removed rows, in French, Japanese, and Simplified Chinese. - Docs: UI-049, the user guide, ui-design.md, document-tools.md, development.md, and the README feature list. Tests: the new layout/viewModes, new cases in documentPanes.spec.ts and settings.spec.ts, and the chooseView harness helper. 21 smoke tests use the new control. Tests that read the full path from the breadcrumb now read its tooltip.
This commit is contained in:
@@ -918,3 +918,19 @@ Native shell, background image, and desktop acceptance remain open.
|
||||
- Evidence: `tests/smoke/layout/commands.smoke.mjs`, `tests/unit/ui/shortcuts.spec.ts`, and `tests/unit/layout/workbenchKeys.spec.ts`.
|
||||
- Replaces / replaced by: The Ctrl+B sidebar shortcut in the user guide.
|
||||
- Limits: The macOS labels are tested as unit cases, not on a Mac. Browser checks use desktop service mocks.
|
||||
|
||||
### UI-049 — One view control and one file name
|
||||
|
||||
- Type: Rule change
|
||||
- Date: 2026-10-28
|
||||
- Status: Implemented for user review
|
||||
- Decision source: Owner decisions 4 and 5 of 2026-10-27 (interface review issues 5 and 7), stage 5-3.
|
||||
- Previous rule: Two icon-only switchers, "Document view" (Edit, Read, Split) and "Editor layout" (Writer, IDE), showed only the current choice until hover. Hover widened them, so the target moved. The same views had other names in the tab menu ("Reading view", "Source mode") and in the status bar ("IDE"). The file name showed in the tab, in the breadcrumb as a full path, as a title, and in the status bar.
|
||||
- New rule: One radio group shows Write, Source, and Read at all times, with an icon and a name. Narrow panes show only the icons. The arrow keys move the choice, and the group has one Tab stop. The current choice gets the selection fill and an accent bar. Hover gets only a fill. A separate **Split** toggle shows Read beside Write or Source. Write and Source keep Split, and Read ends it. Ctrl+E switches between Write and Source, and Ctrl+Shift+E switches between Read and the editor. The tab menu, the status bar, the docs, and the code use the same names. "IDE" is not a view name.
|
||||
- File name: The file name title stays on by default. **Settings → General → File name title** hides it in Write and Read. The breadcrumb shows only the folder, with the full path in its tooltip. The status bar shows the view, not the path.
|
||||
- Reason: A choice that a user cannot see does not help, and a target must not move under the pointer. "IDE" promised language services that Source does not have. The tab already names the file.
|
||||
- Scope: Document panes, the tab menu, the status bar, Settings → General, and the docs.
|
||||
- Shared implementation: `ViewModes.svelte`, `documentPanes.ts` (`split` beside `reading`), `fileTitle.ts`, and the `Source` value of the `Chrome` type.
|
||||
- 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.
|
||||
|
||||
Reference in New Issue
Block a user