feat(05-01): extend Progress type with currentForestPage, add paginated renderForestScene

- Add currentForestPage: number field to Progress interface in types.ts
- Export SLOTS_PER_PAGE = 12 constant from scene.ts
- Change renderForestScene signature to accept page: number parameter
- Slice elements by page (start/end = page * SLOTS_PER_PAGE)
- Update navigation UI (forest-nav) after rendering
- Add migrateProgress entry for currentForestPage in app.ts
- Fix Progress object literals in db.test.ts and screens.ts to include new field
This commit is contained in:
2026-03-29 22:57:32 +02:00
parent 7840bd5fdc
commit 559d57a013
5 changed files with 38 additions and 5 deletions
+1
View File
@@ -83,6 +83,7 @@ export function initWelcomeScreen(
totalErrors: 0,
errorKeyCounts: {},
lastPlayedLevels: [],
currentForestPage: 0,
};
await saveProgress(db, progress);
navigateTo("forest");