Skip to content

Comic nav, Clear All History, and fast ZIP book switching - #13

Merged
omayaro merged 7 commits into
mainfrom
feat/comic-progressive-load
Aug 6, 2026
Merged

Comic nav, Clear All History, and fast ZIP book switching#13
omayaro merged 7 commits into
mainfrom
feat/comic-progressive-load

Conversation

@omayaro

@omayaro omayaro commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Folder-order PageUp/PageDown: next/prev file by natural name order (fixes 06(디카), 640-641, 11 - 디카, etc.)
  • Clear All History… on the home screen (remove all recent books + saved positions; reopen starts at page 1)
  • Fast ZIP/CBZ open via yauzl random-access (no full-file JSZip load); warm ~10 pages after first paint
  • Fix stale pages on book switch: page image cache keyed by bookId, cleared on change (stops showing the previous book for ~10s)

This branch includes the work from #11 and #12; those can be closed after this merges.

Test plan

  • Quality gate passed
  • Local release/ rebuilt
  • node scripts/smoke-comic-open.mjs PASS on samples (large ZIP open ~ms)
  • PageDown across samples 용랑전 volumes: new book appears immediately (not old book lingering)
  • Preview strip refreshes for the new book (current page thumb first)
  • Clear All History empties the list; reopen a book at page 1

Test with: release\win-unpacked\All Book Reader.exe

ss185475 and others added 6 commits August 6, 2026 09:53
Replace numeric volume guessing with natural-sorted siblings among supported book and image files so irregular names like 06(디카) or 640-641 still work.

Co-authored-by: Cursor <cursoragent@cursor.com>
Harden NFC basename matching and add a samples/ integration check so 05 -> 06(디카) -> 07 works with PageUp/PageDown.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wipe every recent book and saved reading position in one confirmed action so removed history reopens from page 1.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use yauzl for random-access archive open so PageDown can show the next book quickly, then warm about 10 pages in the background.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Key the page image cache by book id, clear it on book change, and drop in-flight decodes so the viewer cannot keep showing the previous ZIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
@omayaro omayaro changed the title Faster comic open: stream ZIP + warm first 10 pages Comic nav, Clear All History, and fast ZIP book switching Aug 6, 2026
CI does not ship gitignored 용랑전 zips; only run the local integration assertions when at least 9 volumes are present.

Co-authored-by: Cursor <cursoragent@cursor.com>
@omayaro
omayaro merged commit 7422326 into main Aug 6, 2026
1 check passed
@omayaro omayaro mentioned this pull request Aug 6, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants