Update the browser, editor, settings, and installer
This commit is contained in:
@@ -0,0 +1,206 @@
|
||||
# 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: Resolved
|
||||
- Existing rule: Shared action menus in the interface guide.
|
||||
- Scope: Browser settings and Project Management card, priority, background, and list-status controls.
|
||||
- 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.
|
||||
- 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.
|
||||
- Correction: Use the shared menu API for these controls. Match the host background labels and retain the numeric overlay field.
|
||||
- Prevention: Check each background choice and the list-status choice with the real host menu API, in both themes and narrow layouts.
|
||||
- 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.
|
||||
- Resolution: The combined checks passed on 2026-10-12. Reopen this entry if the problem returns.
|
||||
|
||||
|
||||
### 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.
|
||||
|
||||
Reference in New Issue
Block a user