Repository navigation
fix(frontend): use singular relative time units - #8110
Merged
aglinxinyuan merged 1 commit intoAug 30, 2026
Merged
Conversation
Contributor
Automated Reviewer SuggestionsBased on the
|
Contributor
Backport auto-label reportThis
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8110 +/- ##
============================================
- Coverage 93.70% 88.86% -4.84%
Complexity 4741 4741
============================================
Files 1181 1196 +15
Lines 47874 53140 +5266
Branches 5323 6464 +1141
============================================
+ Hits 44861 47224 +2363
- Misses 1578 4328 +2750
- Partials 1435 1588 +153
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Yicong-Huang
self-requested a review
August 29, 2026 16:16
aglinxinyuan
approved these changes
Aug 30, 2026
Contributor
|
Backport to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Relative time labels now use singular units when the value is one while preserving plural units for every other value.
Before:
1 minutes ago,1 hours ago,1 days ago, and1 weeks ago.After:
1 minute ago,1 hour ago,1 day ago, and1 week ago.Any related issues, documentation, discussions?
Closes #8108
How was this PR tested?
yarn test --include src/app/common/util/format.util.spec.tsyarn format:ciManual:
1 hour agowhile older cards retain plural units.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Codex