Repository navigation
Description
What is wrong
NextSession (website/src/components/CommunitySection/NextSession.tsx) derives the next
call from DEFAULT_SESSIONS[0] in website/src/components/MeetupReminderButton/meetup-sessions.json:
- anchor
baseDate: 2026-09-17T18:00:00Z recurrence.interval: 2weeksendDate: 2027-09-17T18:00:00Z
calculateNextMeetup walks the interval past any occurrence that has already ended, so the
date is correct at build time. Three problems follow from that design.
1. A pause hides the floating control but not the card
DEVEX_SESSIONS_ENABLED lives in MeetupReminderButton/constants.ts and is read only by
MeetupReminderButton (src/components/MeetupReminderButton/index.tsx:60 and :99).
NextSession imports DEFAULT_SESSIONS and nothing else.
So setting the flag to false while the series is paused hides the sessions selector and
leaves the card advertising a call that is not happening.
2. When the series ends, section 04 loses its right column
NextSession returns null once calculateNextMeetup returns null, which happens after
endDate. The grid in CommunitySection/index.tsx stays two columns.
Measured with the page clock shifted to 2027-12-01, past the series end:
- card present:
false - grid columns:
498px 498px - grid children: 1 (
support), width 498 - section height: 518, right half empty
So the day the series ends, the page grows the same half-empty band that cutting the
repository pulse card produced, and it happens without anyone touching the repo.
3. The date is computed twice and the two copies can disagree
The component renders during the build, and build/index.html carries
<time datetime="2026-11-12T18:00:00.000Z">Thu 12 Nov 2026</time>. It then runs again in
the browser during hydration, with the visitor's clock.
Measured with the page clock shifted 15 days forward (browser date 2026-11-22):
- prerendered markup:
Thu 12 Nov 2026 - rendered after hydration:
Thu 26 Nov 2026 - console: 6
Docusaurus React Root onRecoverableErrorentries
React recovers by re-rendering the subtree, so what a reader sees is right. Two things are
still wrong:
- the crawler and the first paint see the build-time date, which can be up to one interval
stale - the recoverable error is real and fires whenever a build and a visit straddle a session
boundary, which is every two weeks in the worst case
Suggested fix
NextSessionreadsDEVEX_SESSIONS_ENABLEDand renders a paused state, or nothing, when
it is false.- Section 04 gets a fallback for "no next session": an archive card pointing at
/docs/working-group/, so the band keeps its two columns. - Move the computation into an effect: the server keeps the build-time date, the client
corrects after mount. Same freshness, no hydration mismatch. The alternative is to accept
build-time only, but then the static markup is only as honest as the last deploy.
Also worth deciding
Cadence changes are a manual edit of meetup-sessions.json plus a redeploy, and every date
derives from the anchor, so moving the anchor re-derives the whole series, past sessions
included. If the WG skips a week, moves slot, or pauses mid-series, there is currently no
way to express that: the card keeps asserting arithmetic.
Activity