Skip to content

Date-range analytics with comparison #471

Description

@therealjhay

ProblemDashboard stat cards show fixed 30d numbers; there is no date-range selection or period comparison.

Solution

  • Add a date-range picker (7/30/90d, custom) to the dashboard and admin overview, persisted in the URL.
  • Back the stats hooks with from/to params and render compare-period deltas (current vs previous).
  • Derive the header total and chart series from the same dataset (guaranteeing sum equality).
  • Show a "data window" label so users know what range they see.

Acceptance Criteria

  • Switching range refetches stats and charts with the same source.
  • Compare deltas are computed against the immediately preceding window.
  • Range persists across navigation via URL.
  • npm run build passes.

Note for Contributors: Write a clear PR description. Show 7d vs 30d with correct deltas.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions