Show repo mix unavailable when context request fails #103

Closed
opened 2026-08-06 12:16:02 +00:00 by rockachopa · 0 comments
Member

The repo mix widget currently parses /api/v1/context without checking Response.ok. A 503 JSON error is therefore rendered as healthy zero counts instead of the existing Widget unavailable. state. Reproduce by returning an HTTP 503 response with {"error":"upstream unavailable"} from the context fetch.

Acceptance criteria:

  • Non-2xx context responses render the repo mix unavailable state.
  • Successful responses continue rendering repository, open issue, and pull request counts.
  • Add a behavioral regression test.
The repo mix widget currently parses `/api/v1/context` without checking `Response.ok`. A 503 JSON error is therefore rendered as healthy zero counts instead of the existing `Widget unavailable.` state. Reproduce by returning an HTTP 503 response with `{"error":"upstream unavailable"}` from the context fetch. Acceptance criteria: - Non-2xx context responses render the repo mix unavailable state. - Successful responses continue rendering repository, open issue, and pull request counts. - Add a behavioral regression test.
timmy was assigned by rockachopa 2026-08-06 12:16:02 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#103
No description provided.