Stats: default "This Year" filter hides all data for users with older sessions
Description
The /stats page defaults the date-range filter to This Year. For users whose only solves come from previous years (returning users on a fresh device, imported old backups, or anyone who has not solved yet this calendar year), the entire page renders empty - best/worst/average/charts all show no data - even though their data is intact.
The default also gets reset on every visit because the selection lives only in the URL query, so the user has to re-pick a wider range every time.
Steps to reproduce
- Have a profile whose latest solve is from a previous calendar year (or import an old backup).
- Open /stats on a fresh session.
- The page shows no statistics; widening the filter to All Time reveals the actual data.
Expected
The default state of /stats should not hide existing data from a returning user. The user should not need to manually widen the range on every visit to see their own stats.
Recommended fixes
- Default to "All Time"
- Persist the last selected range
- User-configurable default in Settings
Stats: default "This Year" filter hides all data for users with older sessions
Description
The /stats page defaults the date-range filter to This Year. For users whose only solves come from previous years (returning users on a fresh device, imported old backups, or anyone who has not solved yet this calendar year), the entire page renders empty - best/worst/average/charts all show no data - even though their data is intact.
The default also gets reset on every visit because the selection lives only in the URL query, so the user has to re-pick a wider range every time.
Steps to reproduce
Expected
The default state of /stats should not hide existing data from a returning user. The user should not need to manually widen the range on every visit to see their own stats.
Recommended fixes