Describe the bug
The GoalTracker progress bar uses Math.round() to display progress percentage. For goals where actual / target < 0.005, this rounds down to 0% even if there has been some activity, which is demotivating.
Expected behaviour
Use Math.ceil() (or show one decimal place) for fractional progress so users can see any positive progress.
Suggested fix
In src/components/GoalTracker.tsx (or wherever progress % is calculated):
// Before
const pct = Math.round((actual / target) * 100);
// After
const pct = actual > 0 ? Math.max(1, Math.round((actual / target) * 100)) : 0;
Acceptance criteria
Describe the bug
The GoalTracker progress bar uses
Math.round()to display progress percentage. For goals where actual / target < 0.005, this rounds down to 0% even if there has been some activity, which is demotivating.Expected behaviour
Use
Math.ceil()(or show one decimal place) for fractional progress so users can see any positive progress.Suggested fix
In
src/components/GoalTracker.tsx(or wherever progress % is calculated):Acceptance criteria