Skip to content

Career: a role with a dated start never paints its authored state before the clock is read - #787

Merged
BSoDium merged 1 commit into
mainfrom
claude/pensive-cray-629242
Dec 3, 2026
Merged

BSoDium merged 1 commit into
mainfrom
claude/pensive-cray-629242

Conversation

@BSoDium

@BSoDium BSoDium commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What

Opening the career page showed "JOINING" for a split second on a role that had already begun. The role has upcoming: 2026-11-30, the page is a static file with no clock, so the prerendered HTML says "Joining" and the browser turns it into the role in progress after hydration; for every visitor after the day that is a wrong word painted first (a cost the doc listed as "known").

A role with a dated start now carries data-clock="pending" until the browser has read the day, and the style holds its period line back with visibility: hidden (nothing moves) and draws its rail the neutral way:

  • only where scripts run (@media (scripting: enabled)): without them the authored text is shown;
  • for 1.5 s at most (an animation releases it), so a hydration that never comes leaves no hole;
  • only for a dated upcoming (upcoming: true has no clock to wait for);
  • the first client render equals the prerendered HTML (data-clock follows the same today === null condition as the clock itself), so no hydration mismatch.

The clock is still read in one place; docs/career-page.md is updated ("First paint").

Checks

  • career-page.test.ts: the pending attribute (dated role only, only while unread, gone once the day is read), and a check that the style is scoped to scripting: enabled with the 1.5 s release.
  • pnpm typecheck clean, vitest run 195 files / 2688 tests pass.
  • In Chromium on the published data, a frame-by-frame record with the entry script delayed 900 ms: hidden from the first frame, then Nov 2026 – Present, no frame with "Joining". With hydration blocked: hidden until 1.5 s, then the authored "Joining". Not tried on Safari or a real phone.

The paired content PR removes the passed upcoming line, which removes the wait for this role altogether; this change is what protects the next dated start.

Board

No issue exists and the board is not reachable from this environment (GraphQL blocked): to add by hand.


Generated by Claude Code

…ore the clock is read

A role with upcoming: YYYY-MM-DD is drawn as Joining in the prerendered HTML and
turned into the role in progress after hydration, so a visitor after the day saw
a split second of the wrong word. Until the day is read the role now carries
data-clock=pending and the style holds its period line back (visibility, so
nothing moves), only where scripts run and for 1.5 s at most.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ub8ohU7xwodfgHSDAjwfUJ
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
catalyst-v2 Ready Ready Preview Dec 3, 2026 1:03pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
catalyst-v2-api Ignored Ignored Dec 3, 2026 1:03pm UTC

@BSoDium
BSoDium marked this pull request as ready for review December 3, 2026 13:16
@BSoDium
BSoDium merged commit 8271149 into main Dec 3, 2026
5 checks passed
@BSoDium
BSoDium deleted the claude/pensive-cray-629242 branch December 3, 2026 13:16

This branch was successfully deployed

1 active deployment
Preview – catalyst-v2 — d8a358a2 Deployed Dec 3, 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.

2 participants