Skip to content

feat: add per-workout By Feel toggle#200

Open
psjostrom wants to merge 1 commit into
mainfrom
feat/by-feel-toggle
Open

feat: add per-workout By Feel toggle#200
psjostrom wants to merge 1 commit into
mainfrom
feat/by-feel-toggle

Conversation

@psjostrom

Copy link
Copy Markdown
Owner

Summary

  • Adds a "By Feel" button to EventModal for planned workouts that strips all pace/HR targets from the description while keeping step structure, durations, and intensity= suffixes intact
  • Name convention: W12 Easy By Feel — detected on read-back via suffix, used to hide the toggle when already applied
  • byFeel flag threaded through PlanConfigPlanContextcreateStepMaker for future pre-generation support (not yet exposed in planner UI)

Test plan

  • stripPaceTargets strips absolute (X:XX-X:XX/km Pace) and percentage (XX-XX% pace) targets
  • Name helpers (isByFeel, addByFeel, removeByFeel) handle all workout name variants
  • generateSingleWorkout with byFeel: true produces no-target descriptions across all categories
  • EventModal: clicking "By Feel" sends correct PUT payload and fires onEventUpdated callback
  • EventModal: API failure shows error message
  • EventModal: button hidden when event already has "By Feel" suffix
  • All 1449 tests pass

🤖 Generated with Claude Code

Lets the runner keep workout structure (warmup/main/cooldown, step
transitions for fuel taper) while removing all pace/HR targets so the
watch shows step names and durations only — no nagging.

Post-generation toggle in EventModal strips targets from existing
descriptions via stripPaceTargets(). byFeel flag also threaded through
generators for future pre-generation support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented May 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
springa Ready Ready Preview, Comment May 19, 2026 9:53am

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.

1 participant