Perfectionism score's consistency term rewards fewer commits per day

Đang mở
#4,037 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Dhruvdesai793 đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #4069 của @Dhruvdesai793 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
246
Fork
436
Merge trung bình
9 giờ 33 phút
Pull request đã merge (30 ngày)
213

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Priyanshu-byte-coder/devtrack

Tất cả issue của Priyanshu-byte-coder/devtrack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.