Skip to content

Conversation

Copy link

Copilot AI commented Oct 27, 2025

Adds a new workouts screen to display all workouts from WorkoutManager with filtering and navigation capabilities.

Changes

New View: WorkoutsView

  • Filtering: Status pills (All, Scheduled, Completed, Skipped)
  • Organization: Groups workouts by date with contextual headers (Today/Yesterday/Tomorrow)
  • Sorting: Chronological order within date groups
  • Empty state: Guides users to AI Workout Generator when no workouts exist
  • Cards: Display status, time, duration, power, intervals with intensity color coding

Navigation

  • Added "Workouts" link to main menu in ContentView
  • Uses figure.indoor.cycle SF Symbol

Performance

  • Loads user data once at view level, passed to child components (avoids N+1 UserDataManager calls)
  • Non-blocking initialization with default UserData

Testing

  • Unit tests: Workout loading, filtering, grouping, sorting, empty state
  • UI tests: Navigation, filter interaction, empty state display

Example Usage

// Workouts auto-group by date and sort chronologically
NavigationLink(destination: WorkoutsView()) {
    Label("Workouts", systemImage: "figure.indoor.cycle")
}

Files

  • Dropped/Views/WorkoutsView.swift (314 lines)
  • Dropped/ContentView.swift (+3 lines)
  • DroppedTests/WorkoutsViewTests.swift (193 lines)
  • DroppedUITests/WorkoutsViewUITests.swift (174 lines)
  • docs/memory.md (updated)
Original prompt

Add a new workouts screen

[Variant 1 of 3]

The user has attached the following files as relevant context:

  • .github/instructions/run.instructions.md
  • .github/copilot-instructions.md
  • docs/memory.md

Created from VS Code via the GitHub Pull Request extension.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Oct 27, 2025
Copilot AI changed the title [WIP] Add new workouts screen Add dedicated workouts screen with status filtering Oct 27, 2025
Copilot finished work on behalf of pierceboggan October 27, 2025 15:20
Copilot AI requested a review from pierceboggan October 27, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants