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
+12 -5
View File
@@ -57,7 +57,7 @@ void main() {
tester
.getBottomRight(find.text('A recorded reading, kept with this page'))
.dy,
lessThan(tester.getTopLeft(find.text('Contents')).dy),
lessThan(tester.getTopLeft(find.text('Next leaf →')).dy),
);
await shot('02-cottage');
// Actual native WAV playback, all five files. Position must survive pause/resume.
@@ -82,7 +82,7 @@ void main() {
expect(g.storyIndex, 2);
expect(
tester.getBottomRight(find.text('Hint · rewarded ad')).dy,
lessThan(tester.getTopLeft(find.text('Contents')).dy),
lessThan(tester.getTopLeft(find.text('Next leaf →')).dy),
);
await shot('03-puzzle');
final before = List.of(g.cells);
@@ -115,7 +115,12 @@ void main() {
await tap('Unfold Gran’s note');
expect(store.flag('notebook_note_open'), true);
await shot('05-open-note');
await tap('Bookmark');
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(g.screen, Screen.home);
g.openNotebook();
await tester.pumpAndSettle();
expect(g.storyIndex, 4);
await tap('Next leaf →');
await shot('06-lantern');
expect(
@@ -125,8 +130,10 @@ void main() {
findsNothing,
);
expect(store.flag('notebook_handle_seen'), false);
await tap('Contents');
await tap('Return to my ribbon bookmark');
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
g.showStory(4);
await tester.pumpAndSettle();
expect(g.storyIndex, 4);
final restarted = Game(book, Progress.memory(store.snapshot));
await restarted.restore();