Commit Graph

4 Commits

Author SHA1 Message Date
unknown
e219b0b898 fix: rename passRate to masteryPercent, relax module name validation
- Rename passRate variable to masteryPercent in ModuleTree to match average mastery semantics
- Remove module name requirement from CreateModuleDialog (only KP count matters)
- Sync i18n strings for updated validation message
2026-05-21 00:56:15 +08:00
whf
1e37128eca Block 4: ModuleTree interactive — click to switch learning module 2026-05-16 22:46:13 +08:00
unknown
91dbafbe75 Block 7.5: i18n completion, WS reconnect with backoff, error retry button
- Add 16 i18n keys for guided learning (en/zh): input placeholder, submit button, no modules text, 13 stage labels
- Replace hardcoded STAGE_LABELS with t() calls using dynamic i18n keys
- Replace hardcoded "No modules loaded" in ModuleTree with i18n
- Add WebSocket auto-reconnect with exponential backoff (1s/2s/4s/8s, max 5 attempts)
- Add "Reconnect" button on error state for manual retry
- Add intentional disconnect on unmount to prevent ghost reconnects
2026-05-16 11:36:50 +08:00
whf
2620bf01b4 Block 9: ModuleTree nav component with mastery indicators, fetch progress from API 2026-05-14 04:20:33 +08:00