ClaytonNolen / GymProgram

0 stars 1 forks source link

Implementing Multiple Charts #61

Open ClaytonNolen opened 7 months ago

ClaytonNolen commented 7 months ago

The first part of this will be me adding more input field to the "test" page. Below is a list of what is needed for Daniel you pull from for the other charts.

4 bench mark arrays: each a int and in field data

ClaytonNolen commented 7 months ago

Screenshot 2024-04-18 at 7 13 40 PM

Squat input has been added successfully.

ClaytonNolen commented 7 months ago

Screenshot 2024-04-18 at 7 48 20 PM

Deadlift Entry is now working

ClaytonNolen commented 7 months ago

Noticed a bug that requires each of the inputs to be field before they are added to Firebase. This will need to be fixed.

Daniel-Haley commented 6 months ago

Working with @ClaytonNolen on adding dates to the charts. Updating color of input fields so they are more visible.

ClaytonNolen commented 6 months ago

Working with Daniel on making the charts display date of entry.

Daniel-Haley commented 6 months ago

Increased the size of the charts so that the dates can be displayed more easily. Trying to make them responsive as well.

ClaytonNolen commented 6 months ago

After speaking with Daniel, we have agreed to use the code that we are using for creating a workout. Specifically to get the date. This also includes us using the help method file.

Daniel-Haley commented 6 months ago

Researching how to add another array to the y axis but haven't found a configuration that matches ours.

ClaytonNolen commented 6 months ago

Data is being stored into the Firebase DB. However, the type of data is NaN according to Google.

Daniel-Haley commented 6 months ago

Added test dates in a static array to look at sizing of chart. Will plan on making max inputs to graph as 24 but could make smaller

ClaytonNolen commented 6 months ago
Screenshot 2024-04-19 at 1 26 22 PM

![Uploading Screenshot 2024-04-19 at 1.33.18 PM.png…]()

Heres the issues we were dealing with before until I fixed it. What was happening is that the const var "formattedDateStr" (or whatever it is) was no declared at the right moment in the code, specifically in reference with benchDate. Once this was moved into the if statements, the data could properly be formatted from formatData file, and have the correct type, string.

ClaytonNolen commented 6 months ago

After testing and discussing with Daniel, this works! This code will be duplicated and implemented towards the other metrics we would like to check!

ClaytonNolen commented 6 months ago

Still developing the similar code for the other entries!

Daniel-Haley commented 6 months ago

Working with Clayton on syncing date arrays with our charts.

ClaytonNolen commented 6 months ago

Added functionality to Squat and Deadlift. After, DH called and I helped him pull the data from Firebase properly.

ClaytonNolen commented 6 months ago

Screenshot 2024-04-19 at 3 41 36 PM

This is a current error I am working on. This was fixed and am working on why the date are off by one day.

ClaytonNolen commented 6 months ago

Speaking to daniel and looking into these future items for the front end;

Daniel-Haley commented 6 months ago

Chart is working for Bench Press and need to replicate for the rest of the charts. Need to account for logic issues with having required input fields but will probably get to tomorrow.

Daniel-Haley commented 6 months ago

Working on replicating Bench chart changes to the rest of the charts and displaying them

Daniel-Haley commented 6 months ago

Updated input colors for the rest of the charts and working on sizing of the charts

Daniel-Haley commented 6 months ago

Fixed the space between the charts with Tailwind margin code. Also made the graphs slightly smaller. Working on getting the date and x-axis configuration the same on all of the charts.

Daniel-Haley commented 6 months ago

Completed functionality for all of the benchmark charts and merging the code