Files
RuneStone/docs/design-decisions.md
T

563 lines
36 KiB
Markdown

# Design decision log
[Interface design](ui-design.md) · [Agent instructions](../AGENTS.md)
The design guide holds current rules. This log records intentional rule changes, recurring problems, and scoped exceptions for RuneStone and its plugins.
An isolated correction belongs in its normal card or commit record. It does not need an entry here.
## Use this log
Copy the matching template into Entries. Give each entry a unique sequential ID, such as UI-001, and a date.
Replace every placeholder. Use relative links to guide sections, source files, and saved evidence where possible.
Record missing evidence as pending. Do not claim acceptance or completed checks without evidence.
For a rule change or exception, record the decision source, such as the user's direction or an accepted review.
A proposed entry does not authorize a departure from the current guide.
Update the guide in the same change as an accepted rule change. Summarize an active exception beside its affected rule and link its entry.
Record the scope as the app, named plugins, or specific controls. Avoid silently extending a local decision to every plugin.
For recurring problems, link separate occurrences or a regression after a prior correction. Record unknown causes as unknown.
Update an existing problem entry when it recurs. Mark it resolved only after the prevention action and relevant check pass.
Keep earlier decisions when a later entry replaces them. Mark them superseded and link the replacement in both directions.
When an exception ends, mark it retired and remove its active exception note from the guide.
Entry status describes the record. It does not move a Kanban card to Done or replace user acceptance.
## Templates
### Rule change
```markdown
### UI-NNN — Short decision title
- Type: Rule change
- Date: YYYY-MM-DD
- Status: Proposed / Accepted / Superseded
- Decision source: User direction or review link
- Previous rule: Prior behavior and guide section
- New rule: Chosen behavior and current guide section
- Reason: User benefit and relevant design principle
- Scope: App, named plugins, and affected controls
- Shared implementation: Component or token paths
- Exceptions: None, or linked exception entries
- Evidence: Reference images, check results, and review link, or pending items
- Replaces / replaced by: None, or linked entries
```
### Recurring problem
```markdown
### UI-NNN — Short problem title
- Type: Recurring problem
- Date: YYYY-MM-DD
- Status: Open / Resolved
- Existing rule: Link to the rule that still applies
- Scope: App, named plugins, and affected controls
- Occurrences: Links to repeated violations or a regression and its prior correction
- Cause: Evidence for the cause, or unknown with the next investigation step
- Correction: How the current violation returns to the existing rule
- Prevention: Shared component change, override removal, check, or needed rule clarification
- Check: How to detect recurrence and the actual result, or pending
- Evidence: Reference images and card, commit, or review links
- Resolution / recurrence: Date and result, or pending. Reopen this entry if the problem returns.
```
### Exception
```markdown
### UI-NNN — Short exception title
- Type: Exception
- Date: YYYY-MM-DD
- Status: Proposed / Accepted / Retired / Superseded
- Decision source: User direction or review link
- Current rule: Guide section and its exception note
- Departure: Exact difference from the rule
- User benefit: Why the standard pattern does not meet this need
- Scope: Specific app or plugin controls and states where the exception applies
- Shared implementation: Component or token paths and why a local difference is necessary
- Review: Responsible person or role, plus a date or concrete trigger
- Exit condition: When the standard pattern can replace the exception
- Evidence: Reference images, accessibility and interaction checks, or pending items
- Replaces / replaced by: None, or linked entries
```
## Entries
### UI-003 — Quiet menu choices
- Type: Rule change
- Date: 2026-10-12
- Status: Accepted
- Decision source: User-selected cards d10adda6 and 48687378.
- Previous rule: Menus used accent outlines and checkmarks for radio choices. Every row reserved an icon column.
- New rule: Use neutral outlines, quiet radio highlights, and text columns for menus without icons.
- Reason: Reduce competing accents and make the current choice clear.
- Scope: Host menus and Project Management menus through the host API.
- Shared implementation: actionMenu.ts, menu.css, and --rs-menu-border.
- Exceptions: None.
- Evidence: Shared menu checks and appearance checks passed. Screenshots are in output/appearance-pass3 and output/pm-october12.
- Replaces: The outline and radio presentation from UI-002. UI-006 replaces this entry's panel outline. Its quiet radio choices remain.
### UI-004 — Detached tab work area
- Type: Rule change
- Date: 2026-10-12
- Status: Accepted
- Decision source: User-selected card 5a8bc531.
- Previous rule: Detached tabs hid side panes and allowed users to reopen them.
- New rule: Detached tabs do not mount side panes, their switches, or the plugin ribbon.
- Reason: Keep the new window focused on the transferred tab.
- Scope: Windows opened through tab transfer.
- Shared implementation: Workbench.svelte and its detached grid layout.
- Exceptions: None.
- Evidence: Browser transfer checks passed in both themes and narrow windows. Native window acceptance remains pending.
- Replaces: None.
### UI-005 — Heading spacing
- Type: Rule change
- Date: 2026-10-12
- Status: Accepted
- Decision source: User-selected card 17207fbc.
- Previous rule: Document headings used separator lines.
- New rule: Use spacing between headings and sections without separator lines.
- Reason: Keep attention on the document text.
- Scope: Writer and Reader headings.
- Shared implementation: src/app.css heading rules.
- Exceptions: None.
- Evidence: Editor browser checks passed in both themes. Screenshots are in output/editor-october12.
- Replaces: None.
### UI-002 — Share the requested dropdown design
- Type: Rule change
- Date: 2026-10-11
- Status: Accepted
- Decision source: RuneStone cards 71b17a71-13cb-4d8c-a9cb-8822b433a889 and 52b6f235-6c3e-44c0-9ab6-dcbfd371c0ce, selected by the user for implementation.
- Previous rule: Menus used 26-pixel rows, 12-pixel text, and the ordinary panel border. Submenu parents had no default action.
- New rule: Share the reference dropdown geometry across menus. A submenu parent can also run a default action.
- Reason: Make dropdown choices easier to read. Let users create a blank note directly from New note.
- Scope: Host action menus and plugin menus that use the host API, including theme, appearance, board, and list menus.
- Shared implementation: [actionMenu.ts](../src/lib/ui/actionMenu.ts), [menu.css](../src/lib/ui/menu.css), and the `--rs-menu-*` tokens in [tokens.css](../src/lib/theme/tokens.css).
- Exceptions: None. Existing older-host plugin fallbacks remain available.
- Evidence: The [card reference](../output/pass3-ref-0ce1efe3-7e2a-40a8-99bb-64215aa9d977.png). Shared menu checks passed in both themes. Further screenshots accompany the card review.
- Replaces / replaced by: The outline and radio presentation changed in [UI-003](#ui-003--quiet-menu-choices). Other rules remain.
### UI-001 — Separate design decisions from routine corrections
- Type: Rule change
- Date: 2026-10-11
- Status: Accepted
- Decision source: The user's request to implement this policy in the guide, agent instructions, and decision log.
- Previous rule: The guide required UI review evidence but did not distinguish corrections, rule changes, recurring problems, and exceptions.
- New rule: Use the [record categories](ui-design.md#current-rules-and-decision-history) and templates above. Keep current design rules in the guide.
- Reason: Preserve useful design history without a log entry for every isolated correction.
- Scope: Documentation and review workflow for the app and its plugins.
- Shared implementation: [Agent instructions](../AGENTS.md#ui-work-record-design-decisions) and [review evidence](ui-design.md#evidence-for-review). No component or token change.
- Exceptions: None.
- Evidence: The user's explicit instruction in this chat. This entry changes documentation policy and has no visual reference image.
- Replaces / replaced by: None.
### UI-006 — Borderless shared menus
- Type: Rule change
- Date: 2026-10-12
- Status: Accepted
- Decision source: User-selected card 8aa18bb1 requests removal of menu borders across Project Management.
- Previous rule: Shared menus used a neutral panel outline.
- New rule: Shared menus use a transparent outline while retaining their shadow, inset rows, and keyboard focus.
- Reason: Keep attention on the work and give plugin menus one shared design.
- Scope: Host action menus and Project Management menus through the host API. Older-host fallback menus also omit panel borders.
- Shared implementation: --rs-menu-border in tokens.css, menu.css, and PM style.css.
- Exceptions: None.
- Evidence: Menu and PM check reports and screenshots accompany the card review.
- Replaces: The panel outline from UI-003. Its quiet radio choices remain.
### UI-007 — Repeated menu drift
- Type: Recurring problem
- Date: 2026-10-12
- Status: Implemented for user review
- Existing rule: Shared action menus in the interface guide.
- Scope: Browser settings and Project Management card, priority, background, and list-status controls. Scope also includes BG Slideshow settings menus.
- Occurrences: Cards 41461dfe and 1d823866 follow earlier menu corrections in UI-002 and UI-003. Card b8cc5ef1 repeats the issue in background and list-status choices.
- Occurrence: Card f6baf300 repeats the menu problem in a modal Settings dialog.
- Cause: Browser settings used native selects. PM card and priority controls used local popup renderers. Background and list-status choices missed the shared-choice conversion.
- Modal cause: BG Slideshow passed no dialog parent to the shared menu. The menu opened outside the modal and could not receive input.
- Correction: Use the shared menu API for these controls. Match the host background labels and retain the numeric overlay field.
- Modal correction: Pass the nearest dialog as the menu parent.
- Prevention: Check each background choice and the list-status choice with the real host menu API, in both themes and narrow layouts.
- Modal prevention: Run the settings harness with showModal to catch blocked pointer and keyboard input.
- Language occurrence: The French code menu truncated its longer action label during the language-card review on 2026-10-15.
- Language cause: A global .action-label rule forced ellipsis and prevented the shared menu label from wrapping.
- Language correction: The shared menu label explicitly resets overflow, text overflow, and white space in menu.css.
- Language prevention: The shared menu check now includes a long translated action beside a shortcut at a viewport edge.
- Check: The current host and PM check reports record the results.
- Evidence: output/round4-pm-report.json, output/round4-editor-menu-report.json, and output/round4-overlay-report.json.
- Modal evidence: RuneStone_BG_Slideshow/tests/artifacts/settings and the card review notes.
- Resolution: The combined checks passed on 2026-10-12. Reopen this entry if the problem returns.
- Editor occurrence: Cards e7edc2ca and e6dfcb06 report different menus over words, blank space, and IDE content.
- Editor cause: Writer opened its spelling-only menu over words. Code files retained the default Monaco menu.
- Editor correction: Combine spelling suggestions with Markdown actions. Route code actions through the shared menu.
- Editor prevention: Compare word, blank-space, Markdown IDE, and code IDE menus in both themes with keyboard dismissal.
- Editor evidence: `.audit/editor-surfaces` and the shared menu smoke report accompany the card review.
- Relationship occurrence: Card 2f5052e8-965d-4f12-8010-befdd87fa2e9 repeats the menu problem in linked-card Relationship choices.
- Relationship cause: createRelations did not receive the existing shared-choice adapter.
- Relationship correction: Pass useSharedChoices to createRelations and apply it to the Relationship selector.
- Relationship prevention: Test the card relationship selector with the real host menu API, both themes, narrow windows, and keyboard focus.
- Relationship evidence: RuneStone_ProjectManagement/tests/relations-menu.spec.ts and .audit/linked-card-relationship screenshots.
- Reopened on 2026-10-13: cards 2f5052e8 and 048353f7.
The linked-card card returned to To Do because the earlier fix changed Relationship but left Card to link as a native select.
The move-to-board card exposed the same missing adapter in the destination form.
The earlier checks covered the relationship selector only. Rich-picker exemptions also allowed independent visual styles.
The correction applies the adapter to all short PM choices and shares presentation with searchable pickers.
Browser, Terminal, Local Autocomplete, and Slideshow choices form part of the same source audit.
Keyboard focus now scrolls only the menu panel. It cannot dismiss a menu by scrolling its parent dialog.
### UI-008 — Keep native editing menus focused
- Type: Rule change
- Date: 2026-10-12
- Status: Accepted
- Decision source: User-selected card 48671ea0.
- Previous rule: Editable native menus exposed all default WebView2 tools.
- New rule: Retain recognized editing commands and omit unsupported system tools.
- Reason: Keep note menus focused on work within RuneStone.
- Scope: Editable WebView2 targets in the host.
- Shared implementation: src-tauri/src/spelling.rs filters command names before either menu path.
- Exceptions: Separators retain their layout role. Non-editable native menus retain their unrelated actions.
- Evidence: Native payloads and two full smoke runs in output/todo-menus.
- Replaces: None.
### UI-009 — Character theme appearances
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card 7421c542 requests stronger character colors, syntax colors, and one suitable appearance per character.
- Previous rule: Character themes offered separate light and dark appearances with mostly surface colors.
- New rule: Each character uses one appearance with distinct text, accent, and syntax colors. Asuka also offers a school uniform palette.
- Reason: Reflect the character through hair, eyes, clothing, and readable code colors.
- Scope: Character palettes, the theme picker, preview, export, import, and IDE syntax colors.
- Shared implementation: characterThemes.ts, appearance.ts, syntax tokens, and Monaco theme rules.
- Exceptions: None.
- Evidence: Character theme smoke checks passed all five palettes. Contrast checks passed for text and syntax. Screenshots remain in .audit/character-themes.
- Limits: Native desktop checks remain untested.
- Replaces: None.
- Replaced by: UI-012 changes the palette selection. Fixed appearances and syntax rules remain.
### UI-010 — Background surface visibility
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card f0250163 requests transparent new-tab buttons, board lists, and cards.
- Previous rule: New-tab buttons used opaque surfaces. Board lists used a nearly opaque surface, and cards used opaque surfaces.
- New rule: New-tab controls use shared image control tokens. Board lists and unselected cards use modest transparency when an image is active.
- Reason: Keep the image visible while labels and selections remain clear.
- Scope: New-tab buttons and Project Management lists and cards with images.
- Shared implementation: --rs-image-control-bg, --rs-image-control-hover-bg, EditorPane.svelte, and existing PM background styles.
- Exceptions: Selected cards retain the shared selection treatment.
- Evidence: Background browser checks passed both themes and narrow layouts. Screenshots remain in .audit/background-frames and RuneStone_ProjectManagement/.audit/pm-background-*.
- Limits: Native desktop interaction remains untested.
- Replaces: None.
- Replaced by: UI-011 extends the app image across the work area. Control and card rules remain.
- Replaced by: UI-014 changes Project Management surfaces and host image inheritance.
### UI-011 — Backgrounds across the work area
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Cards 0fbf1d44, 17cd5ff2, and 3c610e21.
- Previous rule: The app image appeared only behind the new-tab screen. Sidebars and editors used opaque surfaces.
- New rule: One background spans the work area below the titlebar. Sidebars use an 82% tint. Editors use a 90% tint.
- Reason: Show a continuous image while text and controls remain readable.
- Scope: New tabs, sidebars, Writer, Reading, split views, and IDE.
- Shared implementation: Workbench background layer and --rs-image-sidebar-bg, --rs-image-editor-bg, and --rs-workarea-* tokens.
- Splash controls: Keep buttons, icons, labels, and shortcuts. Remove headings, descriptions, and hint text. Button tint matches Project Management lists.
- Exceptions: Headers, menus, dialogs, and embedded plugin views retain their own surfaces.
- Evidence: Background and appearance browser reports and screenshots accompany the card review.
- Limits: Native desktop appearance and distraction levels require user review.
- Replaces: The new-tab-only scope of UI-010. Its control and card rules remain.
- Replaced by: UI-013 adds menu transparency. UI-014 lets Project Management share the host background.
### UI-012 — Retain three stronger character themes
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card 541c87e6.
- Previous rule: Five character palettes included Renamon and Asuka School Uniform.
- New rule: Retain Holo, Asuka, and Malfoid with stronger identity colors. Remove Renamon and Asuka School Uniform.
- Reason: Reduce unused choices and replace soft colors with recognizable clothing, hair, and eye colors.
- Scope: Theme registry, appearance selection, syntax colors, saved settings, and export.
- Shared implementation: characterThemes.ts, appearance.ts, the shared theme picker, and Monaco theme rules.
- Migration: Removed themes return to RuneStone while their saved mode and background remain.
- Evidence: Palette contrast checks and character browser checks. Screenshots remain in .audit/character-themes.
- Limits: Native desktop appearance requires user review.
- Replaces: The palette selection rule in UI-009. Its fixed appearance and syntax rules remain.
### UI-013 — Translucent menu surfaces
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card e3c5261f requests transparency across menus.
- Previous rule: Menus used opaque elevated surfaces.
- New rule: Shared menus use an 82% theme tint, including hover and active rows.
- Reason: Keep background images visible while menu labels remain readable.
- Scope: Host action menus, submenus, plugin menus through the host API, and the workspace picker.
- Shared implementation: `menu.css`, `--rs-menu-bg`, and `--rs-menu-active-bg`.
- Exceptions: Native system menus retain platform presentation. Rich dialogs retain their own surfaces.
- Evidence: Menu smoke checks pass both themes, keyboard navigation, disabled rows, focus return, submenus, and viewport edges.
- Screenshots: `.audit/menu-file-light.png`, `.audit/menu-file-dark.png`, and `.audit/menu-edge.png`.
- Limits: Native desktop appearance requires user review.
- Replaces: The opaque menu exception in UI-011.
### UI-014 — Readable Project Management surfaces
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Cards ed544871, c290007f, 312ee71d, 399f6818, and 6e1b418d.
- Previous rule: Project Management retained an opaque root. Cards and fields used different tints. Gantt and calendar lacked a shared readable panel.
- New rule: Project Management shows one host image unless a board supplies its own image. Related surfaces share an 82% tint.
- Reason: Show the image once and keep tasks, dates, details, and search text readable.
- Scope: Project Management backgrounds, lists, cards, details, fields, Gantt, and calendar.
- Shared implementation: Host work-area tokens and Project Management surface tokens.
- Exceptions: Selected cards retain the shared selection treatment.
- Evidence: Unit, clipping, keyboard, background, and surface browser checks accompany the card review.
- Limits: Native desktop appearance requires user review.
- Replaces: The Project Management surface scope of UI-010 and the opaque plugin exception in UI-011.
- Background recurrence: Card ed544871 returned to To Do on 2026-10-13 with left and right sidebar examples.
- Background cause: Slideshow published the same frame to the app and boards. Each renderer scaled that image to a different area.
- Background correction: Compare app and board frames, including appearance and transitions. Matching frames use only the host layer.
- Background prevention: Publish matching frames to app and boards in the host integration test. Check both sidebars and narrow layouts.
- Background evidence: `.audit/host-pm-matching-slideshow-*.png` in the Project Management checkout and transient frame tests.
### UI-015 — Slower slideshow fades
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card 9ae11a7a reports that fades are too fast.
- Previous rule: Images faded for 800 milliseconds.
- New rule: Images fade for two seconds. Reduced motion removes the animation.
- Reason: Give the image change a slower visual pace.
- Scope: App and Project Management slideshow frames.
- Shared implementation: Background Slideshow `transitionMs`, host BackgroundHub, and Project Management frame rendering.
- Exceptions: Manual Next and image intervals below two seconds can interrupt a fade.
- Evidence: All 11 slideshow unit tests, TypeScript checks, and the settings browser check pass.
- Limits: Native desktop appearance requires user review.
- Replaces: The 800-millisecond fade rule in the interface guide.
### UI-016 — Translucent code blocks
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card ea3ab6df requests transparent code blocks.
- Previous rule: Fenced code blocks used opaque elevated surfaces.
- New rule: Writer and Reading code blocks share an 82% elevated tint.
- Reason: Keep the image visible through code blocks while code text remains readable.
- Scope: Fenced code blocks in Writer and Reading, including split layouts.
- Shared implementation: `--rs-code-block-bg` in the theme tokens.
- Evidence: Editor browser screenshots and checks accompany the card review.
- Limits: Native desktop appearance requires user review.
### UI-017 — Quiet card detail controls
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card 165db7bc requests transparent buttons and plain label removal.
- Previous rule: Card detail buttons and the footer used separate tinted surfaces.
- New rule: Buttons have transparent resting backgrounds. The footer stays in the content flow with no extra tint.
- Reason: Remove the large label removal button and the dark bar without obscuring the form.
- Scope: Project Management card details. Shared menu rows retain their existing presentation.
- Shared implementation: Existing Project Management hover, focus, surface, and radius tokens.
- Evidence: `.audit/pm-details-fixed-*.png`, focused keyboard checks, and the Project Management browser suite.
- Limits: Native desktop appearance requires user review.
### UI-018 — Named palettes and local fonts
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Cards f7b0eaae, c46f6614, 7c3abb8e, d86825df, and 26f515c6.
- Previous rule: The palettes used character names and the common interface font.
- New rule: Harvest Moon, Crimson Pilot, and Silver Serpent use distinct palettes and local font stacks. Saved choices migrate to the new names.
- Reason: Give each palette a clear identity with readable surfaces, text, and syntax colors.
- Scope: Theme settings, previews, exports, saved choices, and editor colors.
- Shared implementation: Appearance normalization, palette definitions, and font tokens.
- Evidence: Nine theme checks and the theme browser smoke pass. Screenshots are in .audit/character-themes.
- Limits: Native desktop appearance requires user review.
- Replaces: The names and typography in UI-009 and UI-012.
### UI-019 — One tooltip surface
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Cards 18c41c19 and 218d43f3.
- Previous rule: Table cells used native titles. Plugin and toolbar hints used separate styles.
- New rule: Tooltip tokens set the surface, padding, text, font size, shadow, and shared control radius. Controls show one hint.
- Reason: Keep hints readable and remove duplicate labels.
- Scope: Table cell hints, toolbar controls, view switches, and Project Management hints.
- Shared implementation: --rs-tooltip-* tokens, attachTooltip, IconButton, ModeSwitcher, and pm-tooltip.
- Evidence: Browser checks cover light and dark themes, keyboard focus, Escape, narrow windows, and viewport edges.
- Evidence files: Host .audit/todo-ui and Project Management .audit/tooltip-*.png.
- Limits: Native desktop appearance requires user review.
Cards 07e0c4e4 and 0f9fc3b9 exposed remaining tooltip drift after UI-019.
Cause: native titles and local CSS bypassed attachTooltip. Earlier tests did not cover these control paths.
Correction: prose links and editor controls use the shared tooltip helper. The table keeps a concise cell hint.
Prevention: check the exact screenshot target with pointer and keyboard focus, both themes, Escape, and viewport edges.
Evidence: editorLinkEditing.smoke.mjs and the editor screenshot attachments. Native desktop acceptance remains open.
### UI-020 — Per-image slideshow layout
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card 9c5ae261 and the user's approval of the draft on October 13.
- Previous rule: One global layout applied to every slideshow image.
- New rule: Per-image fit, position, and overlay settings override the global layout. Portrait images use a full foreground over blurred fill by default.
- Reason: Show portrait images without cropping their content or leaving empty bands.
- Scope: Slideshow settings, app backgrounds, and Project Management backgrounds.
- Shared implementation: The image sidecar API, optional blurredUrl frames, and separate foreground and cover layers.
- Evidence: Host frame and sidecar checks cover layout, cleanup, size limits, and external changes. Plugin checks accompany the card review.
- Limits: Native desktop appearance requires user review.
### UI-021 — Workspace links in document panes
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card 68ccce34 requests workspace link actions, including Open to the right.
- Previous rule: Documents used one editor pane. Split layouts supported plugin views.
- New rule: Workspace links can open another document beside the current pane. Each document has one visible pane. Duplicate targets focus their existing pane.
- Reason: Keep the source note visible while users read or edit its linked note.
- Scope: Document panes, focus, save routing, selection, model lifetime, and close controls.
- Shared implementation: splitLayout geometry, documentPanes state, document sessions, and IconButton.
- Narrow layout: Document panes stack vertically and keep their content scrollable.
- Close behavior: Closing a split removes its pane and preserves the document tab and unsaved text.
- Evidence: Document unit checks and the split browser smoke accompany the card review.
- Limits: Native desktop acceptance requires user review. Pane layouts remain local to the open window.
### UI-022 — Functional color without an artificial ceiling
Type: Rule change
Date: 2026-10-13
Status: Superseded
Decision source: The user's request for functional color and current character references, plus cards 093e372f and 4bb33e4f.
Previous rule: Quiet surfaces and accents reserved for attention, without a clear boundary between layout restraint and color strength.
New rule: Quiet structure places no ceiling on saturation or HSV value. Color strength follows function and the current references.
Reason: Repeated muted palettes reduced identity and priority visibility.
Scope: Host and plugin themes, status indicators, syntax colors, and review evidence.
Shared implementation: Character palette roles, selection tokens, priority variables, and shared menu presentation.
Evidence: Exact Holo color measurements, contrast checks, and screenshots accompany the card review. Native desktop acceptance remains open.
Replaces: The interpretation that quiet structure requires globally muted colors.
Replaced by: [UI-024](#ui-024--assertive-functional-color-by-default) strengthens the default and required evidence.
### UI-023 — Separate theme font roles
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: The user's request to review all three theme fonts.
- Previous rule: Each named theme used one family for controls, prose, and headings.
- New rule: Compact controls and longer prose can use separate families. Each role keeps a fallback stack.
- Reason: Small serif controls were harder to scan. Bahnschrift prose gave long passages the same condensed appearance as tool labels.
- Scope: Harvest Moon, Crimson Pilot, and Silver Serpent.
- Shared implementation: --rs-font-ui, --rs-font-prose, and --rs-font-heading in tokens.css.
- Evidence: themeTypography.smoke.mjs checks actual rendered fonts, selected text, narrow menus, and long settings navigation.
- Limits: Native WebView rendering and subjective reading comfort require user acceptance.
- Replaces: The single-family rule in UI-018. Its saved theme names remain.
### UI-024 — Assertive functional color by default
- Type: Rule change
- Date: 2026-10-13
- Status: Accepted
- Decision source: The user's explicit request for stronger color requirements for future agents and human developers, including a global skill.
- Previous rule: UI-022 permitted full saturation and value but did not require a stronger candidate or evidence for softer choices.
- New rule: Start with assertive functional colors. Prefer stronger candidates when readability and meaning remain sound. Require concrete evidence for softer choices.
- Reason: Permission alone leaves the default unclear. Earlier soft palettes required repeated corrections.
- Scope: RuneStone and all plugins. The user's global skill applies the same preference to other UI work within its stated scope.
- Shared implementation: [Functional color requirements](ui-color.md), theme tokens, project agent instructions, and the global ui-functional-color skill.
- Exceptions: Explicit user direction and approved project exceptions retain their scope. Readability remains required.
- Evidence: The [October 13 review](menu-audit.md), cards 093e372f and 4bb33e4f, and the user's direction in this chat.
- Limits: This policy cannot guarantee future adherence. Reviews still need measured values and rendered screenshots.
- Replaces: [UI-022](#ui-022--functional-color-without-an-artificial-ceiling) for the strength of the default and required evidence.
- Release impact: Documentation and instructions only. No version or artifact change.
### UI-025 — Table links hide their source after repeated fixes
- Type: Recurring problem
- Date: 2026-10-13
- Status: Resolved
- Existing rule: Inline editing keeps attention on the document under the interface design principles.
- Scope: Writer links inside Markdown table cells.
- Occurrences: Cards 8ee17b99-3a69-49c0-8aa1-e3d67e8f966f, 08f4f317-6273-4279-8136-4afe6f665b1d, and e9105823-69b2-440b-8931-5782256c8ce8.
- Cause: A normal click placed the caret in rendered text but did not reveal the link source. Earlier tests checked caret position and invoked Edit link before checking the URL.
- Correction: Reveal inline Markdown when the caret enters a link. Preserve the caret position within its label.
- Prevention: Check ordinary clicks and keyboard entry before invoking any menu. Check the visible URL, label edits, target edits, undo, and save.
- Check: The ordinary-click and keyboard regression passed in both themes at wide and narrow widths. Source checks and 245 unit tests passed.
- Evidence: The current card includes the actual and expected screenshots. New screenshots accompany its review.
- Resolution: Source checks passed on 2026-10-13. Native WebView acceptance remains open. Reopen this entry if the problem returns.
### UI-026 — Compact shared menu rows
- Type: Rule change
- Date: 2026-10-14
- Status: Implemented for user review
- Decision source: Card e16480da-be7d-426c-969e-8af0cd894e54 requests more actions within the same vertical space.
- Previous rule: Menus used 30-pixel rows and 4-pixel vertical padding.
- New rule: Menus use 24-pixel rows and 2-pixel vertical padding. Text, icons, panel padding, and horizontal padding retain their shared dimensions.
- Reason: Compact rows reduce menu height while preserving readable labels and keyboard access.
- Scope: Host and plugin action menus, submenus, and shared picker rows.
- Shared implementation: --rs-menu-row-height and --rs-menu-row-padding in tokens.css, consumed by menu.css and plugin controls.
- Evidence: The file menu measures 456 pixels after the change and 558 pixels with the previous tokens, in both themes.
- Checks: menuConsistency.smoke.mjs compares host menus, keyboard access, disabled actions, modal menus, and viewport bounds.
- Limits: Browser checks use desktop mocks. Native display scaling and user acceptance remain open.
### UI-027 — Direct spelling corrections
- Type: Rule change
- Date: 2026-10-14
- Status: Implemented for user review
- Decision source: Card 658fc42d-6d6d-4d90-8d32-0e350ebfbc9f and its Obsidian screenshot.
- Previous rule: The Markdown menu placed spelling corrections inside a final Spelling submenu.
- New rule: Put corrections and Add to dictionary first in the main editing menu.
- Reason: Users can see and choose a correction immediately after a right click.
- Scope: The shared Markdown menu in Writer and the Markdown source editor.
- Shared implementation: markdownMenu.ts with the shared actionMenu renderer.
- Checks: editorSurfaces.smoke.mjs checks direct corrections, keyboard activation, replacement, undo, and narrow menus in both themes.
- Limits: Browser checks mock Windows spelling results. Native dictionary behavior remains a user acceptance check.
### UI-028 — Adjustable surface transparency and fixed custom palettes
- Type: Rule change
- Date: 2026-10-15
- Status: Implemented for user review
- Decision source: Cards 31d8931e-9d1b-4688-bb4f-03ee727b0f8f and 90906e18-4082-445e-a6fd-3cbda4d94226.
- Previous rule: Image surfaces and menus used fixed tint percentages. Theme templates contained separate light and dark palettes.
- New rule: Appearance controls surface transparency from 0% to 100% and can make surfaces opaque. The slider uses current theme tokens. Theme templates contain one fixed palette and the current interface, prose, heading, and code font stacks.
- Reason: Users need control over image visibility and compositing. A single palette matches the selected theme without a separate mode toggle.
- Scope: Host menus, image surfaces, compatible plugin surfaces, and custom theme import and export.
- Shared implementation: appearance.ts, customThemes.ts, and the surface-opacity tokens in tokens.css.
- Compatibility: Default surface and editor tints remain 82% and 90%. Schema 1 files remain importable.
- Evidence: scripts/appearanceLanguage.smoke.mjs, scripts/customThemes.spec.ts, and the affected cards retain checks and screenshots.
- Follow-up evidence: Cards 5a56a250-b46a-4319-8f25-5f6ac4362a32, 682ad51f-66a1-477d-b02e-c1acb1c14d4e, and 97fe6f6b-5780-436e-abd8-a8135efbbe87 cover the full range, themed slider, and missing font stacks. `scripts/hostAppearance.smoke.mjs` checks the exact controls and exports.
- Limits: Browser checks use desktop mocks. Native display and user acceptance remain open.