Skip to content

Link exercises in the routine detail view to their detail page - #1318

Open
faithless11 wants to merge 1 commit into
wger-project:masterfrom
faithless11:feature/link-exercises-in-routine-detail
Open

faithless11 wants to merge 1 commit into
wger-project:masterfrom
faithless11:feature/link-exercises-in-routine-detail

Conversation

@faithless11

Copy link
Copy Markdown

Proposed Changes

  • The exercise names in the routine detail view (RoutineDetailsCard: both SetConfigDataDetails for days with sequence data and SlotEntryList for days without) are now links to the exercise detail page. The link is built with makeLink(WgerLink.EXERCISE_DETAIL, …) including the slug, like in the exercise overview.
  • Since the dashboard routine card reuses SetConfigDataDetails, the exercises are linked there as well.
  • The link uses color="inherit" and underline="hover", so the view looks the same as before until you hover over a name.
  • Added a test covering both code paths.

Related Issue(s)

Closes #1317

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)

Ran locally: vitest run src/components/Routines src/components/Dashboard (51 files, 304 tests passing), tsc --noEmit and eslint on the changed files.

The exercise names in the routine overview (and the dashboard routine card,
which reuses SetConfigDataDetails) are now links to the exercise detail page,
so users can look up how an exercise is performed directly from their plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Link exercises in the routine detail view to the exercise detail page

1 participant