Skip to content

Add Performance Tracking: Calories Burned & Workout Duration and show graph #14

Description

@VJLIVE

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

Metadata

Metadata

Assignees

Labels

Gssoc25Label for issues that are part of GirlScript Summer of Code 2025 (GSSOC'25).Level 310 points for solving advanced issues in GSSOC'25enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions