Repository navigation
feat(desktop): Read/Watch toggle, Little Red Riding Hood, shelf upload feedback - #3
Draft
cursor[bot] wants to merge 3 commits into
Draft
cursor[bot] wants to merge 3 commits into
cursor[bot] wants to merge 3 commits into
Conversation
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>
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
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 bookbackend/scripts/seed_library.py— seeds the full library via API or direct ingestmake seed-libraryMakefile target3. Shelf upload & ingest feedback (follow-up from testing)
importingso stage chips update livereadycannot be opened; importing/failed covers showcursor-not-allowedTesting
Manual walkthrough (browser against Vite dev server + local API):
make demo-pdf make app-typecheck # desktop passes pnpm --filter @kinora/desktop typecheckBackend seed (requires stack + DashScope key for real ingest):
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
Migration
make demo-pdf.make seed-library(optionallySEED_ARGS='--via direct').Written for commit fd85aaa. Summary will update on new commits.