Skip to content
SprecherEast
Issue 581

feat: "Happening now" strip: current neighborhood updates at the top of Home, News and Events

Back to our plan
Open
enhancementfrontenduxpriority: high

Problem

In plain words: when something is happening right now, such as a closed road, neighbors should see it the moment they open the site. They shouldn't have to find out by driving there. A small "Happening now" strip at the top of Home, News and Events shows the current updates and steps aside by itself when they end.

Summary of the owner's request (2026-11-02, Claude conversation, text): people sometimes arrive at a closed road, in this case a highway, and find they cannot get through. He also wants the site to be very intuitive and to encourage people to return.

Today (checked):

  • The home page is built from page blocks (src/app/(frontend)/[slug]/pageBlocks.tsx). It includes "Events this week" (eventsThisWeek, #122), whose heading editors can change, and "Top issues" (topIssues, #484).
  • Re-rendering. Home, /posts and post pages re-render every 10 minutes (revalidate = 600).
  • The shared Alert (src/platform/ui/Alert.tsx) has an info tone.

Proposed fix

What it is:

  • A compact list of at most 3 current updates, ending soonest first. Each line has the topic, the title as a link, and "until Fri, Nov 8".
  • Below them, "+N more · See all updates" links to the Updates page.
  • It renders nothing at all when no update is current. It uses the Alert info tone: no red alarm styling.

Where:

  • Home: a page block (happeningNow, news module, registered in pageBlocks.tsx). An editor places it at the top of the home page.
  • /posts and /events: the same component at the top.
  • Not on post or event pages. Their first screen belongs to the article (the owner's first-screen rule, #571 and #574).

When:

  • An update shows while activeFrom <= now < activeUntil.
  • It appears and disappears within 10 minutes, because of the existing re-render.
  • Editing an update refreshes the strip: check that revalidatePost expires the strip's cache tag (#479 is the same problem for categories).

The weekly digest already exists. Don't build a second one:

  • Rename the home page's "Events this week" heading to "This week in Sprecher East" in Admin (a content edit).
  • Put the strip directly above it.
  • A new digest block would duplicate eventsThisWeek.

Motion: none beyond the site's existing hover rules. The strip is rendered on the server, so nothing shifts.

Native first, one line per step:

  1. Native: a Payload where query on the dates, Next's re-render, and the existing Alert, Section and Link.
  2. Official plugins: none needed.
  3. Open source: none needed.
  4. Our code: one server component and one query in src/modules/news/.

Acceptance criteria

  • Not done: With a current update, the strip shows on Home, /posts and /events. With none, nothing renders and the layout is unchanged.
  • Not done: A unit test pins the date rule: an update shows from "from", stops at "until", and a future one isn't shown yet.
  • Not done: At the six widths (320, 430, 768, 1024, 1280, 1920), light and dark: each line wraps to two lines at most, contrast meets WCAG AA, and links are at least 44px tall on touch.
  • Not done: Keyboard: every link can be reached by Tab, with a visible focus ring. A screen reader announces a region named "Happening now".
  • Not done: Before and after numbers for the home page are in the PR: LCP stays under 2.5s and CLS under 0.1.
  • Not done: The home page shows "This week in Sprecher East" right below the strip (content edit noted in the PR).

Area

frontend, ux

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab