Perfectionism score's consistency term rewards fewer commits per day

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

I maintainer di solito rispondono entro 1 giorno

@Dhruvdesai793 ci sta già lavorando.

Dal 3/12/2026.

  • #4069 di @Dhruvdesai793 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

status:assigned

What happens

In computePersonalityDimensions() (src/lib/personality-analysis.ts), the "consistency" part of the perfectionism score is:

const consistency = Math.min(activeDays / Math.max(totalCommits, 1), 1) * 40;

The comment says it measures a consistent daily cadence, but activeDays / totalCommits is really "1 ÷ commits per active day". Someone who makes exactly one commit a day gets the full 40 points, while someone committing 10 times a day on the same days gets 4, even if both coded every single day.

Question

Is this intended? If the goal is cadence, something like the share of days in the window that were active (activeDays / windowDays), or a low spread in daily counts, would match the comment better. Happy to send a PR once there's agreement on what it should measure, since it changes users' scores.

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.