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

Đang mở
#4,036 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

@nj-1812 đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #4040 của @nj-1812 — đang mở

Đánh giá

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

Mô tả

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.

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.