Fix active workout video page#648
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces an instruction page with video playback capabilities into the active-workout HUD, expanding the pager from two to three pages. It forwards the necessary repository and settings from WorkoutTab and adds a source-level guard test. The review feedback highlights two main areas of improvement: first, keying the remember states in InstructionPage on both currentExerciseIndex and exerciseId to prevent potential UI state mismatches; second, avoiding the practice of reading and parsing physical source files from the filesystem within unit tests to prevent environment-dependent fragility.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge The previous test-guard finding is fixed in 🏆 Best part: One focused diff, one targeted fix, zero new sins introduced. The runtime wiring from the prior commit is now actually defended by the test. 💀 Worst part: Nothing new to roast. I came with a spatula and the kitchen is empty. 📊 Overall: A bouncer who now checks both IDs. Acceptable. Files Reviewed (1 file)
Correctness / Safety FindingsNo correctness or safety findings. Ponytail ReviewPonytail: Lean already. Ship. Suggested Minimal PatchNo patch needed. Final Merge GuidanceCan merge as-is. The previously flagged test-coverage gap is closed; no further issues on the incremental diff. Previous Review Summaries (2 snapshots, latest commit 47afe3b)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 47afe3b)Verdict: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)
🏆 Best part: The runtime fix is annoyingly reasonable now: selected-exercise fallback, matching 💀 Worst part: The new regression guard checks one shoelace and declares the whole marathon-ready. Tests that only catch half the bug are how gremlins get tenure. 📊 Overall: The code path is fixed; the guard just needs to stop being a cardboard security camera. Files Reviewed (2 files)
Correctness / Safety Findingsminor: Ponytail ReviewPonytail: Lean already. Ship. Suggested Minimal PatchTighten the existing assertion in Final Merge GuidanceCan merge after the test guard is tightened; the runtime fix itself looks clean. Fix these issues in Kilo Cloud Previous review (commit 9052077)Verdict: 1 Issue Found | Recommendation: Approve with optional nitpick Overview
Issue Details (click to expand)
🏆 Best part: Re-adding the 3-page pager wiring with proper parameter forwarding and a source-level guard test that explicitly documents the contract — that's an actual regression break-glass, not vibes. 💀 Worst part: The 📊 Overall: A focused, mostly surgical fix that puts back what was lost. It's like watching someone reinstall a wheel they stole off their own car — competent, just don't lose it again. Correctness / Safety FindingsNo correctness or safety findings. Ponytail Review
Ponytail net: ~-10 lines (plus the silent catch becomes logged in one spot). Suggested Minimal PatchNo patch is required. The single nitpick about logging on video-load failure is the only actionable item and is non-blocking. Final Merge GuidanceCan merge as-is. Logging the swallowed exception is optional cleanup; the PR resolves issue #643 with the right files, the right pager wiring, and a deliberately strict source-level guard test. Reviewed by minimax-m3 · Input: 27.4K · Output: 3.3K · Cached: 181.1K |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9052077e75
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
ExerciseRepositoryandenableVideoPlaybackfromWorkoutTabintoWorkoutHud.Fixes #643
Verification
:shared:testAndroidHostTest --tests com.devil.phoenixproject.presentation.WorkoutHudVideoWiringTestfailed with the HUD video wiring reverted (2 failing assertions).JAVA_HOME=/opt/homebrew/opt/openjdk@17 ANDROID_HOME=/opt/homebrew/share/android-commandlinetools ./gradlew :shared:testAndroidHostTest --tests 'com.devil.phoenixproject.presentation.WorkoutHudVideoWiringTest' -Pskip.supabase.check=trueJAVA_HOME=/opt/homebrew/opt/openjdk@17 ANDROID_HOME=/opt/homebrew/share/android-commandlinetools ./gradlew :shared:allTests -Pskip.supabase.check=true