Repository navigation
fix(ui): show failed audit and file loads in the shared state panel - #1370
Open
TheMeinerLP wants to merge 3 commits into
Open
TheMeinerLP wants to merge 3 commits into
TheMeinerLP wants to merge 3 commits into
Conversation
The audit log and the file listing drew a red paragraph with a bare Retry beside it when the first load failed, while the LDAP and SSO panels already used the shared state panel. The same failure looked different from one view to the next. Both views now show MdStatePanel in its error state with the same message, one tonal Retry that reloads, and the data-test anchor on the panel. A missing directory keeps its navigation actions and still offers no Retry.
Look up the shared state panel as MdStatePanel and read its state prop.
The shared state panel replaced the card that carried the error state, so the registered state no longer appeared in the template.
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.
Description
An administrator who opens the audit log or a repository listing while the server cannot answer sees a red line of text with a Retry button next to it. On the LDAP and SSO pages the same failure shows a calm panel with a title, a message and a Retry button. This change makes the audit log and the file listing show the same panel, so a failure looks and behaves the same wherever it happens.
The listing keeps its guidance when a directory is missing or cannot be read: the "Go to parent" and "Go to repository root" actions stay, and a missing directory still offers no Retry, because asking again cannot fix it.
Closes none. This is a follow-up to the dashboard feedback work in the unify-dialogs-menus-and-feedback change.
Type of change
fix- bug fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementdocs- documentation onlytest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
npx vitest runinreposilite-frontend: 97 tests pass. The new tests were red before the change.npm run typecheckand eslint on the changed files pass../gradlew build, because the change only touches the frontend.Checklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (not run, frontend-only change)