Skip to content

fix(ui): put the browser dialogs in the shared frame - #1368

Open
TheMeinerLP wants to merge 3 commits into
mainfrom
fix/browser-modals-shared-dialog
Open

TheMeinerLP wants to merge 3 commits into
mainfrom
fix/browser-modals-shared-dialog

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Two dialogs of the file browser were still drawn outside the shared dialog frame: the file browser adjustments and the delete confirmation. Every other dialog of the dashboard opens over the same scrim, keeps the focus inside, closes on Escape and hands the focus back to the control that opened it. These two drew their own overlay and frame, so they looked and behaved differently from the rest.

A keyboard user who opened the adjustments or chose Delete on a file got a dialog that did not react the way the others did. Both now open in the shared frame, with the same focus, Escape and scrim as every other dialog. The delete confirmation is announced as an alert dialog named by its question. The texts, the buttons, the switches and what Delete removes are unchanged.

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?

  • New tests in AdjustmentsModal.test.ts and DeleteEntryModal.test.ts: the dialog is drawn by the shared frame and named by its heading, and Escape closes it (for the delete confirmation, without deleting anything).
  • npx vitest run src/components/browser src/styles in reposilite-frontend: 21 files, 661 tests pass.
  • ESLint on the changed files and npm run typecheck in reposilite-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 (frontend-only change, not run here)
  • Documentation and configuration samples are updated if the change is user-facing (not needed, no user-visible text changed)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

The file browser adjustments dialog drew its own overlay, role and
frame, so it was the one dialog that did not follow the shared dialog
frame. Focus, Escape and the scrim were handled differently from every
other dialog of the dashboard.

It now opens in MdDialog, named by its heading, and the Done button
sits in the actions row. The focus, Escape and the scrim come from the
frame, and the switches and texts are unchanged.
The delete dialog of the file browser drew its own overlay and frame
with the alertdialog role, so it did not share the focus handling,
Escape and scrim of the other dialogs. The confirmation of a delete is
the dialog where that difference matters most.

It now opens in MdDialog as an alertdialog, named by its heading and
described by its text. The Cancel and Delete buttons sit in the actions
row. The path, the warning, the Delete button in the error colour and
the requests are unchanged.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
Look up MdDialog as a component instead of the data-ingot-component attribute.
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