Skip to content

fix(ui): show failed audit and file loads in the shared state panel - #1370

Open
TheMeinerLP wants to merge 3 commits into
mainfrom
fix/failed-loads-state-panel
Open

TheMeinerLP wants to merge 3 commits into
mainfrom
fix/failed-loads-state-panel

Conversation

@TheMeinerLP

Copy link
Copy Markdown

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 fix
  • feat - new feature
  • refactor - internal change without behaviour change
  • perf - performance improvement
  • docs - documentation only
  • test - tests only
  • build / ci / chore - tooling, dependencies, pipelines
  • Breaking change (configuration, API or behaviour that existing deployments rely on)

How was this tested?

  • Frontend unit tests for the audit view, the file list and the file browser view, run with npx vitest run in reposilite-frontend: 97 tests pass. The new tests were red before the change.
  • New tests: a failed first load in the audit log and in the file list shows the state panel in its error state with the message and exactly one Retry; pressing Retry reloads the audit log and the file list emits the retry; a missing directory offers no Retry.
  • npm run typecheck and eslint on the changed files pass.
  • Not run here: the full ./gradlew build, because the change only touches the frontend.

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md (English, imperative, one of feat, fix, docs, refactor, test, build, ci, chore, perf)
  • Tests cover the change, or the change is not testable and I explained why above
  • ./gradlew build passes locally (not run, frontend-only change)
  • Documentation and configuration samples are updated if the change is user-facing
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

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.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the dashboard end-to-end tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant