Stats enhancements - #715
Closed
chengxicx wants to merge 4 commits into
Closed
Conversation
added 2 commits
July 25, 2026 01:28
- Add LgIsActive column to languages table (default 1 = active) - Add Freeze/Activate action buttons in language list - Filter frozen languages from language dropdowns and current language validation - Gracefully handle invalid current_language_id after backup restore
- 4-chart layout: Summary, Heatmap, New terms, Fully mastered terms - Default language to last read book's language instead of "All languages" - Exclude frozen languages from all stats data and UI - 7days / Monthly time range options - Summary with today + cumulative data, reclassified levels (Unknown / Vague) - 6-month heatmap range to reduce information overload
chengxicx
force-pushed
the
feat/stats-enhancements
branch
from
July 24, 2026 17:29
39b1fab to
678d017
Compare
added 2 commits
July 25, 2026 06:30
- Increase cell size from 12px to 15px for better visibility - Show all 7 day labels (Sun-Sat) instead of alternating - Display exactly 26 weeks (~6 months) with clean week alignment - Add hover effect (scale + border highlight) on heatmap cells - Add footer with total activities count and legend - Vertically center heatmap in the card - Improve color level thresholds for better visual differentiation - Fix month label alignment using exact column width calculation
Add hide_homelink=True to stats page render_template to remove the redundant Home link from the navigation menu.
Collaborator
|
Hi @chengxicx -- this PR contains code from a few different fixes, and so can't be considered for merging. If I merge this, I'm merging everything done before it, so that is a big risk from the code review standpoint. See the guidelines at https://github.com/LuteOrg/lute-v3/wiki/Contributing#do-one-thing for notes. If you can pull out the commits with cherry-pick or similar and put them into a separate PR, that would be possible to look it. As it is, I'm going to close this one. Cheers and thanks. |
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.
Statistics Page

Four-panel chart layout: Summary overview, Term Activity heatmap, New Terms timeline, Fully Mastered Terms breakdown
Intelligent default language selection: Automatically selects the language of the most recently opened book on page load, instead of defaulting to "All Languages"
Automatic filtering: Statistical metrics exclude all frozen languages
Enhanced Summary panel: Displays both daily and lifetime cumulative metrics, re-grouped by proficiency tiers (Unknown = Level 1, Vague = Levels 2–5)
Heatmap : Daily term-adjustment heatmap
Dual time range filters: Toggle between 7-day and monthly aggregated data views