Fix repo mix widget initialization race #48

Closed
opened 2026-08-05 22:47:11 +00:00 by rockachopa · 0 comments
Member

Reproduction

  1. Open the dashboard and inspect the Live Widgets panel.
  2. The repoAtAGlance registry callback queries #repo-mix before paintWidgets() has appended the callback's returned markup.
  3. Because the element is absent at query time, the callback returns Unavailable; no #repo-mix node is rendered and repository counts never appear.

Expected behavior

Render the Repo mix placeholder before attempting to populate it, so live repository, issue, and PR counts are visible. Add a behavioral regression test and validate the rendered dashboard.

This title and behavior were checked against all current open/closed issue titles and recent main history.

## Reproduction 1. Open the dashboard and inspect the Live Widgets panel. 2. The `repoAtAGlance` registry callback queries `#repo-mix` before `paintWidgets()` has appended the callback's returned markup. 3. Because the element is absent at query time, the callback returns `Unavailable`; no `#repo-mix` node is rendered and repository counts never appear. ## Expected behavior Render the Repo mix placeholder before attempting to populate it, so live repository, issue, and PR counts are visible. Add a behavioral regression test and validate the rendered dashboard. This title and behavior were checked against all current open/closed issue titles and recent main history.
timmy was assigned by rockachopa 2026-08-05 22:47:11 +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#48
No description provided.