Repository navigation
fix(ui): draw the search filter sheet with the shared side sheet - #1375
Open
TheMeinerLP wants to merge 2 commits into
Open
TheMeinerLP wants to merge 2 commits into
TheMeinerLP wants to merge 2 commits into
Conversation
On a phone the search filters opened as a full-screen overlay that the search view drew itself, with its own dialog role, scrim and stacking value. Every other sheet of the dashboard is drawn by MdSideSheet, so the filters now use it too. They keep their contents and their Show results action, focus returns to the Filters button when the sheet closes, and Escape closes it through the shared component.
Look up MdSideSheet and MdCard by component instead of data-ingot-component.
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
On a phone, tapping Filters on the search page opened the filter list as a full-screen layer that the search view drew on its own. It looked like the other sheets of the dashboard, but it was not built from the shared sheet, so it followed its own rules for Escape, focus and announcements. Someone who opened the filters after the failures or settings sheet met a second way of working with a sheet.
The filters now open in the same side sheet as the rest of the dashboard. The filter contents, the Show results button and the return of focus to the Filters button stay as they were. Escape and the close control both dismiss the sheet the shared way. The small text "Close" button of the old layer is replaced by the close icon the shared sheet shows in its header.
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?
Tests were written first and failed on
main(4 failing assertions on the sheet, its name and the focus return), then passed after the change.npx vitest run src/components/search/SearchView.test.tsinreposilite-frontend: 88 of 88 passedeslinton the two changed files: cleannpm run typecheck: cleanci:e2elabel.Checklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (not run; the change is frontend only)