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:
+25
-27
@@ -206,37 +206,35 @@ void main() {
|
||||
},
|
||||
);
|
||||
|
||||
testWidgets(
|
||||
'back from a discovery opens its completed grid and forward revisits the memory',
|
||||
(tester) async {
|
||||
final book = (await tester.runAsync(Book.load))!;
|
||||
final g = Game(
|
||||
book,
|
||||
Progress.memory({
|
||||
'story_access_level': 11,
|
||||
'done_story_v1_4': true,
|
||||
'solved': 1,
|
||||
}),
|
||||
);
|
||||
g.reveal(4);
|
||||
await tester.pumpWidget(LumenApp(game: g, adsEnabled: false));
|
||||
testWidgets('system back closes the book from each reading screen', (
|
||||
tester,
|
||||
) async {
|
||||
final book = (await tester.runAsync(Book.load))!;
|
||||
final g = Game(
|
||||
book,
|
||||
Progress.memory({
|
||||
'story_access_level': 11,
|
||||
'done_story_v1_4': true,
|
||||
'solved': 1,
|
||||
}),
|
||||
);
|
||||
await tester.pumpWidget(LumenApp(game: g, adsEnabled: false));
|
||||
for (final open in <VoidCallback>[
|
||||
() => g.showStory(3),
|
||||
() => g.reveal(4),
|
||||
() => g.briefing(4),
|
||||
() => g.startCampaign(4),
|
||||
() => g.contents(),
|
||||
]) {
|
||||
open();
|
||||
await tester.pumpAndSettle();
|
||||
await tester.binding.handlePopRoute();
|
||||
await tester.pumpAndSettle();
|
||||
expect(g.screen, Screen.game);
|
||||
expect(find.byType(Board), findsOneWidget);
|
||||
expect(g.puzzle!.solved(g.cells), true);
|
||||
final forward = find.text('Revisit the memory →');
|
||||
await tester.ensureVisible(forward);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(forward);
|
||||
await tester.pumpAndSettle();
|
||||
expect(g.screen, Screen.reveal);
|
||||
expect(g.campaignIndex, 4);
|
||||
expect(g.screen, Screen.home);
|
||||
expect(g.solved, 1);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
},
|
||||
);
|
||||
}
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('every story hint needs a separate earned ad reward', (
|
||||
tester,
|
||||
|
||||
Reference in New Issue
Block a user