docs: record writing-view UI-disappears fix in PLAN and CHUNK#3 progress

This commit is contained in:
Schwitzz
2026-10-25 16:03:33 -05:00
parent 015e18ff96
commit 41613b151e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -2,6 +2,9 @@
**Status:** In progress. Steps 1–3 committed. Step 4 (polish) in progress.
## Bug fixes
- [x] **UI disappears when navigating to Write** — WritingView passed `chapter.doc.content` (a bare ProseMirror node array) as editor `content`, so `EditorState.create` built a doc node with an undefined type and threw `Cannot read properties of undefined (reading 'schema')`, unmounting the write view. Fixed by passing the full doc object (`{ type: 'doc', content }`) on init and on `setContent` sync. Verified in a headless browser: editor renders the seeded chapter ("The Glass Harbor") with no console errors. Regression tests in `packages/editor/src/use-editor-doc.test.ts`.
## Progress
- [x] Step 1: Editor package (TipTap 3 schema, wrapper, markdown, key bindings) — committed
- [x] Step 2: Writing view in apps/web wired to storage adapter