[BUG] AI Mentor says "coded on 30 of the last 30 days" with a 1-day streak
Los mantenedores suelen responder en 1 día
@laypatel13 ya está trabajando en esto.
Desde el 3/12/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
What happened?
The AI Mentor says "You coded on 30 of the last 30 days". Same dashboard: 1 day streak, 3/7 active days, longest streak ever 18 days. Can't code 30 days in a row with an 18 day best.
The trend is off too. It says ↓1%, but my commits are down 33 vs last week. The AI weekly summary repeats it.
Why: the commit data only has rows for days with commits. In src/lib/ai-mentor.ts:
analyzePatternstakescommits.slice(-30): the last 30 rows, not the last 30 dayscomputeTrendssplits the rows in half, not the calendar
So anyone with 30+ coding days in the last 90 always gets "30 of 30". The tests never caught it because they give a row for every day, even days with 0 commits.
Expected: count calendar days, so the card matches the streak and active days cards. Compare the trend over two equal date windows.
Attached the failing test that reproduces it below.
Steps to reproduce
- Sign in with an account that has 30+ coding days in the last 90, with gaps in the last 30
- Open the dashboard (HQ)
- Compare the AI Mentor card with the Streak, Active days and Personal records cards
Where is it?
AI features (insights, personality, project tutor, career)
Where did you see it?
devtrack.live
Browser and device
Chrome on macOS
Screenshots, console errors or logs
Want to fix it?
- I'd like to work on this. A maintainer will assign you; please don't start before that.
- Lenguaje dominante
- TypeScript
- Estrellas
- 246
- Forks
- 436
- Merge medio
- 9 h 33 min
- PR fusionados (30 d)
- 213
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Priyanshu-byte-coder/devtrack
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Priyanshu-byte-coder/devtrack#4066 ·
Los mantenedores suelen responder en 1 día
-
Webhook manager: replace the browser confirm() dialogs with ConfirmModalPosiblemente ocupada @Nandaninaulaa la tomó hace 4 días. Abiertogood first issue level 1 level:beginner status:assigned type:design
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Priyanshu-byte-coder/devtrack#3889 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Goals form: square arcade buttons for recurrence, Create goal and RefreshPosiblemente ocupada @KartikeyG-world la tomó hace 4 días. Abiertogood first issue level 1 level:beginner status:assigned type:design
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Priyanshu-byte-coder/devtrack#3877 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Goals: the error banner and the "No goals yet" hint show at the same timePosiblemente ocupada @KartikeyG-world la tomó hace 4 días. Abiertogood first issue level 1 level:beginner status:assigned type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Priyanshu-byte-coder/devtrack#3872 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de Priyanshu-byte-coder/devtrack
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
makecindy/cindy#15342 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
no-repo-link tool-submission
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100