Skip to content

feat: separate statistics by activity type #8

@MenachoIvan

Description

@MenachoIvan

Description

The current dashboard sums all distances regardless of the activity type. We want to allow users to see their progress specifically for "Run", "Ride", or "Swim".

Tasks

Update the reduce logic in StatsGrid.tsx to group distances by the type property of StravaActivity.
Add a simple toggle or tabs (e.g., "All", "Run", "Ride") above the cards to filter the displayed stats

Requirements

  • Maintain the existing "Clear/Light" design style.
  • Ensure TypeScript interfaces are respected.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions