Repository navigation
feat(core): live shelf ingest progress + Little Red Riding Hood demo book - #7
Draft
cursor[bot] wants to merge 2 commits into
Draft
cursor[bot] wants to merge 2 commits into
cursor[bot] wants to merge 2 commits into
Conversation
- Add LibraryEventStream, shelf helpers, and useLibraryEvents hooks - Show progress bars and stage labels on desktop/mobile book covers - Gate opening non-ready books with clear messaging - Surface upload errors on the desktop shelf toolbar - Add Little Red Riding Hood public-domain demo PDF + seed-demo-books - Align mobile demo login with seed-demo credentials Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
- Strip internal (e2e seed) suffixes via displayBookTitle() - Hide shelf metrics button outside dev builds - Confirm before sign-out on desktop library - Parameterize seed_e2e with book/email/password for demo user Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements live shelf ingest progress (the largest UX gap: users could upload a book and see a frozen "Preparing" chip with no feedback) and adds a second public-domain demo book.
Primary improvement: live ingest progress on the shelf
LibraryEventStreamsubscribes toGET /api/books/events(SSE) foringest_progresseventsimportingBookCoverand mobileBookCardNew open-source book
assets/books/little_red_riding_hood.pdf+build_little_red_riding_hood_pdf.pymake demo-pdfbuilds both fairy tales;make seed-demo-booksseeds both through the real ingest flowSecond improvement (from user walkthrough)
displayBookTitle()strips internal(e2e seed)suffixes from shelf UIdemo@kinora.localcredentialsVerification
Walkthrough tested
Summary by cubic
Adds live ingest progress to the library shelf with SSE and a 5s poll fallback, showing progress bars and stage labels on desktop and mobile. Also adds the public‑domain “Little Red Riding Hood” demo book and polishes shelf UX.
New Features
LibraryEventStreamsubscribes to/api/books/events(SSE) with a 5s poll fallback; shelf shows progress bars and stage labels on desktopBookCoverand mobileBookCard.displayBookTitle,stageLabel,progressPercent,importGateMessage; extendedingest_progresspayload to includestageandpct; added tests.make demo-pdfbuilds both demos;make seed-demo-booksseeds both via the real ingest flow.demo@kinora.local.Migration
make demo-pdfmake seed-demo-booksdemo@kinora.local/demo-password-123Written for commit 9b884ac. Summary will update on new commits.