Phase 5-3.
- One radio group shows Write, Source, and Read at all times, with an
icon and a name. Narrow panes show only the icons. The arrow keys
move the choice, and the group has one Tab stop. The current choice
gets the selection fill and an accent bar. Hover gets only a fill.
- A Split toggle shows Read beside Write or Source. Each document pane
keeps a split flag beside its reading flag. Read ends Split.
- Ctrl+Shift+E switches between Read and the editor. Ctrl+E still
switches between Write and Source.
- "IDE" becomes "Source" in the Chrome type, the tab menu (a View
submenu), the status bar, the catalog, the tests, and the docs.
- Settings, General, File name title hides the title in Write and
Read. It is on by default.
- The breadcrumb shows only the folder of the file. The status bar
shows the view, not the path.
- ModeSwitcher.svelte and its hover test are gone. The new test
layout/viewModes covers the control.
- The command palette from 5-2 gets its row in docs/menu-surfaces.json.
- The user guide Format table is whole again. The 5-2 edit had put
the Paragraph and Insert rows under the shortcut table.
- 8 new catalog rows and 10 removed rows, in French, Japanese, and
Simplified Chinese.
- Docs: UI-049, the user guide, ui-design.md, document-tools.md,
development.md, and the README feature list.
Tests: the new layout/viewModes, new cases in documentPanes.spec.ts
and settings.spec.ts, and the chooseView harness helper. 21 smoke
tests use the new control. Tests that read the full path from the
breadcrumb now read its tooltip.
Phase 5-2.
- Ctrl+Shift+P opens the command palette: every workbench command with
its shortcut, then the plugin commands (UI-048).
- In Write, Ctrl+B, Ctrl+I, Ctrl+Shift+X, and Ctrl+Shift+H format the
selection, and Ctrl+K inserts a Markdown link. The Format menu shows
these shortcuts.
- Ctrl+\ toggles the side pane. It matches the physical key on every
keyboard layout. Ctrl+B now belongs to Write.
- Help lists every shortcut in groups, open by default. The list comes
from the command table.
- src/lib/ui/shortcuts.ts writes shortcut labels for the platform:
Ctrl+Shift+P on Windows and Linux, and the macOS symbols on a Mac.
The catalog uses placeholders, so no translation contains "Ctrl".
- 19 new catalog rows, and 10 rows converted to placeholders, in
French, Japanese, and Simplified Chinese.
- Docs: UI-048, the user guide keyboard tables, and a label rule in
ui-design.md.
New tests: layout/commands, tests/unit/ui/shortcuts.spec.ts, and new
cases in workbenchKeys.spec.ts. Tests that read the old labels or
pressed Ctrl+B for the side pane now use the new names and Ctrl+\.
The smoke harness raises the resource timing buffer to 5000 entries.
The new modules pushed the CodeMirror language module past the
default 250 entries, so editor/markdownPaste could not find its URL.
The file pane menu took its items from live state: the template list,
the selection, and the clipboard. A template reload while the menu was
open rebuilt the menu and closed its open submenu. The
workspace/manageTemplates smoke test failed in about half of its runs
because of this race.
ContextMenu.svelte now reads the items once when the menu opens. It
builds the menu again only when its position or label changes.
manageTemplates has a new check: a template reload keeps the open
submenu. The check fails without the fix. With the fix, the test passed
6 of 6 runs. The tree, plugins, menus, and workspace smoke groups pass
(23 of 23), and pnpm check passes.
Phase 4d. session.svelte.ts holds the workspace state of each window:
the marks, the note index, renames, and typed change events. It
replaces refreshToken.
- One rename path: session.rename serves the tree, the note title, the
rename command, the link menu, plugins, and the template manager.
Open documents, plugin views, the index, and the marks follow it.
A title rename, the rename command, and a plugin rename now also
move pins and bookmarks.
- marksStore.svelte.ts is the only writer of .runestone/marks.json.
Changes run in order from the latest marks. A change from another
window reloads the marks.
- The note index updates only the paths that change, does not rescan
on window focus, reads in batches of 64, and keeps links, not text.
- Plugins also hear about .runestone/ changes from other windows.
- The outline uses the heading parser of heading links and Read, so
lines in code blocks are no longer headings.
- New note is above New file in the tree menu (card a6032af5).
- New workspace/session smoke test and new unit tests for the index
and the outline.
pnpm check, pnpm test (347 of 347), and the full smoke suite pass,
except workspace/manageTemplates, which failed one time under load and
passed on retry and 4 of 4 times alone.
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.
Each smoke test now uses tests/smoke/_harness/ for Playwright, the Tauri
IPC mock, the in-memory workspace, and output folders, instead of its
own copy. The tests keep their interactions and assertions. Mock
handlers that the app never calls are gone.
- Split the four mixed regression scripts into 18 feature tests.
- Update tests that broke when the app changed on purpose. Each update
cites the app source that shows the new behavior.
- Mark two real app defects with @known-issue: the settings window
controls are 1px shorter than the main window controls, and plugin
tabs cannot be reordered by dragging without a workspace.
- Merge three palette unit tests into one table-driven test.
- The native tests load Playwright through the harness and read
NATIVE_CDP_URL, with their old variable names as fallbacks.
- A failed smoke test saves a screenshot and prints the console errors.
- The runner runs failed tests once more, alone, and reports a test
that then passes as flaky.
Result: 89 passed, 1 flaky, 2 known issues, 0 failed. Before, 45 of 78
passed.
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.