feat(03-01): extend Progress type, add LessonPhase, update rate limits

- Progress: added totalCorrect, totalErrors, errorKeyCounts, lastPlayedLevels
- New LessonPhase type: discover | practice | words
- Rate limits: 10 text / 5 image per day (was 1 each)
- Updated screens.ts with new Progress field defaults
- Updated existing tests for new rate limits and Progress shape

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 13:42:32 +02:00
co-authored by Claude Opus 4.6
parent e1fc5eb579
commit d4207bf33d
5 changed files with 25 additions and 7 deletions
+4
View File
@@ -70,6 +70,10 @@ export function initWelcomeScreen(
sessionDates: [],
selectedCharacter: selectedCompanion,
selectedLayout: selectedLayout,
totalCorrect: 0,
totalErrors: 0,
errorKeyCounts: {},
lastPlayedLevels: [],
};
await saveProgress(db, progress);
navigateTo("forest");