Issue 480
This-week strip: three small follow-ups from the #477 review
Back to our planOpen
frontendtech-debtpriority: low
Type
tech-debt
Problem
The review of #477 left three small items for later:
src/modules/events/data/thisWeek.ts: a storedsourcethat is neitherofficialnorcategoryfalls back to "all events". That's the safe default, but the code doesn't say so.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.- Nothing tests the 4-row cap in
findEventsThisWeek(.slice(0, THIS_WEEK_LIMITS.rows.max)). Removing it fails no test.
Proposed fix
- Add a one-line comment on the fallback.
- Use a plain
<div>with the row'sh3for each row, keeping the outer section. - 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