UNLV-CS472-672 / 2024-S-GROUP3-Barbell

A workout-tracking app with a support website that does more than just track workouts. Cross platform in IOS and Android
4 stars 0 forks source link

239 frontend new select exercise based on muscle group page #258

Closed AaronFmyHub closed 6 months ago

AaronFmyHub commented 6 months ago

What type of PR is this? (Check all that apply)

Description

Created the page where user select exercise based on prior muscle selection. This handles the issue @elliotwesoff created before about backend query, and it closes another issue #239 This page displays exercises that match user selected muscle group from the list we provided and further lower informational searching cost for user by having user friendly UI/UX design. The page contains select/unselect feature, and the number next to Add activates when user has a valid selection, it indicates the total exercises user selected. It also includes a reset feature, which is useful when users are dealing with large lists.

Tests

How was this tested?

[Optional] Screenshots

exerciseFilter.webm

Documentation

Link to external documentation:

[Optional] Are there any post-deployment tasks we need to perform?

We need to nav from muscleGroup to this page and pass in the passNext.

AI Usage

ChatGPT explained Truthy/Falsy to me and helped me to find a solution display filtered content. It also wrote the code to reset array, which contains user selections. https://chat.openai.com/share/32926458-88e0-430c-a875-85edf02efb96

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.41%. Comparing base (e9c71bf) to head (588a518). Report is 5 commits behind head on main.

:exclamation: Current head 588a518 differs from pull request most recent head 651a495. Consider uploading reports for the commit 651a495 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #258 +/- ## ========================================== - Coverage 99.41% 99.41% -0.01% ========================================== Files 40 40 Lines 342 340 -2 Branches 65 63 -2 ========================================== - Hits 340 338 -2 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

taylorfinelli commented 6 months ago

Isn't this supposed to filter based on the body part selected on the diagram?

taylorfinelli commented 6 months ago

Updated to include functionality and minor styling changes

https://github.com/UNLV-CS472-672/2024-S-GROUP3-Barbell/assets/85365584/e7b6065a-ae61-436f-b7b8-58b9eff99d5f

Ready to be linked to workout view page. Go to apps/expo/src/app/filteredExercises/index.tsx and change the pathname on line 33