jnab - Chapter 1

Chapter 1

All 7 phases implemented across Edits.tsx and editsStorage.ts:

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

Christopher X Sullivan © . All rights reserved.