Update editor, themes, menus, backgrounds, and release tooling

This commit is contained in:
Knotty Wyvern
2026-10-14 16:19:51 -07:00
parent f6eaa52949
commit edef2520af
113 changed files with 5722 additions and 386 deletions
+338 -2
View File
@@ -177,16 +177,41 @@ Entry status describes the record. It does not move a Kanban card to Done or rep
- Type: Recurring problem
- Date: 2026-10-12
- Status: Resolved
- 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: 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.
- 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
@@ -204,3 +229,314 @@ Entry status describes the record. It does not move a Kanban card to Done or rep
- 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.