Repository navigation
fix(home): keep a card in section 04 when the series is paused or over - #398
Merged
Merged
Conversation
The next-session card ignored the pause flag and disappeared after the series end date, which left the contributor band with one column. A paused or finished series now keeps the archive card, and the date text can refresh across a fortnight boundary without a hydration error.
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.
Description
The homepage next-session card ignored
DEVEX_SESSIONS_ENABLEDand returned nothing once the series had no future date. Section 04 is a two-column grid, so either case left a blank column beside the contributor copy.This keeps a card in that column. A paused series says so and links to the working group archive. A finished series does the same. The live card is unchanged while the flag stays on. The date and time allow a refresh when a visit falls in a later fortnight, so that text difference is not a recoverable hydration error.
Related Issue
Fixes #378
Type of Change
Changes Made
website/src/components/CommunitySection/NextSession.tsxreads the same pause flag as the floating sessions control. Paused and finished states render an archive card that links to/docs/working-group/. The date and time elements setsuppressHydrationWarning.website/src/components/CommunitySection/styles.module.cssadds a quiet label for those two states. The live badge stays Blazing Amber.Checklist
mainormasterbranch.