Skip to content

fix(frontend): use singular relative time units - #8110

Merged
aglinxinyuan merged 1 commit into
apache:mainfrom
carloea2:fix/frontend-relative-time-singular
Aug 30, 2026
Merged

aglinxinyuan merged 1 commit into
apache:mainfrom
carloea2:fix/frontend-relative-time-singular

Conversation

@carloea2

Copy link
Copy Markdown
Contributor

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, and 1 weeks ago.
After: 1 minute ago, 1 hour ago, 1 day ago, and 1 week ago.

Any related issues, documentation, discussions?

Closes #8108

How was this PR tested?

yarn test --include src/app/common/util/format.util.spec.ts
yarn format:ci

Manual:

  1. Start Texera locally from this worktree.
  2. Set a local workflow creation and edit time to exactly one hour ago.
  3. Open Your Work, then Workflows in Chrome.
  4. Confirm both labels display 1 hour ago while older cards retain plural units.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Codex

@github-actions github-actions Bot added fix frontend Changes related to the frontend GUI labels Aug 29, 2026
@Yicong-Huang Yicong-Huang added the release/v1.2 back porting to release/v1.2 label Aug 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @Ma77Ball, @Yicong-Huang
    You can notify them by mentioning @Ma77Ball, @Yicong-Huang in a comment.

@github-actions
github-actions Bot requested a review from xuang7 August 29, 2026 16:10
@github-actions

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. release/* labels drive the post-merge backport, so add or remove one to change where this fix lands.

Release branch Analysis
✅ release/v1.2 Change detected on this branch — label added; this fix is queued to backport here. Requested review from @xuang7.

Auto-label run.

@codecov-commenter

codecov-commenter commented Aug 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.86%. Comparing base (04b213d) to head (7dcc3e0).

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     
Flag Coverage Δ *Carryforward flag
access-control-service 81.00% <ø> (ø) Carriedforward from 04b213d
agent-service 99.32% <ø> (ø) Carriedforward from 04b213d
amber 89.71% <ø> (ø) Carriedforward from 04b213d
computing-unit-managing-service 73.67% <ø> (ø) Carriedforward from 04b213d
config-service 86.86% <ø> (ø) Carriedforward from 04b213d
file-service 87.91% <ø> (ø) Carriedforward from 04b213d
frontend 85.72% <100.00%> (-10.47%) ⬇️
notebook-migration-service 79.31% <ø> (ø) Carriedforward from 04b213d
pyamber 98.87% <ø> (ø) Carriedforward from 04b213d
workflow-compiling-service 77.19% <ø> (ø) Carriedforward from 04b213d

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Yicong-Huang
Yicong-Huang self-requested a review August 29, 2026 16:16
@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Aug 30, 2026
Merged via the queue into apache:main with commit 05e1be4 Aug 30, 2026
38 of 44 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport to release/v1.2 failed. See job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix frontend Changes related to the frontend GUI release/v1.2 back porting to release/v1.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard relative times use plural units for singular values

4 participants