Skip to content

fix(ui): stabilize archived task story timestamps#3574

Merged
richardsolomou merged 2 commits into
mainfrom
posthog-code/fix-archive-story-timestamps
Jul 20, 2026
Merged

fix(ui): stabilize archived task story timestamps#3574
richardsolomou merged 2 commits into
mainfrom
posthog-code/fix-archive-story-timestamps

Conversation

@richardsolomou

Copy link
Copy Markdown
Member

Problem

Why: The archived tasks story derived fixture dates from wall-clock time before the visual runner froze the browser clock. Unrelated PRs then produced changing screenshots, with future fixture dates rendered as just now.

Changes

I anchored the story timestamps to the same fixed date used by the Storybook visual runner, keeping relative and calendar labels deterministic.

How did you test this?

  • Ran pnpm exec biome check packages/ui/src/features/archive/ArchivedTasksView.stories.tsx.
  • Ran pnpm --filter @posthog/ui typecheck.
  • Ran pnpm --filter code build-storybook.
  • Captured the ManyTasks story twice under the test-runner clock and confirmed byte-identical screenshots.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

@trunk-io

trunk-io Bot commented Jul 20, 2026

Copy link
Copy Markdown

😎 Merged manually by @richardsolomou - details.

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 70f9ef0.

@richardsolomou
richardsolomou marked this pull request as ready for review July 20, 2026 06:38
@greptile-apps

greptile-apps Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(ui): stabilize archived task story t..." | Re-trigger Greptile

@richardsolomou
richardsolomou requested a review from a team July 20, 2026 06:40
@posthog

posthog Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Visual changes approved by @richardsolomou — baseline updated in 3daed6a.

View this run in PostHog

7 changed.

richardsolomou and others added 2 commits July 20, 2026 15:30
Generated-By: PostHog Code
Task-Id: b21ae89d-1bf8-49fa-a781-cb96dae2e61f
7 updated
Run: 1704bd4f-ebe9-4f96-bcc6-179d0679127e

Co-authored-by: richardsolomou <2622273+richardsolomou@users.noreply.github.com>
@richardsolomou
richardsolomou force-pushed the posthog-code/fix-archive-story-timestamps branch from fac2185 to 70f9ef0 Compare July 20, 2026 12:30
@richardsolomou
richardsolomou merged commit c4138c6 into main Jul 20, 2026
30 of 31 checks passed
@richardsolomou
richardsolomou deleted the posthog-code/fix-archive-story-timestamps branch July 20, 2026 12:44
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.

2 participants