Activity

Bedřich Zimmermann

Today I focused on fixing the core logic behind my activity tracking app. I refactored the entire data flow so the app now uses a single, consistent source of truth for all activities. This solved several issues where different parts of the app were reading from different arrays, which caused mismatched graphs and incorrect statistics.

I also fixed the calculation of active minutes. These values were previously returning zero because the component was passing the wrong arguments or reading from outdated data. After cleaning up the logic and removing duplicated state, all metrics now update correctly.

I rewrote the data loading logic so each graph now receives the correct filtered and sorted activity history. I also updated the Running Power chart to load data only when the modal opens, preventing empty renders.

Finally, I removed duplicated modals, fixed missing brackets, and cleaned up several useEffect hooks that were running unnecessarily. With these changes, the app is now stable, the UI updates correctly, and all graphs display accurate data.

Attachment
0
Bedřich Zimmermann

Shipped this project!

Hours: 32.79
Cookies: 🍪 98
Multiplier: 2.98 cookies/hr

I have build sport app that can use gps from my phone a nd it has a lot of sports features. Hardest part for me was implementing gps, because didn´t want to use it but with little help from copilot a managed to be able to use it. I am proud of overall ui style of my app and training functions like Tss, Rai and more.

Bedřich Zimmermann

I have counted steps randomly and kcal are changed based on steps. You can delete all data and settings. You can see charts of RAI, TSS, Running Power, and these metrics are measured by your activities with GPS or by the activities you enter manually. You can view your activity history, and on the homepage you can see your last activity. FTP is measured by you and must be entered manually. You can switch between kg and lbs by clicking the “kg” label. This also changes km to miles.

Attachment
Attachment
0