Skip to content

feat: display live search results count in exercise search - #20

Open
sagnikonly wants to merge 1 commit into
arvids-unavailable:mainfrom
sagnikonly:feat/search-results-count
Open

feat: display live search results count in exercise search#20
sagnikonly wants to merge 1 commit into
arvids-unavailable:mainfrom
sagnikonly:feat/search-results-count

Conversation

@sagnikonly

Copy link
Copy Markdown

Description

Adds a live search result count badge to the right side of the exercise search text box in both the Add Exercise sheet (ExercisePicker) and the Exercises Library view (Library).

Summary of Changes:

  • Live Counter: Dynamically displays the number of matching exercises as the user types a search query or toggles body part / equipment filters.
  • Design System Alignment: Uses the existing surface styling tokens (var(--surface-3) / theme-appropriate badge pill) and ensures comfortable right-padding (56px) so long search terms do not overlap the badge.
  • Dependency-light: No new dependencies added.

Verification:

  • Tested across light and dark themes in the browser.
  • Verified live filtering and count updates.
  • All unit tests passing (npm test - 192/192 tests pass).

@mangeshraut712

Copy link
Copy Markdown

Superseded by #28 (search result count in Library + picker, with aria-live). Thank you.

@mangeshraut712

Copy link
Copy Markdown

Search result counts are in #28. Please close in favor of that PR.

@SunriseDuarte

Copy link
Copy Markdown

Heads up: openGym has moved to GitLab.
-> GitLab

The GitHub repo is no longer maintained (the account was suspended, so it's out of my hands). Please re-open this issue/PR on GitLab so it doesn't get lost, I'll pick it up there. Questions, help and roadmap discussion now happen in Discord:
-> Discord

Sorry for the noise, and thanks for sticking around.
more infos here: openGym

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