Skip to content

fix(manage): responsive filter row and conditional system-snaps toggle [UDENG-9624]#2087

Draft
juanruitina wants to merge 4 commits into
ubuntu:mainfrom
juanruitina:feat/manage-system-snaps-snap-filter-only
Draft

fix(manage): responsive filter row and conditional system-snaps toggle [UDENG-9624]#2087
juanruitina wants to merge 4 commits into
ubuntu:mainfrom
juanruitina:feat/manage-system-snaps-snap-filter-only

Conversation

@juanruitina

@juanruitina juanruitina commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Improves the installed-apps filter row on the manage page in two ways:

  • Conditional toggle: the "Show system snaps" switch is now hidden when the package-type filter is set to All or Deb, where it has no effect. Switching away from the snap filter also resets it.
  • Responsive layout: the search field, package-type filter, and sort control now reflow gracefully when there is not enough horizontal space — including on locales with longer labels such as Russian and Tamil. The filter and toggle always stay together as a unit; the sort control wraps independently when needed.

UDENG-9624

Before After
Screenshot From 2026-04-10 12-31-51 Screenshot From 2026-04-10 12-32-36

Type of Change

Bug fix (non-breaking)

Checklist

  • Tests pass (melos run test)
  • Code formatted (melos run format:exclude)
  • Generated code updated (melos run generate)
  • Localizations updated (melos run gen-l10n)
  • No breaking changes to public APIs
  • PR follows Conventional Commits format

AI-authored.

juanruitina and others added 4 commits April 10, 2026 11:24
Only show the toggle when the snap filter is active; reset it to false
when switching to another filter.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Custom _FilterSortLayout render object keeps sort right-aligned,
wrapping to a second line only when needed. Search is full-width on
compact, fixed width otherwise.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use Flexible + TextOverflow.ellipsis on sort label and system-snaps row.
Grow search field width from hint text. Clamp sort offset to prevent
negative x on narrow layouts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
_SearchFilterSortLayout measures the filter group's natural width; if it
fits beside the search field it stays inline, otherwise the whole group
wraps to a second row as a unit.

UDENG-9624

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@juanruitina juanruitina force-pushed the feat/manage-system-snaps-snap-filter-only branch from 725d085 to c02b5da Compare April 10, 2026 09:24
@juanruitina juanruitina changed the title fix(manage): wrap package filter when it overflows beside search fix(manage): responsive filter row and conditional system-snaps toggle Apr 10, 2026
@juanruitina juanruitina changed the title fix(manage): responsive filter row and conditional system-snaps toggle fix(manage): responsive filter row and conditional system snaps toggle Apr 10, 2026
@juanruitina juanruitina changed the title fix(manage): responsive filter row and conditional system snaps toggle fix(manage): conditional system snaps toggle and responsive handling Apr 10, 2026
@juanruitina juanruitina changed the title fix(manage): conditional system snaps toggle and responsive handling fix(manage): responsive filter row and conditional system-snaps toggle [UDENG-9624] Apr 10, 2026
@juanruitina juanruitina deleted the feat/manage-system-snaps-snap-filter-only branch April 10, 2026 11:11
@juanruitina juanruitina restored the feat/manage-system-snaps-snap-filter-only branch April 10, 2026 11:14
@juanruitina juanruitina reopened this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant