Draft
Conversation
- Add full execution screen (app/(app)/workout/[id].tsx): per-exercise/per-set logging rows, rest timer modal (60/90/120s), optimistic saves, finish workout with completion marking - Add API helpers: fetchPlannedWorkoutByDate, fetchWorkoutLogs, upsertWorkoutLog, finishPlannedWorkout (lib/api.ts) - Add store state: activePlannedWorkout, activeWorkoutLogs with upsertActiveWorkoutLog action (store/useWorkoutStore.ts) - Make WorkoutLog.reps_completed and weight nullable (types/index.ts) - Wire Start Workout to navigate by planned date (app/(app)/index.tsx) - Add Start Workout + Completed CTAs in Planner (app/(app)/planner.tsx) Co-authored-by: pcdev333 <124543139+pcdev333@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Build Phase 5 for workout execution and rest timer
Phase 5: Workout Execution Screen + Rest Timer
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delivers the core "fast execution" flow: Start Workout → log sets per exercise → rest timer → finish and mark day complete. Targets ≤3 steps from planning to execution with no tab navigation.
New: Execution Screen (
app/(app)/workout/[id].tsx)Replaces the Phase 5 placeholder. Route param
idis an ISO date string (YYYY-MM-DD); invalid dates render an error card.structured_jsonworkout_logson blur via upsert keyed on(planned_workout_id, exercise_name, set_number)Alert) on finish — noexpo-av/expo-hapticsdependencyis_completed=true+completed_at=now(), navigates backAPI (
lib/api.ts)Four new helpers:
Store (
store/useWorkoutStore.ts)Added
activePlannedWorkout,activeWorkoutLogs, andupsertActiveWorkoutLog(usesfindIndexto avoid double-iteration).Types (
types/index.ts)WorkoutLog.reps_completedandweightare nownumber | nullto match upsert semantics.Entry Points
index.tsx): Start Workout navigates to/workout/<selectedDate>(was workout UUID)planner.tsx): shows Start Workout CTA for today/past unlocked days; shows Completed badge for finished daysOriginal prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.