Website to log workouts in a quite flexible way. The target is a visual appealing page to track your workouts/weight in a flexible and efficient way. Stopped working on it, but still using it to track my weight and exercises if I exercise...
On the database, if you add a weight with the same date, the old value gets overwritten, which is intended.
At redux it's simply added to the object. If a date already exists, it should be overwritten.
At the calendar or timeline overview it should be possible to copy an workout to repeat it.
When copied, only the workouts and the amount of sets should be copied. The placeholder values should still be filled with the most recent references as it should be done with #14.
The animation of the dots is off because the association which dot is for what entry is most likely based on the date. This entry changes if the axis is moved. The association should be based on the index in the array.
When an exercise is added to a workout, the entered data is moved incorrectly. This is most likely because the new div is added at the top.
I think it would also be better to add the div at the bottom again and automatically scroll the screen down. The add exercise button und timer will be placed relative to the screen anyway at the later design.
During logging a workout, it's possible to enter no value at an exercise. This messes up some entries in the database. It should be checked during the submission.
Instead of giving the user the flexibility and therefore increased complexity, the colors to choose from should be pre defined.
With this it's also possible to define different shades for dark and light mode and also secondary colors for possibly multiple information in one chart.
Currently there are two functions, one for getExercises and one for getWorkout. In most cases both are needed so it would make sense to merge the two. This would reduce the overhead data of the HTML headers and improve performance. The only downside would be, that the fetching could take a bit longer and in some rare cases, some unnecessary data is queued from the database.
It would make it also easier to calculate the data for the charts, exercise order and exercise dummy data.
Aktuell wird das Diagramm ständig komplett erneuert. Eigentlich sollte das Diagramm nur beim Laden erstellt werden und bei Updates nur aktualisiert werden.
Lösung überlegen wie man komfortabel eine Benachrichtigung an Benutzer schicken kann, zum Beispiel wenn etwas falsches eingetragen wurde oder keine Daten verfügbar sind.
Instead of a simple list of all the data entries, these should be grouped by year and month. Also the year and Month could have some statistics like weight gain/lost.
Beim Eintragen von einem neuen Workout wird dieses sauber in der Datenbank gespeichert, aber das Workout Objekt in Redux wird nicht sortiert was zu falschen Diagrammen führt.