Skip to content
SprecherEast
Issue 480

This-week strip: three small follow-ups from the #477 review

Back to our plan
Open
frontendtech-debtpriority: low

Type

tech-debt

Problem

The review of #477 left three small items for later:

  1. src/modules/events/data/thisWeek.ts: a stored source that is neither official nor category falls back to "all events". That's the safe default, but the code doesn't say so.
  2. src/modules/events/ui/EventsThisWeek.tsx: each row is a <section aria-labelledby>, so one strip adds up to 5 region landmarks, which is noisy for screen-reader users.
  3. Nothing tests the 4-row cap in findEventsThisWeek (.slice(0, THIS_WEEK_LIMITS.rows.max)). Removing it fails no test.

Proposed fix

  1. Add a one-line comment on the fallback.
  2. Use a plain <div> with the row's h3 for each row, keeping the outer section.
  3. Add a 5-row case to the use-case or mapper test.

Acceptance criteria

  • All three are done.
  • axe still passes.
  • Removing the cap fails a test.

Area

frontend

Priority

low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab