Skip to content

feat(desktop): Read/Watch toggle, Little Red Riding Hood, shelf upload feedback - #3

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

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

Conversation

@cursor

@cursor cursor Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

Summary

This PR delivers three user-experience improvements identified from a full walkthrough of the Kinora desktop app, plus a second bundled public-domain demo book.

1. Desktop Read/Watch toggle (large UX fix)

On viewports below 1024px, the reading room previously hid the cinema panel entirely (hidden lg:block), so resized Electron windows and smaller laptops only showed the PDF. The desktop app now mirrors mobile: a Read / Watch segmented control switches between the reading column and the film pane, while wide layouts keep the familiar side-by-side split.

2. New open-source book: Little Red Riding Hood

Adds a second Brothers Grimm public-domain demo book (assets/books/little_red_riding_hood.pdf) with the same demo-friendly shape as The Frog-King (title + four story pages, three characters, selectable text, vector illustrations). Also adds:

  • assets/books/build_all_books.py — builds every bundled book
  • backend/scripts/seed_library.py — seeds the full library via API or direct ingest
  • make seed-library Makefile target

3. Shelf upload & ingest feedback (follow-up from testing)

  • Success/error banners after upload (no more silent failures)
  • Library polls every 3s while any book is importing so stage chips update live
  • Books that are not ready cannot be opened; importing/failed covers show cursor-not-allowed

Testing

Manual walkthrough (browser against Vite dev server + local API):

  • Login → library → open book → reading room side-by-side at wide width
  • Resize to ~900px → Read/Watch toggle appears and switches between PDF and cinema
  • Widen again → side-by-side layout returns
  • Demo user shelf shows Little Red Riding Hood with import-failed badge; cover is not openable
make demo-pdf
make app-typecheck   # desktop passes
pnpm --filter @kinora/desktop typecheck

Backend seed (requires stack + DashScope key for real ingest):

make stack-up
make seed-library
Open in Web View Automation 

Summary by cubic

Adds a Read/Watch toggle for narrow desktop windows, bundles the “Little Red Riding Hood” demo book, and improves shelf upload feedback with live ingest updates.

  • New Features

    • Desktop: Read/Watch segmented toggle below 1024px; wide layouts stay side‑by‑side; selection persists.
    • Shelf: Clear success/error banners after upload; library polls every 3s while any book is importing; books not ready can’t be opened and show a not‑allowed cursor.
    • Content: Adds the public‑domain “Little Red Riding Hood” demo book.
  • Migration

    • Rebuild bundled demos: run make demo-pdf.
    • Seed all demos into a local stack: run make seed-library (optionally SEED_ARGS='--via direct').

Written for commit fd85aaa. Summary will update on new commits.

Review in cubic

cursoragent and others added 3 commits June 23, 2026 17:35
Below the lg breakpoint the cinema panel was hidden entirely, so resized
windows and smaller laptops only showed the PDF. Mirror the mobile pattern:
a segmented Read/Watch control switches between the reading column and the
film pane, while wide layouts keep the side-by-side split.

Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
Add a second bundled Grimm fairy tale with the same demo-friendly shape as
The Frog-King (title + four story pages, three characters, text layer, and
vector illustrations). Introduce build_all_books.py and seed_library.py so
make demo-pdf and make seed-library load the full bundled library.

Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.com>
Show clear success/error banners after upload instead of failing silently.
Poll the library every three seconds while any book is importing so stage
chips update live. Block opening books that are not ready and show a
not-allowed cursor on importing or failed covers.

Co-authored-by: Rishabh Bansal <rishabhcli@users.noreply.github.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