Move global CSS beside its code and make Documents reactive
Phase 4e. - app.css holds only imports. Its rules moved into files beside their code, in the original cascade order. Dead rules of the deleted TipTap Writer are gone. - workbenchKeys.ts is one table of the workbench shortcuts. Workbench runs the commands. - session.linkTargets is the one link resolution for the link menu and for link opening. - Documents is a rune module (documents.svelte.ts). Workbench reads the tabs and the active path from it, without a copy of all buffers on each change. The editor mount effect now copies the buffer inside untrack, so an edit does not remount the editor. - Unit tests can import .svelte.ts modules through a Node module hook that compiles them with the Svelte compiler. pnpm check, pnpm test (350 of 350), and the full smoke suite pass, except tables/linkCaret, which failed one time under load and passed on retry and 3 of 3 times alone.
This commit is contained in:
@@ -118,7 +118,7 @@ This log records interface rule changes, recurring problems, and exceptions for
|
||||
- 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.
|
||||
- Shared implementation: the heading rules in src/lib/layout/reading.css.
|
||||
- Exceptions: None.
|
||||
- Evidence: Editor browser checks passed in both themes. Screenshots are in output/editor-october12.
|
||||
- Replaces: None.
|
||||
@@ -767,7 +767,7 @@ Native shell, background image, and desktop acceptance remain open.
|
||||
- New rule: Write and Source are two configurations of one CodeMirror state. They share the undo history.
|
||||
- Reason: Lists behave as in common word processors. One editor removes the Monaco model bridge and its timers.
|
||||
- Scope: Markdown documents in Write and Source, and all source files.
|
||||
- Shared implementation: DocumentEditor.svelte, markdownLists.ts, liveMarkdown.ts, sourceView.ts, codeLanguages.ts, editorStates.ts, and the `.reading ol ol` styles in app.css.
|
||||
- Shared implementation: DocumentEditor.svelte, markdownLists.ts, liveMarkdown.ts, sourceView.ts, codeLanguages.ts, editorStates.ts, and the `.reading ol ol` styles in reading.css.
|
||||
- Exceptions: An empty nested item cannot start a list inside a paragraph in CommonMark. Write labels it, and Read shows it as text until the item has text.
|
||||
- Evidence: editor/listNesting.smoke.mjs covers Tab, Shift+Tab, labels, Read letters, the shared history, and the 4-space indent in both themes at 1440 and 600 pixels.
|
||||
- Evidence files: output/smoke/editor/listNesting/.
|
||||
|
||||
Reference in New Issue
Block a user