Skip to content

Daily Coding Challenge archive calendar hides challenge details from screen readers and lacks HTTP !response.ok check #71819

Backlog

Description

@DevCodeHub99

Describe the Issue

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.

Affected Page

https://www.freecodecamp.org/learn/daily-coding-challenge/archive

Steps to Reproduce

  1. Go to /learn/daily-coding-challenge/archive.
  2. Inspect an available day link in the accessibility tree or navigate the calendar grid with a screen reader.
  3. 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).
  4. 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

  1. added theissue type on Nov 29, 2026
  2. added
    status: waiting triage
    on Nov 29, 2026
  3. kashishbharti350 commented on Nov 29, 2026

    @kashishbharti350

    Hi! I'd love to work on this issue. Could you please assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: waiting triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions