Skip to content

feat(desktop): live ingest progress on library shelf + demo book - #2

Draft
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/user-experience-and-testing-e744
Draft

cursor[bot] wants to merge 3 commits into
mainfrom
cursor/user-experience-and-testing-e744

Conversation

@cursor

@cursor cursor Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

Summary

Improves the core library → ingest → open funnel, adds a second public-domain demo book, and addresses issues found during a full user walkthrough.

Primary UX improvement: live ingest progress on the shelf

  • Subscribe to GET /api/books/events for real-time Phase A ingest updates
  • Patch the shelf cache as stages/progress arrive; poll as a fallback while books are importing
  • Show upload errors, an adapting banner, per-cover progress bars, and block opening non-ready books
  • Add IngestProgressView in the reading room when a book is still importing/failed
  • Shared helpers in @kinora/core: parseIngestProgress, applyIngestProgress, uploadBook

New open-source book

  • Little Red Riding Hood (Brothers Grimm, public domain)
  • Builder: assets/books/build_red_riding_hood.py
  • PDF: assets/books/little_red_riding_hood.pdf
  • make demo-pdf now builds both demo books
  • make seed-demo SEED_ARGS="--all" seeds Frog-King + Red Riding Hood

Second improvement (from user testing)

  • Dismissible banner when clicking a failed-import book with re-upload guidance
  • Book count hint on the shelf; clearer upload format guidance
  • Better demo-login error message when seed-demo has not been run
  • backend/scripts/user_walkthrough.py for manual API QA

Verification

make install
make demo-pdf
make app-typecheck
pnpm --filter @kinora/core test
pnpm --filter @kinora/desktop typecheck

# Full stack (needs DashScope key for real ingest)
make stack-up
make seed-demo SEED_ARGS="--all"
make app-desktop-dev

Manual walkthrough performed against local API + Vite renderer with e2e seed data.

Open in Web View Automation 

Summary by cubic

Live ingest progress is now shown on the desktop shelf with real-time updates, and the reader blocks early opens with a friendly progress screen. Adds a second public-domain demo book and improves upload and demo-login feedback.

  • New Features
    • Live ingest on the shelf: subscribe to GET /api/books/events (SSE) with a polling fallback; @kinora/core helpers (parseIngestProgress, applyIngestProgress, useLibraryEvents) keep the shelf cache fresh, with tests added.
    • UI updates: per-cover progress bars and shimmering “working” state; opening is disabled until ready; clicking a failed-import cover shows guidance; a banner summarizes importing books; the reader shows IngestProgressView with stage and percent.
    • Upload UX: switched to @kinora/core uploadBook for typed errors and clearer messages; inline error banner on failure; newly uploaded books get a temporary highlight; shelf shows book count and adds PDF/EPUB guidance.
    • Demo content and tooling: new “Little Red Riding Hood” book + builder; make demo-pdf builds both demos; make seed-demo SEED_ARGS="--all" seeds Frog-King + Red Riding Hood; improved demo-login error with seeding steps; added backend/scripts/user_walkthrough.py for manual API QA.

Written for commit 4ac44e0. Summary will update on new commits.

Review in cubic

cursoragent and others added 3 commits June 23, 2026 16:28
- Subscribe to GET /api/books/events for real-time Phase A updates
- Show upload errors, progress bars, and block opening non-ready books
- Add IngestProgressView guard in the reading room
- Add Little Red Riding Hood public-domain demo book + seed --all

Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
- Show a dismissible banner when a user clicks a failed-import book
- Add book count hint and upload format guidance on the shelf
- Improve demo login error message with seed-demo instructions
- Add backend/scripts/user_walkthrough.py for manual QA

Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
rishabhcli added a commit that referenced this pull request Jun 26, 2026
…eral path

DoD #2 names coordination/artifacts/agent-11/ (template typo — agent-11 is Login).
Canonical set stays in agent-09/; mirrored here so the requirement holds literally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
rishabhcli added a commit that referenced this pull request Jun 26, 2026
…ng→settings

Drove the built renderer (vite dev :5173) headless; ZERO console/page errors across the
whole integrated flow. Screens: login (A11+BookWall), library (A5 public-domain shelf +
A4 nav + A9 icons + A8), reading room (A10 shell + A2 real ScrollFilmEngine + A6
ReadingControls incl. read-aloud — producer swap visible + A8), profile menu (A9/A4),
SettingsPage (A9). Offline demo mode (backend optional); KINORA_LIVE_VIDEO off (fallback
films). WALKTHROUGH.md documents screens + honest caveats.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant