Web shell and editor core #7

Open
opened 2026-10-13 15:01:14 +00:00 by kayg · 1 comment
Owner

Web shell and the editor core (ADR 0018, 0019, 0022, 0036).

  • Plain Svelte 5 + Vite SPA, tiny router with deep links (ADR 0017), one client store fed by the journal (ADR 0013).
  • CodeMirror 6 + y-codemirror.next, Craft-style hidden syntax (default) and source mode. Block chrome as small extensions. No layout shift, ever.
  • y-indexeddb offline, first-keystroke save, "Not saved yet" honesty, persistent storage request.
  • Own-keystroke-only transforms, undo only your own changes, IME-safe remote updates.
  • UI only after the mockup (#13) is approved; this issue starts with the engine and tests, not the look.
  • Tests by role/name + ready signal; chromium + webkit, 390/1440.
Web shell and the editor core (ADR 0018, 0019, 0022, 0036). - Plain Svelte 5 + Vite SPA, tiny router with deep links (ADR 0017), one client store fed by the journal (ADR 0013). - CodeMirror 6 + y-codemirror.next, Craft-style hidden syntax (default) and source mode. Block chrome as small extensions. No layout shift, ever. - y-indexeddb offline, first-keystroke save, "Not saved yet" honesty, persistent storage request. - Own-keystroke-only transforms, undo only your own changes, IME-safe remote updates. - UI only after the mockup (#13) is approved; this issue starts with the engine and tests, not the look. - Tests by role/name + ready signal; chromium + webkit, 390/1440.
Author
Owner

Progress: the engine part is up for review in #21 (not merged).

  • packages/editor: shared text as the document, hidden syntax + source mode, margin block controls, [[/@ → standard links on own typing only, undo of own changes only, IME gate, honest save status via server confirmations, lineage replay, offline local copy, tabs over BroadcastChannel.
  • apps/web: plain shell (router, one store, live client, note page).
  • 45 unit tests + 12 browser tests × Chromium/WebKit × 390/1440, green.
  • Found and fixed a data-loss trap: closing a tab within milliseconds of typing offline dropped the last letters. Now a permanent test.
  • Keystroke to next frame (Chromium): p50 ~11 ms, p95 ~18 ms.

Still in #7 after the mockup (#13): the look, the note picker, block action behaviour, keyboard access to block controls.

Progress: the engine part is up for review in #21 (not merged). - `packages/editor`: shared text as the document, hidden syntax + source mode, margin block controls, `[[`/`@` → standard links on own typing only, undo of own changes only, IME gate, honest save status via server confirmations, lineage replay, offline local copy, tabs over BroadcastChannel. - `apps/web`: plain shell (router, one store, live client, note page). - 45 unit tests + 12 browser tests × Chromium/WebKit × 390/1440, green. - Found and fixed a data-loss trap: closing a tab within milliseconds of typing offline dropped the last letters. Now a permanent test. - Keystroke to next frame (Chromium): p50 ~11 ms, p95 ~18 ms. Still in #7 after the mockup (#13): the look, the note picker, block action behaviour, keyboard access to block controls.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#7
No description provided.