Repository navigation
fix(ui): put the browser dialogs in the shared frame - #1368
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 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.
Look up MdDialog as a component instead of the data-ingot-component attribute.
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
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 fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementdocs- documentation onlytest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
AdjustmentsModal.test.tsandDeleteEntryModal.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/stylesinreposilite-frontend: 21 files, 661 tests pass.npm run typecheckinreposilite-frontend.Checklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (frontend-only change, not run here)