Files
loki/src
g-butandClaude Sonnet 4.6 1804adb9b3 refactor(dry): extract computeStreak helper in habits.ts
The 7-line streak loop appeared twice — once using HABIT_HISTORY_DAYS
as the bound (listHabitsForToday) and once using a dynamic days param
(getHabitHeatmapData). Extracted to a private computeStreak(dates, maxDays)
function eliminating the duplication.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 15:32:30 +02:00
..