User story
As a user, I want to see my current streak number next to each habit, and a 🔥 badge when I'm on a roll (3+ days), so that I feel rewarded for consistency.
Acceptance criteria
Definition of done
npm test and npm run build pass; streak display is wired to currentStreak from src/habits.ts; all DOM/rendering changes are confined to src/main.ts.
Depends on: the issue that adds currentStreak to src/habits.ts ([REQ-001] Add currentStreak and bestStreak pure functions with unit tests).
Source: REQ-001 (vault/02 - Requirements/REQ-001 - Streaks and momentum.md)
User story
As a user, I want to see my current streak number next to each habit, and a 🔥 badge when I'm on a roll (3+ days), so that I feel rewarded for consistency.
Acceptance criteria
src/main.tsdisplays the current streak count returned bycurrentStreak(habit, today).todayis obtained from the existingdayStr()helper — never hardcoded.npm testandnpm run buildboth pass.Definition of done
npm testandnpm run buildpass; streak display is wired tocurrentStreakfromsrc/habits.ts; all DOM/rendering changes are confined tosrc/main.ts.Depends on: the issue that adds
currentStreaktosrc/habits.ts([REQ-001] Add currentStreak and bestStreak pure functions with unit tests).Source: REQ-001 (vault/02 - Requirements/REQ-001 - Streaks and momentum.md)