Feat/stats dashboard - #56
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a comprehensive stats and analytics system (StatsModal), practice telemetry tracking, achievement progression engine, 30-day activity tracking, collapsible sidebar categories with persistent state, header controls refinements, and guide cleanup across all supported locales.
Key Changes
Stats Modal (StatsModal): Accessible modal dialog accessible via a dedicated header button next to Settings, providing overall mastery score, category mastery breakdowns, daily activity tracking over the last 30 days, and real-time achievement progress.
Telemetry and Storage Engine: Extended storageService with methods for recording session telemetry (polymath_telemetry), daily practice counts (polymath_activity), unlocked achievements (polymath_achievements), and collapsed category state (polymath_collapsed_categories).
Achievement System: Implemented domain logic in src/modules/stats/logic.ts to compute progress across streak milestones, module mastery, category completion, and polymath achievements, supported by non-intrusive AchievementToast alerts.
Sidebar & Header Improvements: Added category accordion collapse/expand with localStorage persistence, eliminated spacing gaps between modules in the left panel, added a right-aligned language selector dropdown with the languages icon, and integrated the stats button alongside settings.
Type of Change
Checklist
npm run checkpasses (Biome lint & format)npm run testpasses (all unit tests)npm run buildpasses (TypeScript strict mode)