Problem
Right now, once a goal's week ends or it gets manually deleted, it's gone — no record, no reflection, no trend. The GoalTracker is purely a "this week" view with zero memory. For a productivity tool, this creates a major motivational gap: users can't see whether they're improving over time, which weeks they crushed, or where they consistently fall short.
What should happen
Completed and expired goals should be persisted to Supabase with a completed_at timestamp, a status field (completed / missed), and their final progress value. A collapsible "Past Goals" section below the active goals list should surface this history.
Proposed UI
[ Active Goals ]
✅ 10 commits/week ████████████ 100% completed Jun 1
🔄 5 PRs/week ██████░░░░░░ 60% in progress
[ Past Goals ▾ ]
✅ 10 commits/week Week of May 26 Completed
❌ 5 PRs/week Week of May 26 Missed (3/5)
✅ 8 commits/week Week of May 19 Completed
Why this matters
Goal tracking without history is a to-do list, not a productivity tool. This is the feature that turns GoalTracker from "what am I doing this week" into "how am I growing as a developer" — which is core to DevTrack's mission.
Problem
Right now, once a goal's week ends or it gets manually deleted, it's gone — no record, no reflection, no trend. The GoalTracker is purely a "this week" view with zero memory. For a productivity tool, this creates a major motivational gap: users can't see whether they're improving over time, which weeks they crushed, or where they consistently fall short.
What should happen
Completed and expired goals should be persisted to Supabase with a completed_at timestamp, a status field (completed / missed), and their final progress value. A collapsible "Past Goals" section below the active goals list should surface this history.
Proposed UI
[ Active Goals ]
✅ 10 commits/week ████████████ 100% completed Jun 1
🔄 5 PRs/week ██████░░░░░░ 60% in progress
[ Past Goals ▾ ]
✅ 10 commits/week Week of May 26 Completed
❌ 5 PRs/week Week of May 26 Missed (3/5)
✅ 8 commits/week Week of May 19 Completed
Why this matters
Goal tracking without history is a to-do list, not a productivity tool. This is the feature that turns GoalTracker from "what am I doing this week" into "how am I growing as a developer" — which is core to DevTrack's mission.