feat(apps): live shelf ingest progress + Little Red Riding Hood demo book
Draft
CU
5mo ago+955+955+012345678901234567890123456789-26-26-01234567890123456789
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/events with ingest_progress SSE events, but neither app subscribed. This PR wires it end-to-end:
@kinora/core:LibraryEventSource,subscribeLibraryIngest,applyIngestProgress,ingestStageLabel,formatIngestPercent- Desktop + mobile shelves: subscribe on mount, patch the React Query books cache in real time, show progress bars + stage labels on importing covers
- Upload errors: desktop shelf now surfaces API failure messages instead of failing silently
2. 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 targets
Testing
make demo-pdfs
pnpm --filter @kinora/core test # 168 passed
pnpm --filter @kinora/desktop typecheck
# Backend + walkthrough (local infra)
make migrate
uvicorn app.main:app --port 8000
backend/.venv/bin/python scripts/seed_e2e.py
pnpm --filter @kinora/desktop dev # renderer at :5173
Manual walkthrough (browser renderer at :5173):
- Login:
e2e@kinora.test/e2e-password-123 - Shelf shows ready Frog-King + failed/importing LRRH with status badges
- Ready book opens reading room; failed book does not open
- Navigation back to library works


Summary 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.
- New Features
- Live ingest progress via
GET /api/books/eventsSSE:@kinora/core:LibraryEventSource,subscribeLibraryIngest,applyIngestProgress,ingestStageLabel,formatIngestPercent(+ tests).- Desktop/mobile shelves subscribe, patch the React Query cache in real time, and show progress bars + stage labels; invalidate when ready/failed.
- Guard non‑ready/failed books:
- Covers show status chips; clicks/taps are disabled until status is
readywith clearer accessibility labels.
- Covers show status chips; clicks/taps are disabled until status is
- Upload errors on desktop:
- File uploads now surface API error messages instead of failing silently.
- New demo content and tools:
assets/books/build_little_red_riding_hood.pyand bundled PDF.backend/scripts/seed_library.pyseeds Frog‑King + LRRH through the real upload flow.- Make targets:
demo-pdfs,seed-library.
- Live ingest progress via