Repository navigation
feat(apps): live shelf ingest progress + Little Red Riding Hood demo book - #4
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
Wire the existing GET /api/books/events SSE channel into @kinora/core with LibraryEventSource, applyIngestProgress helpers, and ingest stage labels. Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
Add a second bundled Grimm fairy tale PDF builder, seed_library script, and make demo-pdfs/seed-library targets alongside The Frog-King. Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
rishabhcli
added a commit
that referenced
this pull request
Jun 26, 2026
Per-agent deliverables, follow-ups (lucide retained-not-dead, vitest hygiene, A3 http convergence), and a recommended grouped squash plan overnight/integration → main for operator review (migrations e843aa7682b2 → d9e2f4a6b8c1). Do not push to main without OK. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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
Two UX improvements from a full user walkthrough, plus a second public-domain demo book.
1. Live ingest progress on the shelf (large UX improvement)
The backend already exposes
GET /api/books/eventswithingest_progressSSE events, but neither app subscribed. This PR wires it end-to-end:@kinora/core:LibraryEventSource,subscribeLibraryIngest,applyIngestProgress,ingestStageLabel,formatIngestPercent2. Guard non-ready books (feedback-driven improvement)
Testing showed users could open books still importing (or failed), landing in a broken reading room. Ready books open normally; importing/failed books are non-interactive with clear status chips.
3. New open-source book: Little Red Riding Hood
assets/books/build_little_red_riding_hood.py— second Brothers Grimm public-domain demo PDF (5 pages, selectable text, vector art)backend/scripts/seed_library.py— seeds both Frog-King and LRRH via the real upload flowmake demo-pdfs/make seed-libraryMakefile targetsTesting
Manual walkthrough (browser renderer at
:5173):e2e@kinora.test/e2e-password-123Summary by cubic
Adds live ingest progress to the shelf and disables opening books until they’re ready, improving feedback during imports. Also adds the Little Red Riding Hood demo book with scripts to build and seed the library.
GET /api/books/eventsSSE:@kinora/core:LibraryEventSource,subscribeLibraryIngest,applyIngestProgress,ingestStageLabel,formatIngestPercent(+ tests).readywith clearer accessibility labels.assets/books/build_little_red_riding_hood.pyand bundled PDF.backend/scripts/seed_library.pyseeds Frog‑King + LRRH through the real upload flow.demo-pdfs,seed-library.Written for commit d22ebcf. Summary will update on new commits.