readest/apps/readest-app/scripts
Huang Xin b0cc5461af
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
refactor(toc): cache navigable structure per book (#3869)
* refactor(toc): cache TOC + section fragments per book

Moves the TOC regrouping and section-fragment computation out of
foliate-js/epub.js #updateSubItems into the readest client as
computeBookNav / hydrateBookNav in utils/toc.ts. The result is
persisted to Books/{hash}/nav.json — capturing the book's full
navigable structure (TOC hierarchy + sections with hierarchical
fragments). Compute once, persist locally, hydrate on subsequent
opens. Designed to serve current human-facing navigation (TOC
sidebar, progress math) and future agentic navigation (LLM-driven
seeking by structural location).

Versioned by BOOK_NAV_VERSION for forward invalidation. Existing
books regenerate transparently on next open.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: update worktree scripts

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 20:15:10 +02:00
..
release-google-play.sh feat(android): add foss flavor build without gms services (#3666) 2026-03-28 05:36:09 +01:00
release-ios-appstore.sh release: script for iOS appstore upload (#388) 2025-02-16 20:50:57 +01:00
release-mac-appstore.sh chore: update bundleVersion for macOS AppStore build (#1146) 2025-05-14 03:45:00 +02:00
sync-release-notes.sh fix(flathub): fix releases notes (#2494) 2025-11-21 06:20:04 +01:00
test-tauri.sh feat(rsvp): add persistent context, display settings, and layout improvements, closes #3333 (#3528) 2026-03-13 06:57:47 +01:00
worktree-new.ts refactor(toc): cache navigable structure per book (#3869) 2026-04-14 20:15:10 +02:00
worktree-rm.ts chore(docs): add worktree management for isolated PR review and feature work (#3810) 2026-04-09 19:42:47 +02:00