Skip to content

fix(prs): use day(s) in time decay subline since merge#1239

Open
galuis116 wants to merge 1 commit into
entrius:testfrom
galuis116:fix/day-since-merge-subline
Open

fix(prs): use day(s) in time decay subline since merge#1239
galuis116 wants to merge 1 commit into
entrius:testfrom
galuis116:fix/day-since-merge-subline

Conversation

@galuis116
Copy link
Copy Markdown
Contributor

Summary

On merged PR details, the Time Decay card subline from buildDecaySubline showed {t} days since merge, which reads wrong at one day (e.g. “1.0 days since merge”).
Updates the suffix to day(s) so the subline reads “1.0 day(s) since merge” and “2.0 day(s) since merge”.
Change is in prTimeDecayModel.ts; PRTimeDecayChart renders the subline via buildDecaySubline(projection).

Related Issues

Fixes #1238

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Screenshots

image

Checklist

  • New components are modularized/separated where sensible
  • Uses predefined theme (e.g. no hardcoded colors)
  • Responsive/mobile checked
  • Tested against the test API
  • npm run format and npm run lint:fix have been run
  • npm run build passes
  • Screenshots included for any UI/visual changes

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR time decay subline shows "1.0 days" instead of "{t} day(s) since merge"

1 participant