enhancement: Neighborhood UI fixes, infinite scroll for events and news, and CMS review queue
Back to our planProblem
The public site (https://sprechereast.com, opens in a new tab) has visible layout and usability defects, and the events and news listings don't scale as content grows. Found by rendering main locally at 375 / 820 / 1280 px:
Tablet overflow (768–1023 px): the desktop nav switches on at
md, but nine items plus Log In and Contact don't fit. "Log In" wraps to two lines and the page scrolls sideways (875 px wide at an 820 px viewport) on every page.Broken hero buttons: hero CTAs get the Button's fixed
h-10pluspy-3.5, so the label sits on the bottom edge and the two buttons overlap. "Get Involved" is white on#e8923a(2.4:1, fails WCAG AA).CTA banner: the second button renders near-black instead of outlined, and bold text in the banner renders dark on green.
Duplicate
<h1>: the high-impact hero renders its rich text twice (one copy hidden with CSS), so the home page has twoh1s.Quick Facts card: rich text in cards keeps
prosemax-width and centres itself, leaving a lopsided left gap.Past events overflow on phones: long titles in compact event cards push the page to 508 px at a 375 px viewport.
News order: home "Recent News" and
/postsare not sorted newest-first, and short dates have no year, so 2024 posts look current.Events:
/eventsloads a hard cap of 50 and silently drops the rest.<time datetime>uses a midnight-UTC timestamp for day-only dates. No timezone label.Mobile menu: no Escape-to-close, focus isn't returned to the toggle, toggle is 40 px (< 44 px), no
aria-controls/aria-current.Motion: card and button hover transforms ignore
prefers-reduced-motion.Event cards: the whole card is one link, so its accessible name is the entire card text.
Contact form is empty (added 2026-10-19): the public contact page renders no fields and an unlabeled button, on the live site too. Forms are readable only by admins/editors, so anonymous visitors get just the form ID. Fixing it means making form definitions publicly readable while keeping email routing (recipients, templates) private, which is a change to
.claude/rules/security.mdthat needs the owner's sign-off.Secondary pages (added 2026-10-19): Contact, Get Involved, FAQ and Search use a thin, light
h1unlike Events and News; a heading-only "card" on Get Involved; a 28px search box.
The owner also wants infinite scroll for events and news so more items load as residents scroll.
Proposed fix
Phased per the Claude Code handoff. Updated 2026-10-19 after the external review: this issue is now Phase 1 only (delivered by #111, which closes it). Phases 2 and 3 moved to their own issues with their own acceptance tests.
- Phase 1 (first PR): fix every defect above, and replace the 50-item cap and numbered post pagination with incremental loading: auto-load on scroll with a real "Load more" link as fallback (works without JS, keyboard-reachable, keeps the footer reachable, keeps
/posts/page/Ncrawlable). - Phase 2 → #122: home "this week" strip, event filters, official meetings, cancelled state. Cursor paging (offset paging can skip one item when another is removed between loads; measured on #111) is its own bug, #125.
- Phase 3 → #123: CMS review-queue fields; drafts by default, provenance, de-duplication, human approval before publishing. No schedules or external writers in this repo.
Acceptance criteria
- Not done: No horizontal scrolling on
/,/events,/posts, an event page, or/aboutat 320, 430, 768, 1024, 1280, and 1920 px. - Not done: Hero and CTA buttons render with centred labels, ≥ 44 px tall, and text contrast ≥ 4.5:1.
- Not covered here: other
bg-primarybuttons in the dark theme (header Contact, event Register,SidebarCTA, the defaultButtonvariant) are 3.35:1 → tracked in #121. This issue doesn't claim them. - Not done: Exactly one
h1per page. - Not done: Mobile menu closes on Escape and on navigation, and focus returns to the toggle.
- Not done: Hover motion is disabled under
prefers-reduced-motion: reduce. - Not done: News is newest-first; dates outside the current year show the year.
- Not done: Events and news load more items as you scroll, with a working "Load more" link without JavaScript, a live "Showing X of Y" status, and an explicit end-of-list message. No silent 50-item cap.
- Not done: Logged-in non-editors never see drafts in loaded pages (explicit
_status: publishedfilter). - Not done: Day-only event dates use
<time datetime="YYYY-MM-DD">; event pages label times as Central Time; no time is invented whentimeStartis empty. - Not done: Signed-out visitors see the contact form's fields and a labeled submit button;
GET /api/forms/<id>returnsemails: []when signed out and the full list for admins/editors. - Not done: Contact, Get Involved, FAQ and Search use the same bold page title as Events and News.
- Not done: Events also have a no-JavaScript "Load more" link (
/events/list/<upcoming|past>/<n>). - Phases 2 and 3: acceptance criteria now live in #122 and #123.
- Not done: No public surface says SENA or implies dues are required.
Area
frontend, ux, styling, cms
Priority
priority: medium
Generated by Claude Code, opens in a new tab