Skip to content

Fix Coach routine icons and balance exercise candidates - #311

Merged
DuarteSantos8 merged 1 commit into
DuarteSantos8:mainfrom
ameer-khan-ashraf:fix/coach-plan-selection-icons
Sep 28, 2026
Merged

DuarteSantos8 merged 1 commit into
DuarteSantos8:mainfrom
ameer-khan-ashraf:fix/coach-plan-selection-icons

Conversation

@ameer-khan-ashraf

Copy link
Copy Markdown
Contributor

What this changes

Coach routine pickers and plan cards render routine glyphs through the existing icon system. Plan and review validation allow up to 32 characters for routine glyphs so keys such as figureStrength are preserved rather than truncated.

The bounded exercise catalogue excludes stretches from unpinned candidates and uses weighted body-part lanes to give major training body parts more room. Equipment filtering, deterministic ordering, and pinned plan/history exercises remain supported; narrow candidate pools have fallbacks.

Why

Coach screens displayed icon keys as text and validation truncated them. An equal share of catalogue body parts also overrepresented stretches and small body parts in generated plan candidates.

Validation

  • All 62 payload and validation tests pass on this independent branch, including candidate selection and glyph preservation.
  • CoachChat UI tests and the frontend production build pass.
  • git diff --check passes.
  • No new dependencies or translatable UI text.

Manual check before marking ready

Open a multi-routine Coach plan and the Improve routine picker. Confirm routine icons render correctly for current icon keys and legacy emoji. No hostname or passkey migration setup is required.

Checklist

  • Relevant API and Coach UI tests pass
  • Frontend production build succeeds
  • No new runtime dependency or UI strings
  • CHANGELOG.md is left alone
  • Manual Coach screen check

@DuarteSantos8
DuarteSantos8 merged commit 3573eb4 into DuarteSantos8:main Sep 28, 2026
4 checks passed
DuarteSantos8 added a commit that referenced this pull request Sep 28, 2026
…f the app's icons or an emoji, so no text rides into later prompts through it, and a new plan is asked for an icon by name
DuarteSantos8 added a commit that referenced this pull request Sep 28, 2026
…only as an icon key or an emoji, a flag passes only as one pair of letters, and the icon keys older routines hold survive a plan
DuarteSantos8 added a commit that referenced this pull request Sep 28, 2026
…ith one duplicate swap (#313), an instance default language (#303), Kubernetes manifests (#304) and Coach routine icons (#311)
@DuarteSantos8

Copy link
Copy Markdown
Owner

Thanks @ameer-khan-ashraf. This was still a draft, but it was ready, so it went into v1.3.9 (the push marked it merged).

Two follow-ups for safety, because the icon goes back into later prompts: a Coach routine icon is kept only if it's one of the app's icon keys or an emoji, a flag only as one pair of letters, and older routines keep their icon keys through a new plan.

Released in v1.3.9: https://github.com/DuarteSantos8/openGym/releases/tag/v1.3.9

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