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

207 mixed add gender to body diagram dynamically resize the body #218

Closed AaronFmyHub closed 6 months ago

AaronFmyHub commented 7 months ago

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

Description

Added gender to user profile and used that as the default for displaying body model. Also dynamically resize the SVG ViewBox using user device specifications.

  1. Add gender to schema and global context following current method.
  2. Create toggle that is non-indicative.
  3. Use only screen height to limit size of the SVG ViewBox since the ViewBox we are using is always 1-to-2 in terms of width and height. Also protect the bottom part, which contains functional buttons, from being overlapped on.

Tests

How was this tested?

[Optional] Screenshots

genderSelection.webm

image User has PREFERNOTSAY as gender, so use default.

Documentation

AI Usage:

Used AI to simplify if-else statement, AI improved run time and readability of my code.

codecov[bot] commented 7 months ago

Codecov Report

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

Project coverage is 98.57%. Comparing base (7c884f2) to head (c537395).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #218 +/- ## ========================================== + Coverage 98.50% 98.57% +0.07% ========================================== Files 32 33 +1 Lines 201 211 +10 Branches 57 59 +2 ========================================== + Hits 198 208 +10 Misses 3 3 ```

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

thienguen commented 6 months ago

image

good works, run on my machine locally. One thing I do feel iffy is that we currently do not have the pop-up after sign-in asking users what gender they are, this can be a separate issue.

Also, try to sync your branch to the latest main, a lot has been changed,

thienguen commented 6 months ago

thank you so much! for implementing the changes right after my review