Phase 5a-3. The owner chose candidate B of each palette.
- Menus are opaque (UI-043, replaces UI-013). With a background image,
menus are at least 92% opaque and blur the image. Submenus show as
manual popovers in the top layer, so the blur cannot clip them.
- In a light palette, the page is the lightest surface, and the side
panes have a slight tint (UI-044).
- RuneStone uses neutral surfaces and the rune cyan of the app icon.
Claude Dark uses the layout of the Claude app. Claude Light uses a
white page with brand Light panes and a darker orange for text.
Sakura uses Petal Veil for active rows.
- All five core palettes pass every readability rule. A text role keeps
the hue of its source and changes only its lightness.
- The accent-text rule also checks accent-2, because inline code in
Read uses it as text.
- The root token defaults match RuneStone Dark.
pnpm check passes. pnpm test: 447 pass, 5 todo, 0 fail. Full smoke
suite: 92 passed, 2 known. editor/markdownPaste and tables/formulas
failed one time and passed on retry. workspace/manageTemplates fails
about half of its runs, also on the previous commit: the tree menu
rebuilds when the template list reloads, and the open submenu closes.
Phase 5a-1 and 5a-2.
- roles.ts names 51 color roles. One derivation rule fills the roles
that a theme does not give, for all themes. tokens.css keeps only the
root defaults, without theme blocks.
- Each built-in theme is one data file in src/lib/theme/themes/. No code
outside the theme data names a theme ID. characterThemes.ts is gone.
- New roles: link, focus, on-accent, highlight, scrim, the syntax roles,
and 16 terminal (ANSI) roles. Stray colors in components use the roles.
- contrast.ts checks each theme against the readability rules of
docs/ui-color.md. The tests mark the known palette failures as todo,
and a second test fails when a known failure starts to pass.
- Theme files use schema 3 with a mode and an optional built-in base.
A short file gets the missing colors and fonts from the base. Schema 1
and 2 files still import. Old syntax names convert on import.
- Docs: ui-color.md, plugin-development.md (theme tokens), ui-design.md,
guides/themes.md, and UI-041 and UI-042 in design-decisions.md.
The applied colors stay the same for every built-in theme, except three
small changes: the conflict line uses the warn color, the Write
highlight uses the highlight role, and two dialog backdrops use the
scrim role.
pnpm check passes. pnpm test: 447 pass, 31 todo, 0 fail. Full smoke
suite: 93 passed, 2 known. appearance/palettes read the old syntax
names and passed 3 of 3 times after the fix. workspace/manageTemplates
failed one time and passed on retry.
Phase 4c. The Markdown, code, Read, and image menus open through
showActionMenu. It closes a menu on an outside press, an outside scroll,
a resize, and window blur. A host surface now gives its own focus
return, so four copies of the listener code are gone.
- menuItems.ts builds Undo, Redo, the clipboard rows, and the search
row. The Markdown, code, Read, table cell, and table range menus use
it. The Markdown and table menus now show the shortcuts for Cut,
Copy, Paste, and Select all, as the other menus did.
- writerSearch.ts is now editorSearch.ts, because it serves Write and
Source.
- Plugins still get only close() from api.ui.showActionMenu. The SDK
menu types do not change.
- The table range menu and the native spelling menu keep their own
lifecycle, because their open state drives table editing and the
native spelling protocol.
- docs/ui-design.md names the shared rows and the search modules. The
menu inventory has the new count for markdownMenu.ts.
pnpm check, pnpm test (341 of 341), and the full smoke suite pass, except
tables/formulas, which failed one time under load and passed on retry.
Phase 4b. DocumentEditor.svelte replaces LiveWriter.svelte and the Monaco
EditorHost.svelte. Each open document has one CodeMirror state. Write and
Source are two compartment configurations of it, so they share the undo
history. editorStates.ts keeps the state while the tab stays open. The
Monaco model, the diff bridge, its timers, and sessions.ts are gone.
- Source: syntax colors from the theme tokens, lazy language packages,
line numbers, folding, and the current line in IDE, wrapped lines in
Writing, several carets, and bracket matching and closing.
- Lists (card 088e778b): Tab nests a list item and Shift+Tab moves it
up, in Write and Source. Both renumber the list. The source keeps
"1.". Write and Read show numbers, letters, then Roman numerals.
- Indent (card 696c30ce): a fixed 4 spaces in Write and Source.
- The code menu uses CodeMirror commands. The command palette item and
the Monaco styles, search, theme, and workers are removed.
- @codemirror/legacy-modes is pinned to 6.5.4. Version 6.5.5 uses
parser types that do not match @codemirror/language 6.12.
- 26 smoke tests use CodeMirror instead of Monaco. New tests:
editor/listNesting and the markdownLists unit tests.
- Docs: development, UI design, plugin host, user guide, and UI-040.
pnpm check, pnpm test (341 of 341), and pnpm build pass. The full smoke
suite passes, except one template test that passed on retry.
Unit tests go to tests/unit/<area>/, browser smoke tests to
tests/smoke/<area>/, and tests against a running desktop app to
tests/native/. Files named after dates, work passes, or Kanban cards get
feature names, for example editorOctober12 -> editor/footnotes.
scripts/ keeps the build, release, and package tools. Plugin repositories
import scripts/packagePlugin.mjs, and the Terminal smoke test imports
scripts/pluginMocks.mjs, which now re-exports the harness copy.
The unit tests get their own type check (tests/tsconfig.json) with Node
types. pnpm check runs it after the app check. Add @types/node and fix
the three test mocks that it reported.
Move the agent instructions from AGENTS.md to CLAUDE.md. AGENTS.md now
points to CLAUDE.md. The UI rules move to docs/ui-design.md. The version
and release policy moves to the new docs/releases.md.
Rewrite the README, the user guides, and the developer references.
Check each claim against the code. Remove old version history and
repeated warnings. Link to Gitea at git.knottywyvern.com instead of the
LAN address. Move the October 13 menu audit to the archive.