jnab - Chapter 1
Chapter 1
All 7 phases implemented across Edits.tsx and editsStorage.ts:
- Series creation now creates cover (-2) + TOC (-1) instead of a single -3 hub, with series Ghost tag verification
- TOC lookup fixed everywhere to check -1 || 0; TOC auto-updates on any publish (not just chapters > 0)
- TOC deduplication — inline TOC rebuild in handleCreate replaced with regenerateTOC() call
- sanitizeHTML now preserves <a> tags (moved from UNWRAP to KEEP)
- Display labels fixed in GhostPostsView cards and Reader Preview dropdown/header for Cover (-2), TOC (-1), and Division pages
- Cover page now visible in book dashboard cards alongside TOC, with Ghost sync badges
- Missing page warnings — clickable ⚠️ No Cover / ⚠️ No TOC / ⚠️ Not on Ghost badges auto-create on click
- Finalize nav labels now pass prevChapterNumber/nextChapterNumber for contextual "← Cover" / "← Contents" labels
- Chapter # input uses parseFloat to support division numbers (3.5)
- fetchStatuses dependency fixed to prevent infinite re-render loop
- collapsedBooks re-initializes when documents load
- Repair utility card auto-appears when legacy -3 docs exist, with one-click migration
- TOC slug fix — Ghost publish recognizes -1 as TOC for slug assignment