Skip to content

ui: stats - default "This Year" filter hides all data for users with older sessions #560

@avelytchko

Description

@avelytchko

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

  1. Have a profile whose latest solve is from a previous calendar year (or import an old backup).
  2. Open /stats on a fresh session.
  3. 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

  1. Default to "All Time"
  2. Persist the last selected range
  3. User-configurable default in Settings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions