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

195 frontend workout frequency chart 1 #256

Closed BitsyBirb closed 5 months ago

BitsyBirb commented 5 months ago

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

Description

What did you change? How did you change it?

Implemented line chart that plots how many times the logged-in user has exercised in each month of the current year.

Component can be found in ~/apps/expo/src/components/workout/frequency_graph.tsx and the name of the component itself is DisplayWorkoutFrequencyGraph({userID: number}). You pass the userID of the global context into it.

Has styling issues that I'd like to address with the rest of the team such as finalizing the design or adding to it, but for now the prototype is good to go and gets the proper data/plots it.

Tests

How was this tested?

[Optional] Screenshots

image

Documentation

Link to external documentation: https://www.npmjs.com/package/react-native-gifted-charts

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

Besides reviewing the styling and cleaning it up a bit, not to my understanding.

taylorfinelli commented 5 months ago

If you need sample code to look at for the styling you can look at apps/expo/src/components/post/PostDashboard.tsx

mva919 commented 5 months ago

I think you can style it as the mock up if you just change the background color

taylorfinelli commented 5 months ago

Added myself and marcos as reviewers

taylorfinelli commented 5 months ago

Use case:

taylorfinelli commented 5 months ago

Updated:

Screenshot 2024-04-28 at 5 28 39 PM