[BUG] AI Mentor shows "↑ 0%" when activity starts from zero

Aperta
#4,036 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@nj-1812 ci sta già lavorando.

Dal 3/12/2026.

  • #4040 di @nj-1812 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

status:assigned

What happens

computeTrends() in src/lib/ai-mentor.ts returns percentage: 0 when the first half of the period has no commits. So going from 0 commits to 20 shows "↑ 0% vs prior period" in the AI Mentor widget, and "+0%" is sent to the LLM prompt as the activity trend.

Steps

Any account with no commits in the first ~45 days of the 90 day window and some commits in the last ~45.

Expected

The widget should say something like "↑ new (no commits in prior period)" and the prompt should get "up from zero commits", since a percentage change from zero isn't defined.

I'd like to work on this.

Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.