Repository navigation
Career: a role with a dated start never paints its authored state before the clock is read - #787
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This branch was successfully deployed
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
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 withvisibility: hidden(nothing moves) and draws its rail the neutral way:@media (scripting: enabled)): without them the authored text is shown;upcoming(upcoming: truehas no clock to wait for);data-clockfollows the sametoday === nullcondition as the clock itself), so no hydration mismatch.The clock is still read in one place;
docs/career-page.mdis 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 toscripting: enabledwith the 1.5 s release.pnpm typecheckclean,vitest run195 files / 2688 tests pass.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
upcomingline, 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