Repository navigation
fix(dashboard): a failed active-dashboard read keeps the dashboard list - #2061
Merged
Merged
Conversation
…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
…pad-help-dev-reds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Development had three reds that every lane's local-green check trips over:
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 withPromise.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 newfetchActiveDashboard()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 parallelgetActiveDashboardcall 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'}].l10nNoDuplicateKeys:"No group"appeared twice inl10n/nl.js, both with the same translation. One copy is removed.perfectionist/sort-named-imports) insrc/utils/__tests__/adminWalkthrough.spec.js.Checks
vitest: 457 files, 4137 tests passingnpm run lint: 0 errors (13 warnings, none new)Generated by Claude Code