Update the browser, editor, settings, and installer

This commit is contained in:
Knotty Wyvern
2026-10-12 14:46:21 -07:00
parent 909894b9c8
commit f6eaa52949
163 changed files with 146260 additions and 534 deletions
+95 -4
View File
@@ -8,6 +8,7 @@ This reference describes the interface and its shared dimensions. Agent instruct
## Design principles
Keep attention on the user's work. Use quiet backgrounds for the active view and reserve strong accents for alerts or actions that need attention.
Show only what the current task needs. Let users collapse optional sections and hide panes when they need more space.
Tabs can join visually with their content area. A selected view does not need a bright border or a repeated heading.
Show each board name once in the main controls. Keep switching and renaming as separate actions with clear targets.
@@ -33,6 +34,9 @@ Document and plugin tabs share the tab bar. The new-tab button follows the tabs.
Tabs retain their order and pin state when a plugin replaces its current view.
The last closed tab leaves an empty New tab. Sidebar widths and visibility persist across window sessions.
Opening a different editor does not restore a hidden outline.
Detached tabs contain the tab work area and window controls. They do not mount side panes, a plugin ribbon, or pane switches.
Their layout does not change the main window layout. See [UI-004](design-decisions.md#ui-004--detached-tab-work-area).
The built-in browser opens from its own toolbar action. Project Management opens from Plug-in views.
## Icons and controls
@@ -57,24 +61,43 @@ Feature code does not override menu rows. Menu width can expand when content nee
| --- | --- | --- |
| `--rs-menu-width` | 248px | Standard menu width |
| `--rs-menu-padding` | 5px | Inset around rows |
| `--rs-menu-row-height` | 26px | Minimum row height |
| `--rs-menu-row-padding` | 3px 8px | Vertical and horizontal row padding |
| `--rs-menu-font-size` | 12px | Shared text size |
| `--rs-menu-row-height` | 30px | Minimum row height |
| `--rs-menu-row-padding` | 4px 10px | Vertical and horizontal row padding |
| `--rs-menu-font-size` | 13px | Shared text size |
| `--rs-menu-border` | `transparent` | Borderless panel |
| `--rs-menu-icon-size` | 14px | Action icon size |
| `--rs-menu-icon-gap` | 8px | Space between icon and label |
All rows reserve an icon column. Shortcut text and submenu arrows occupy trailing columns.
Menus with only text choices omit the icon column. Mixed action menus reserve the icon column for every row.
Shortcut text and submenu arrows occupy trailing columns.
Enabled rows share hover and keyboard focus colors. Disabled rows stay readable and cannot run.
Menus support arrow keys, Home, End, Enter, Space, and Escape.
Right opens a submenu. Left returns to its parent. Keyboard dismissal restores focus.
Menus stay inside the viewport and scroll when their contents exceed its height.
Menus use 30-pixel rows, 13-pixel text, and a borderless panel with a shadow.
Keep hover and keyboard focus fills quiet, with an inset from the panel edge.
Theme, appearance, board, and list menus share these values. See [decision UI-002](design-decisions.md#ui-002--share-the-requested-dropdown-design).
See [UI-006](design-decisions.md#ui-006--borderless-shared-menus) for the borderless panel rule.
Radio choices show the current option with a quiet fill and no checkmark.
The current enabled radio choice receives focus when its menu opens. See [UI-003](design-decisions.md#ui-003--quiet-menu-choices).
A menu row can have a default action and a submenu.
Clicking the label, Enter, or Space runs the default action. Hover, the submenu arrow, or Right opens the submenu.
New note creates a blank note. Its submenu contains templates and Manage templates.
Searchable pickers and form dialogs can use richer layouts. Native select controls retain platform behavior.
Native editing menus retain recognized editing, spelling, and emoji commands.
They omit system sharing, writing direction, dictation, and unsupported unnamed tools.
The host filters the native collection before shared display or native fallback. See [UI-008](design-decisions.md#ui-008--keep-native-editing-menus-focused).
## Settings
Settings navigation pairs icons with labels. Each settings page uses readable text and ordinary controls.
Related plugin metadata and actions occupy compact rows. Controls wrap at narrow widths, and the content area scrolls.
Long navigation lists must leave room for the selected page.
New tabs and Project Management keep separate background images and settings in every theme. Images can be up to 50 MiB.
Image bytes stay in IndexedDB. Settings retain a small image reference.
Both support image size, nine alignment positions, and an overlay that lightens or darkens the image.
Set the overlay with the slider or type a percentage from -100 to 100.
An image stays within its view area while content scrolls. A board can retain its own image.
| Shared token | Default |
| --- | --- |
@@ -92,6 +115,8 @@ The IDE and Terminal share `--rs-font-mono` and `--rs-code-font-weight`.
The monospace stack starts with Cascadia Mono, then Cascadia Code, JetBrains Mono, Fira Code, and Consolas.
The default code weight is 300. Actual appearance depends on installed fonts and their available weights.
Terminal font-size preferences remain independent.
Document headings use spacing between sections. They do not use separator lines.
Heading fold controls use the shared chevron and support keyboard focus. See [UI-005](design-decisions.md#ui-005--heading-spacing).
Tables use shared cell padding and line height. Entering a cell does not change its row height.
A plain paragraph after a table remains a paragraph when the separator line is removed.
@@ -108,3 +133,69 @@ The menu check covers file, folder, pane, tab, editor, table, and submenu exampl
Use `SMOKE_URL` to select the server URL. Use `PLAYWRIGHT_MODULE` and `CHROME_PATH` when the environment needs explicit paths.
Browser tests with desktop mocks do not replace native installer and window acceptance checks.
## Keep controls quiet
Keep empty forms hidden until the user chooses an add action. Keep section names, counts, and expand controls visible.
Remember that a collapsed section still contains work. Do not remove its data or hide errors that need attention.
Compact toolbars use icon buttons by default. Each button needs an accessible name and a tooltip on hover and keyboard focus.
Keep visible text for ambiguous choices and action menus. Do not add a caption to one familiar toolbar action while its peers use icons.
Board switching, renaming, and adding work remain separate controls. Put plug-in views in the toolbar, away from the new-tab button.
## Shared choices and highlights
Use the shared action menu for short option lists, including board and theme choices. Mark the current option with a radio state.
Use a searchable picker for long lists. Native selectors remain an older-host fallback for plugins.
Menu rows use the same inset, hover fill, focus fill, and corner radius. A menu choice and a file selection serve different purposes.
File selections retain the shared selection fill and outer outline. Hover uses the quiet active background across both surfaces.
Do not copy feature-specific colors into a shared control.
The Claude palette follows the [Anthropic brand guide](https://github.com/anthropics/skills/blob/main/skills/brand-guidelines/SKILL.md).
Keep its warm light and dark surfaces, orange accent, Lora body font, and Poppins headings with their documented fallbacks.
Shared dimensions and interaction rules apply to every palette.
## Prevent repeated UI drift
Before a new control, find its shared component and an existing example. Extend that component when the same change helps other callers.
A plugin can call `api.ui.showActionMenu` for the host menu. The host handles dismissal, focus return, and plugin cleanup.
See [UI-007](design-decisions.md#ui-007--repeated-menu-drift) for repeated menu drift and its prevention checks.
Rich pickers and forms can use separate layouts under the menu rules above. These permitted layouts do not need exception entries.
Check local style overrides when a shared control differs from its peers. Correct the shared component or token when it causes the problem.
### Current rules and decision history
This guide is the current design reference. The [design decision log](design-decisions.md) records reasons, recurring problems, and exceptions.
Keep current rules here so contributors do not need to reconstruct them from old entries.
The trigger for a rule-change entry is a changed design rule, even when only one control changes.
| Change | Required record |
| --- | --- |
| Isolated correction to an existing rule | Normal card or commit record. No design entry. |
| Intentional rule change | Update this guide and add a rule-change entry with its reason and scope. |
| Recurring problem | Link the occurrences and record the cause, prevention action, and check. |
| Deliberate exception | Record the user benefit, exact scope, and review date or trigger. Link it from the affected rule here. |
Restoring a menu to its specified color is a correction. Choosing a new font for the interface changes a rule.
Repeated wrong menu colors need a recurring-problem record. Check the shared component and local overrides before adding more guidance.
Repeated symptoms do not prove a cause. Record uncertainty until evidence identifies the cause.
Use the log templates for new entries. Update the existing entry when the same problem returns.
Keep historical decisions and link their replacements. A proposed entry does not replace the current rule.
### Evidence for review
For each UI change, include this evidence in the card or change review:
- Affected controls, the applicable guide section, and the shared component or token. Explain any separate implementation.
- Relevant screenshots of changed states in light and dark themes, including narrow layouts and applicable focus or disabled states.
- Results for keyboard use, empty and populated states, and the relevant checks listed above. State any unavailable checks.
- A check against the design principles: repeated headings, competing accents, unnecessary controls, and space left for the user's work.
- A link to a decision entry when a rule changes, a problem recurs, or an exception applies.
Keep screenshots as review evidence. An isolated correction still needs evidence, but it does not need a design entry.
Use accepted examples as visual references for later changes. Label each reference with its control, theme, state, and current rule.
Replace outdated references when the rule changes. Do not treat an unreviewed screenshot as an accepted design.
Run the shared menu check after menu changes and relevant feature checks after behavior changes.
Keep native desktop checks separate from browser tests with mocked desktop services.
Automated checks support visual and interaction review. They do not decide whether the interface keeps attention on the user's work.
Move implementation-ready work to Review after the relevant checks pass. Keep unresolved work In progress and reserve Done for the user's acceptance.