Open Lumen on a responsive bookshelf and land pending story work

- Start the app on a shelf of every installed book instead of the last
  book's home. Cards show the cover, translated metadata, available
  languages, restored patterns and either "Continue reading" or a way in.
- Keep each book's saved route: the shelf is never written to
  flutter_screen, so choosing a book resumes its own leaf.
- Lay the shelf out responsively: dense single-column cards on phones,
  a two-column grid from 720 logical pixels, a centred 860 px column on
  tablets and a chevron that exists in the bundled handwriting font.
- Keep Settings reachable from the shelf and let the home page's story
  library button open the shelf instead of a dialog.
- Add tool/shelf_screenshots_test.dart, which renders the shelf at phone
  and tablet metrics, checks that every card and Settings stay reachable
  without overflow, and writes artifacts/library/shelf-*.png.
- Commit the pending Midnight Invitation package (campaign, notebook,
  narration and artwork), cast drama and ambience tooling, region
  selection, phone/tablet integration coverage and related docs.

flutter analyze is clean and all 74 widget/domain tests pass.
This commit is contained in:
Hadrian Burkhardt
2026-11-05 14:29:50 +01:00
parent d45cd0698a
commit 0718e3f252
149 changed files with 16875 additions and 393 deletions
+23 -6
View File
@@ -9,14 +9,14 @@ Android is the tested target. iOS project scaffolding and test AdMob configurati
- Sixteen cottage notebook leaves: the original dedication, cottage entry, folded note and repair note, plus separate entries, puzzles and illustrated memories for the match, lantern, key and compass, and a closing leaf toward the harbour.
- Horizontal swipes across the writing or blank paper, plus corner arrows, turn leaves. Grid and control gestures never turn pages; vertical drags still scroll. Navigation stays fixed; overflow scrolling supports smaller screens and larger text.
- Landscape pages rearrange themselves: a puzzle keeps its whole grid in one column, with the heading, area totals, hint and undo beside it, and the leaf navigation folds into a single row. The board stays fully visible without scrolling, even with larger text.
- A saved ribbon bookmark, opened note, inspected repair, viewed pages and current reading place.
- Saved reading position, puzzle marks, opened note, inspected repair and viewed pages. Android Back closes the current book and returns to the main page; previous/next leaf controls and swipes turn pages.
- Twelve 7×7 picture puzzles across three chapters, with overlapping-area deductions on entries 3–12. Chapters II and III retain their briefing/puzzle/reveal structure, with swipes between those pages too. Chapter contents shows four entries at a time. Reading ahead keeps unfinished boards and completion awards separate.
- Deterministic daily grids and generated Easy, Medium and Hard 5×5 practice. The grades measure deduction-chain depth, not expert-level difficulty. Every board has a unique solution and needs no guessing.
- Undo and optional explained hints in every mode. Each hint, including the first, requires a voluntary rewarded ad and its AdMob reward callback. Declining, closing without a reward or unavailable ads leaves the grid unchanged; solving and reading remain available.
- Expanded story passages connect the harbour key, crossing, bell signals and reunion with Mara. All added passages are narrated; original takes continue seamlessly into the new sections.
- Solved patterns remain available when turning back from discoveries, including after restarting. Discoveries blend the exact pixel symbol into the watercolour, keep a small copy of the symbol visible, and offer a replay.
- Local daily streaks, independent difficulty levels and exactly-once puzzle completion awards.
- AdMob/UMP consent, optional rewarded hints, practice interstitials after every fourth completion and one-time campaign chapter transitions. Automatic ads do not interrupt opening notebook leaves or recorded readings; puzzle hints show ads only after confirmation.
- AdMob/UMP consent, optional rewarded hints, practice interstitials after every fourth completion and up to three automatic reading breaks per book (around one-third, two-thirds and the end). Each book remembers its used placements. Automatic ads do not interrupt opening notebook leaves or recorded readings; puzzle hints show ads only after confirmation.
Progress starts fresh in Flutter, as requested. Old Java `lumen.xml` saves are **not imported or read**. Flutter keeps its own local preferences through `shared_preferences`; no account or game backend is required. Uninstalling loses local progress, and the daily date follows the device calendar.
@@ -119,10 +119,13 @@ Device automation can use the `check` flavor (`com.lumen.daily.check`) to preser
## Story library and languages
The home page now has a story library and a language selector. Mara's original
notebook remains available, and **The paper boat** is a short standard story in
English and German. English and German app controls are bundled separately from
story text; Mara currently falls back to its original English narrative.
The app opens on a bookshelf listing every installed story. Choosing a book
resumes its own place, and Settings for language, sound, reading speed and
privacy are reachable from both the shelf and the book's home page. Mara's
original notebook remains available, and **The paper boat** is a short standard
story in English and German. English and German app controls are bundled
separately from story text; Mara currently falls back to its original English
narrative.
New stories are registered in `assets/library.json`; their pages, puzzles and
translations live in independent asset packages. Chapter sizes are data-driven,
@@ -132,3 +135,17 @@ optional localized narration and right-to-left layout are supported.
See [Story packages and translations](docs/STORY_PACKAGES.md) for the schema,
example package and validation commands.
### Halloween special: The Midnight Invitation
Available in the story library in English: a complete three-chapter mystery with
38 leaves, twelve original picture puzzles, thirteen original watercolour
illustrations, its own Gothic notebook background, and 26 cast diary recordings
(about 25 minutes). Read postman Elias Ward’s first-person account of a delivery
to a house with twelve missing guests and a thirteenth place waiting for him. Every puzzle is uniquely solvable without guessing; the opening two teach
line totals and the remaining ten require overlapping-area comparisons.
See the [story guide](assets/stories/midnight-invitation/README.md),
[manuscript](assets/stories/midnight-invitation/STORY.md), and
[artwork prompt set](assets/stories/midnight-invitation/artwork/prompts.json).