Skip to content

fix(home): keep a card in section 04 when the series is paused or over - #398

Merged
IanoNjuguna merged 1 commit into
IntersectMBO:mainfrom
danbaruka:fix/next-session-card
Nov 11, 2026
Merged

IanoNjuguna merged 1 commit into
IntersectMBO:mainfrom
danbaruka:fix/next-session-card

Conversation

@danbaruka

@danbaruka danbaruka commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description

The homepage next-session card ignored DEVEX_SESSIONS_ENABLED and 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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (improves code structure or readability without changing functionality)
  • Other (please describe):

Changes Made

  • website/src/components/CommunitySection/NextSession.tsx reads 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 set suppressHydrationWarning.
  • website/src/components/CommunitySection/styles.module.css adds a quiet label for those two states. The live badge stays Blazing Amber.

Checklist

  • My code follows the project's coding style and guidelines.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation (if applicable).
  • My changes generate no new warnings or errors.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have checked for merge conflicts.
  • I have rebased my branch onto the latest main or master branch.

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.

@IanoNjuguna IanoNjuguna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IanoNjuguna
IanoNjuguna merged commit a8ee56b into IntersectMBO:main Nov 11, 2026
3 checks passed
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.

Next session card: ignores the pause flag, and empties half of section 04 when the series ends

2 participants