Skip to content

Stats enhancements - #715

Closed
chengxicx wants to merge 4 commits into
LuteOrg:developfrom
chengxicx:feat/stats-enhancements
Closed

Stats enhancements#715
chengxicx wants to merge 4 commits into
LuteOrg:developfrom
chengxicx:feat/stats-enhancements

Conversation

@chengxicx

@chengxicx chengxicx commented Jul 24, 2026

Copy link
Copy Markdown

Statistics Page
image

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

chengxicn 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
chengxicx force-pushed the feat/stats-enhancements branch from 39b1fab to 678d017 Compare July 24, 2026 17:29
chengxicn 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.
@jzohrab jzohrab added the wont-merge Interesting PR, but due to possible confusion or unclear direction, it won't be merged for now. label Jul 24, 2026
@jzohrab

jzohrab commented Jul 24, 2026

Copy link
Copy Markdown
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.

@jzohrab jzohrab closed this Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wont-merge Interesting PR, but due to possible confusion or unclear direction, it won't be merged for now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants