Skip to content

fix(ui): draw the search filter sheet with the shared side sheet - #1375

Open
TheMeinerLP wants to merge 2 commits into
mainfrom
fix/search-filter-sheet-shared
Open

TheMeinerLP wants to merge 2 commits into
mainfrom
fix/search-filter-sheet-shared

Conversation

@TheMeinerLP

Copy link
Copy Markdown

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 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?

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.ts in reposilite-frontend: 88 of 88 passed
  • eslint on the two changed files: clean
  • npm run typecheck: clean
  • The search end-to-end spec is left to the ci:e2e label.

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; the change is frontend only)
  • Documentation and configuration samples are updated if the change is user-facing (no user-facing text changed)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

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.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
Look up MdSideSheet and MdCard by component instead of data-ingot-component.
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