You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Daily Coding Challenge archive calendar hides challenge details from screen readers and lacks HTTP !response.ok check #71819
In client/src/components/daily-coding-challenge/calendar-day.tsx, available day <Link> elements set aria-label={formatDisplayDate(date)}. Because aria-label overrides the accessible name of the link's inner content, screen readers only announce the date (e.g., "August 11") and ignore the challenge number (#N), full challenge title (when visually truncated via truncate(title)), completion status (Checkmark icon labels), and completed language .sr-only labels (JavaScript / Python).
Additionally, in client/src/components/daily-coding-challenge/calendar.tsx, fetchChallenges calls await response.json() without checking if (!response.ok), so non-OK HTTP responses (e.g., 500 with non-JSON error body) fall through to JSON parsing errors rather than handling the HTTP status directly.
Inspect an available day link in the accessibility tree or navigate the calendar grid with a screen reader.
Observe that the <Link> accessible name is only the formatted date (aria-label={formatDisplayDate(date)}), omitting #challengeNumber, the full title, completion status, and completed languages (JavaScript / Python).
Simulate a non-OK response (e.g., 500) from /daily-coding-challenge/all and observe fetchChallenges attempts response.json() before checking response.ok.
Expected behavior
Screen readers announce the formatted date, #challengeNumber, full untruncated title, completion status, and completed languages for available calendar days, while keeping the visually truncated title aria-hidden="true" and preserving the date in the accessible name.
fetchChallenges checks if (!response.ok) and sets the error state before calling response.json().
Screenshots
No response
System
Device: Laptop
OS: Windows 11
Browser: Chrome
Version: Latest
Additional context
I previously opened #71816 with a fix and unit/component tests before filing an issue, and can open a fresh PR linked to this issue once it is triaged and marked ready for contribution.
Activity
kashishbharti350 commentedon Nov 29, 2026
Hi! I'd love to work on this issue. Could you please assign it to me?