Problem
streaks.js and streaks-advanced.js contain duplicated streak calculation logic. This makes maintenance harder and increases risk of the two diverging.
What to change
- Audit both files and identify shared logic
- Extract common streak utilities into a single module (e.g.
lib/streaks.ts)
- Have both current consumers import from the shared module
- Remove duplicated code
Acceptance criteria
Label: tech-debt | Priority: low
Problem
streaks.jsandstreaks-advanced.jscontain duplicated streak calculation logic. This makes maintenance harder and increases risk of the two diverging.What to change
lib/streaks.ts)Acceptance criteria
Label: tech-debt | Priority: low