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
+6
View File
@@ -14,8 +14,14 @@ export interface Progress {
sessionDates: string[]; // ISO date strings (days only)
selectedCharacter: CompanionType;
selectedLayout: KeyboardLayout;
totalCorrect: number;
totalErrors: number;
errorKeyCounts: Record<string, number>;
lastPlayedLevels: number[]; // last 3 played levels for review mechanic
}
export type LessonPhase = "discover" | "practice" | "words";
// Companion assets store
export interface CompanionAssets {
characterType: CompanionType;