Skip to content

Backport #5653: fix(web-shared): show future timestamps as "in X" instead of "X ago" - #5656

Closed
github-actions[bot] wants to merge 1 commit into
stablefrom
backport/pr-5653-to-stable
Closed

github-actions[bot] wants to merge 1 commit into
stablefrom
backport/pr-5653-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #5653 to stable (backport job run).

AI recommendation: This fixes a display bug in the observability UI: future timestamps, such as a sleep's resume time, are labelled "X ago". packages/web-shared/src/components/ui/timestamp-tooltip.tsx on stable has the same code (absolute difference, always ending in "ago"), so the bug is there too. The change only touches the wording, moves the formatters out of the hooks so they can be tested, and adds unit tests, with no new feature.

…5653)

Hovering a timestamp in the future (e.g. a sleep's resume time) showed
"x minutes ago" in the hover card because the relative-time helpers took
the absolute difference and always appended "ago". This fixes the wording.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e129379

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@workflow/web-shared Patch
@workflow/web Patch
@workflow/cli Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/core Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/vitest Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
example-nextjs-workflow-turbopack Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
example-nextjs-workflow-webpack Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
example-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-astro-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-express-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-fastify-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-hono-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-nitro-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-python-workflow Error Error v0 Nov 20, 2026 10:27pm UTC
workbench-sveltekit-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workbench-vite-workflow Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workflow-docs Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workflow-swc-playground Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workflow-tarballs Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC
workflow-web Ready Ready Preview, v0 Nov 20, 2026 10:27pm UTC

This branch was successfully deployed

1 active deployment
Preview – workflow-docs — e129379e Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant