Skip to content

fix(dashboard): a failed active-dashboard read keeps the dashboard list - #2061

Merged
rubenvdlinde merged 2 commits into
developmentfrom
cloud/b-launchpad-help-dev-reds
Nov 25, 2026
Merged

rubenvdlinde merged 2 commits into
developmentfrom
cloud/b-launchpad-help-dev-reds

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Development had three reds that every lane's local-green check trips over:

  1. Bug, caught by dashboard.golden. Since perf(workspace): the view's boot reads come with the page, not from three requests #1945, loadDashboards() asks for the visible list and the active dashboard together with Promise.all. When only the active read fails, the whole load now rejects, so the dashboard list is lost as well. Before the reads were parallel, the list still loaded. Fix: a new fetchActiveDashboard() catches its own failure and returns {data: null}. The load then has a list and no active dashboard, which restores the old behaviour while keeping the single round trip. The golden fixture is re-recorded. It differs from the old one only by the parallel getActiveDashboard call in the "both fail" case and the new error message in "active fails"; the "active fails" list state is back to [{id: 1, source: 'user'}].
  2. l10nNoDuplicateKeys: "No group" appeared twice in l10n/nl.js, both with the same translation. One copy is removed.
  3. Lint: an import-order error (perfectionist/sort-named-imports) in src/utils/__tests__/adminWalkthrough.spec.js.

Checks

  • vitest: 457 files, 4137 tests passing
  • npm run lint: 0 errors (13 warnings, none new)
  • JS only, so no PHP diff check is needed.

Generated by Claude Code

…st [skip ci]

Since #1945 the list and the active dashboard are asked for together with Promise.all, so a failing active read dropped the list too (the golden 'active fails' case). It now degrades to no active dashboard. Golden re-recorded (parallel call in 'both fail'). Also: duplicate 'No group' in l10n/nl.js and an import-order lint error, both red on development.

Assisted-by: ClaudeCode:claude-opus-5-5
@rubenvdlinde
rubenvdlinde merged commit 6f8f3f5 into development Nov 25, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant