📋 Question
Habit Tracker with Streaks
Develop a Habit Tracker system that allows users to create daily habits, track completion, maintain streaks, and visualize progress. The system should provide a clean dashboard to manage habits efficiently and monitor consistency over time.
Requirements:
- Provide input fields for Habit Name and optional Category.
- Users should be able to add habits from a form on the same dashboard page.
- Each habit should be stored in the database with completion history.
- Allow users to mark habits as completed for the day.
- Implement streak logic to track consecutive days of completion.
- Reset streak if a habit is missed for a day.
- Display all habits dynamically on the dashboard.
- Provide options to delete habits.
✅ Expected Output
Your final output should look like the example below: