Description:
Implement a performance tracking feature that allows users to input their calories burned and workout duration for the day. This data will be stored in Firestore and visualized on the performance tracking page using a chart.
📌 Requirements
Add input fields for:
- Calories Burned
- Workout Duration (in minutes)
Store data in Firestore under a collection named performance_logs
- Each log should be tied to the authenticated user's uid
- Data should be grouped by date
On the Performance Tracking page:
- Fetch and display user's daily logs
- Show a chart that visualizes progress over time
- X-axis: Date
- Y-axis: Calories Burned & Duration (dual axis or two-line chart)
- Support editing/updating the logs for a specific day if needed
Firestore Structure:
performance_logs (collection)
└── <uid> (document)
└── logs (subcollection)
└── <YYYY-MM-DD> (document)
├── calories_burned: int
├── workout_duration: int (in minutes)
Acceptance Criteria
- User can add daily performance data
- Data is saved correctly under their uid in Firestore
- Chart accurately reflects progress across days
- Error handling for Firestore write/fetch operations
- Basic form validation for input values
Description:
Implement a performance tracking feature that allows users to input their calories burned and workout duration for the day. This data will be stored in Firestore and visualized on the performance tracking page using a chart.
📌 Requirements
Add input fields for:
Store data in Firestore under a collection named performance_logs
On the Performance Tracking page:
Firestore Structure:
performance_logs (collection) └── <uid> (document) └── logs (subcollection) └── <YYYY-MM-DD> (document) ├── calories_burned: int ├── workout_duration: int (in minutes)Acceptance Criteria