HabitFlow currently supports binary habit tracking (completed / not completed). The next major milestone introduces Quantified Habits, allowing users to track measurable goals such as reading pages, drinking water, walking steps, coding hours, and more.
This release transforms HabitFlow from a simple streak tracker into a more capable personal progress system while maintaining full backward compatibility with existing user data.
Support two habit types:
- Boolean Habits
- Numeric Habits
Examples:
| Habit | Type | Target |
|---|---|---|
| Exercise | Boolean | Completed |
| Read Books | Numeric | 30 Pages |
| Water Intake | Numeric | 8 Glasses |
| Walking | Numeric | 10,000 Steps |
| Meditation | Numeric | 20 Minutes |
Extend the database schema without breaking existing installations.
New field:
habit_type TEXT NOT NULL DEFAULT 'boolean'Supported values:
boolean
numeric
target_value REAL
unit TEXTExamples:
8 glasses
30 pages
2 hours
10000 steps
Current:
habit_logs
βββ habit_id
βββ date
βββ completedNew:
habit_logs
βββ habit_id
βββ date
βββ completed
βββ valueExample:
Target: 30 pages
Current: 15 pages
Completed: false
File:
migration_0002_numeric_habits.sql
Requirements:
- Preserve all habits
- Preserve all logs
- Preserve streak history
- Zero data loss
Introduce a unified progress engine.
enum HabitType {
Boolean,
Numeric,
}Create:
src/services/progress_service.rs
Functions:
progress_percent()
remaining_amount()
is_completed()Boolean Habit:
checked = completed
Numeric Habit:
value >= target_value
Completion should update automatically.
Verify:
- Boolean habits
- Numeric habits
- Mixed habit collections
Allow users to create measurable habits.
Current:
Name
Category
Icon
New:
Name
Category
Icon
Habit Type
β Boolean
β Numeric
Visible only when Numeric selected.
Fields:
Target Value
Unit
Example:
Target: 8
Unit: glasses
Prevent:
- Empty target
- Zero target
- Negative values
- Invalid numbers
- Empty units
Support both binary and measurable habits.
No UI changes.
Example:
β Exercise
π₯ 12 Day Streak
Example:
π§ Water Intake
6 / 8 glasses
[ββββββββ]
75%
Add controls:
[-] [+]
Actions:
- Increment
- Decrement
Allow users to edit progress manually.
Example:
15 / 30 pages
When target is reached:
- Animate progress bar
- Show completion state
- Trigger success feedback
Provide meaningful insights for quantified habits.
Display:
- Total Units Completed
- Average Daily Progress
- Best Performance Day
- Most Consistent Habit
- Most Productive Habit
Show:
Actual Progress
vs
Target Progress
Intensity levels:
0%
25%
50%
75%
100%
instead of binary complete/incomplete values.
Improve visualization for numeric habits.
Current:
β
β
New:
β
β
β
β
based on completion percentage.
Display:
- Date
- Progress
- Current Value
- Target Value
Maintain compatibility across versions.
Example:
{
"habit_type": "numeric",
"target_value": 8,
"unit": "glasses"
}Requirements:
- Import old backups
- Import new backups
- Automatic schema detection
Test:
- 0%
- 25%
- 50%
- 75%
- 100%
- Over target
Verify:
- Boolean habits
- Numeric habits
- Mixed habits
Verify:
- New schema
- Legacy schema
Flow:
- Create habit
- Save
- Restart application
- Verify persistence
Flow:
- Increment progress
- Reach target
- Verify completion
- Verify streak update
Flow:
- Open v0.1 database
- Run migration
- Verify all data preserved
Create screens for:
- No habits
- No numeric habits
- No statistics available
Show:
- Current Progress
- Remaining Amount
- Target Value
Verify:
- Keyboard navigation
- Focus indicators
- Screen reader labels
Test all existing themes.
Current count:
22 Themes
- Numeric habits fully supported
- Boolean habits remain unchanged
- Progress tracking operational
- Automatic completion logic working
- Statistics updated
- Weekly grid updated
- Existing databases migrate successfully
- Import/export compatibility maintained
- No streak corruption
- No data loss
- Production build passes
- Windows installer builds successfully
- MSI upgrade path verified
- Release notes prepared
HabitFlow v0.2.0 will introduce measurable habit tracking and progress visualization, forming the foundation for future features such as:
- Habit reminders
- Achievements
- Monthly calendar view
- Advanced analytics
- Cloud synchronization
This release should be considered the first major functional expansion beyond simple streak tracking.