Skip to content

Add WorkoutReview screen with Strava upload#54

Draft
Tyler-Lopez wants to merge 16 commits into
feat/proxy-create-activityfrom
feat/workout-review-screen
Draft

Add WorkoutReview screen with Strava upload#54
Tyler-Lopez wants to merge 16 commits into
feat/proxy-create-activityfrom
feat/workout-review-screen

Conversation

@Tyler-Lopez
Copy link
Copy Markdown
Owner

Summary

  • Adds a "See Workout" button to PlayWorkoutScreen that appears when the workout finishes
  • Adds new WorkoutReviewScreen with Connect with Strava / Create Strava Activity buttons
  • Moves all Strava auth + activity creation logic out of HomeScreen/HomeViewModel into WorkoutReviewViewModel

Test plan

  • Complete a workout — confirm "See Workout" button appears
  • Tap "See Workout" — confirm navigation to WorkoutReviewScreen
  • On WorkoutReviewScreen, confirm "Connect with Strava" shows when not authenticated
  • After Strava OAuth flow, confirm "Create Strava Activity" replaces the connect button
  • Tap "Create Strava Activity" — confirm activity is created
  • Confirm HomeScreen no longer shows any Strava buttons

🤖 Generated with Claude Code

Tyler-Lopez and others added 5 commits April 28, 2026 20:15
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit implements README with architecture decisions  I've doubts about the format. What do you think?
- Add 12 new string keys to values/strings.xml across regions (Add Workout,
  Build Workouts, Confirmation Dialog, Home, Play Workout, Shared), all
  sorted alphabetically within each region
- Add bracketed English placeholders for all 12 new keys in values-es/strings.xml
- Add WorkoutPlayState enum (PAUSED, PLAYING)
- Refactor PlayWorkoutVIewModel: replace text: StateFlow<String> with
  workoutPlayState: StateFlow<WorkoutPlayState>, keeping the VM Compose-free
- Replace all hardcoded string literals with stringResource(resource = Res.string.<key>)
  across HomeScreen, BuildWorkoutsScreen, PlayWorkoutScreen,
  ConfirmationDialog, and RowClickable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Tyler-Lopez Tyler-Lopez force-pushed the feat/workout-review-screen branch from e649523 to 708895c Compare May 5, 2026 21:45
Tyler-Lopez and others added 11 commits May 5, 2026 15:53
Replaces plain text Button with the official "Connect with Strava"
PNG asset per Strava brand guidelines, sized at 48dp tall with natural
aspect ratio preserved via ContentScale.FillHeight.

Clip ripple to match Strava button corner radius

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Removes client_secret from the app binary by proxying the OAuth token
exchange through a Cloudflare Worker. StravaRepository now calls
getAccessTokenViaProxy exclusively; logs proxy response status on each
exchange.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add "See Workout" button to PlayWorkoutScreen shown on workout completion
- Add WorkoutReviewScreen with Connect with Strava / Create Strava Activity
- Move all Strava auth and activity creation out of HomeScreen/HomeViewModel

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Capture start timestamp when user first presses Start
- Compute elapsed time from workouts (sum of interval duration + rest)
- Thread both values through the Route and into WorkoutReviewViewModel

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Activity name = first workout's name
- Description = each interval formatted as "<name>: Xs work / Ys rest"
- Thread name and description through destination, route, factory, and ViewModel
- Add description field to StravaApi, StravaRepository, CreateStravaActivityUseCase

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Tyler-Lopez Tyler-Lopez force-pushed the feat/workout-review-screen branch from 708895c to a2daa1f Compare May 9, 2026 17:57
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