Skip to content

Fix/exercise UI match ingredients - #1235

Merged
rolandgeider merged 12 commits into
wger-project:masterfrom
Sahasra0108:fix/exercise-ui-match-ingredients
Apr 22, 2026
Merged

rolandgeider merged 12 commits into
wger-project:masterfrom
Sahasra0108:fix/exercise-ui-match-ingredients

Conversation

@Sahasra0108

Copy link
Copy Markdown
Contributor

Proposed Changes

  • Added TuneIcon button inside search box to show/hide search filter options
  • Added language filter dropdown (same as ingredient search UI)
  • Added exact match toggle to search for exercises by exact name (name=foo)
    vs fulltext search (name__search=foo)
  • All filter options are saved to localStorage and restored on next visit
  • Added show/hide filter panel icon button on desktop view
  • Exercise grid expands to full width when filter panel is hidden

Related Issue(s)

Related to wger-project/wger#2279 (implements React part of exercise search UI improvements)

Screenshots

1. Filter popup with Language dropdown and Exact match toggle

ss6

2. Fuzzy search (Exact match OFF) - shows multiple results

ss5

3. Exact match ON - shows only exact result

![Exact match](drag your screenshot here)
ss4

4. Filter panel hidden - grid expands to full width

ss2

5. Filter panel visible

ss1

Please check that the PR fulfills these requirements

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

Comment thread src/services/exerciseTranslation.ts Resolved
Comment thread src/services/exerciseTranslation.ts Resolved
@coveralls

coveralls commented Apr 11, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 74.661% (-0.1%) from 74.8% — Sahasra0108:fix/exercise-ui-match-ingredients into wger-project:master

@rolandgeider

Copy link
Copy Markdown
Member

much better, thanks!

(also, while I was testing this I merged master into the branch, there were some changes to the ingredient autocompleter that were causing merge conflicts)

Comment thread src/services/exerciseTranslation.ts Resolved
rolandgeider added a commit to wger-project/wger that referenced this pull request Apr 20, 2026
It is now possible to search for exercise names with an exact match instead of
always using the fuzzy fulltext one.

Needed for wger-project/react#1235
@rolandgeider
rolandgeider merged commit b2083c5 into wger-project:master Apr 22, 2026
4 checks passed
@rolandgeider

Copy link
Copy Markdown
Member

merged!

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.

3 participants