Add modular story library and shared-progress translations

This commit is contained in:
Hadrian Burkhardt
2026-11-03 17:15:15 +01:00
parent 5b9a76fb53
commit d45cd0698a
30 changed files with 2694 additions and 495 deletions
+17
View File
@@ -115,3 +115,20 @@ Chapter I page records live in `assets/notebook.json`. The original six IDs and
To review the complete chapter on an isolated QA install, run `flutter drive --driver test_driver/integration_test.dart --target integration_test/cottage_test.dart --flavor qa --dart-define=QA_TEST=true -d YOUR_ANDROID_DEVICE`. This traverses all sixteen leaves, checks bookmarks/restart, rotates the compass puzzle at larger text, solves all four patterns and checks QA disk persistence. It saves eight screenshots in `artifacts/flutter-check/`.
Device automation can use the `check` flavor (`com.lumen.daily.check`) to preserve the installed QA app and its progress. It has its own preferences and test data. Use `--flavor check` with the integration commands above for an isolated run alongside QA.
## 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.
New stories are registered in `assets/library.json`; their pages, puzzles and
translations live in independent asset packages. Chapter sizes are data-driven,
and each story keeps its own progress. Switching language preserves reading
position, bookmarks, marks and undo. Device-language selection, fallback text,
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.