Samurai's First Project banner

Samurai's First Project

3 devlogs
36h 54m

I implemented a simple step‑tracking system where steps increase randomly, and the calorie count automatically adjusts based on the number of steps. The app also allows you to completely reset all stored data and settings at any time.

You can v…

I implemented a simple step‑tracking system where steps increase randomly, and the calorie count automatically adjusts based on the number of steps. The app also allows you to completely reset all stored data and settings at any time.

You can view detailed charts for RAI, TSS, and Running Power. These metrics are calculated either from GPS‑based activities or from activities you enter manually. All your past activities are stored in the activity history, and the homepage always shows your most recent activity for quick access.

FTP is not measured automatically — it must be entered manually by the user. You can also switch between kilograms and pounds by tapping the “kg” label, which simultaneously switches distance units between kilometers and miles. This makes the app flexible for users who prefer different measurement systems.

This project uses AI

I used Copilot ai to help me find my mistakes and correct them and for viewing my project in vscode, which didn´t work so i end up using snack espo for visuals. Now he helped me implementing gps tracking.
I needed help with exporting my app from expo to apk.

Demo Repository

Loading README...

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