Add 'Hide dependencies' filter checkbox to Installed packages view - #160
Open
stybo wants to merge 1 commit into
Open
Add 'Hide dependencies' filter checkbox to Installed packages view#160stybo wants to merge 1 commit into
stybo wants to merge 1 commit into
Conversation
MikeMcQuaid
previously requested changes
Sep 10, 2026
MikeMcQuaid
left a comment
Member
There was a problem hiding this comment.
Not accepting PRs until 7.0.0 launched.
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.
PR: Add 'Hide dependencies' filter checkbox to Installed packages view
Summary
Adds an optional "Hide dependencies" checkbox toggle to the Installed packages view, allowing users to filter the list down to explicitly requested packages (
installedOnRequest) and reduce clutter from secondary dependencies.Changes
UI & Presentation
InstalledPackagesView: Added ahideDependenciesTogglecheckbox beneath the scope picker, styled with.brewSubheadlineand secondary text coloring.View Model & Filtering
InstalledViewModel:hideDependencies: Bool(defaults tofalse).InstalledPackagesContent.filtered(hidingDependencies:)andfilteredContent(...)to filter by\.installedOnRequest.updateSelectionForFilterChange) to handle row preview fallbacks and restorations when toggling the dependency filter.Accessibility & Test Support
BrewAccessibilityID: Added.installedHideDependenciesCheckbox("installed.hideDependencies") toAXIDand verified wire-format inAXIDTests.InstalledScreen: AddedhideDependenciesCheckboxandtoggleHideDependencies()helpers for UI tests.BrewPackageFixtures: AddedinstalledOnRequestparameter toInstalledBrewPackage.fixture(defaults totrue).InstalledViewModelHideDependenciesTests: Added unit test coverage for default state, filtering direct vs. dependency packages, composition with scope picker and search queries, and row selection fallback/restoration.Why this split (optional)
Leverages the existing
installedOnRequestflag already exposed byInstalledBrewPackageto provide immediate filtering capability in the Installed tab without modifying the underlying data layer or database schema.Testing
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer swift test --filter BrewFeatureInstalledTests(226 tests passed across 26 suites).AXIDTests.hideDependencies.PR checklist
Follow-ups (optional)