Repository navigation
feat: setting to hide currently blocked apps - #39
Closed
archietownsend wants to merge 2 commits into
Closed
archietownsend wants to merge 2 commits into
archietownsend wants to merge 2 commits into
Conversation
Adds a 'Hide Blocked Apps' toggle in General settings. When enabled, the Status screen omits apps, websites, categories and custom domains that are currently blocked, and shows a count of what was hidden instead.
…tting-po54op feat: setting to hide currently blocked apps
This was referenced Dec 2, 2026
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.
What
Adds a Hide Blocked Apps toggle to General settings (Navigation & Appearance). When it's on, the Status screen leaves out anything that is currently blocked, so the list only shows what is still reachable.
Changes
Settings.hideBlockedApps— new persisted flag, defaults tofalse(lightweight SwiftData migration, same shape ashideDonateButton).BlockedItemVisibility— small pure helper that decides which entries stay visible and how many were hidden. Generic over the item so it can be unit tested without Screen Time tokens, which can't be constructed outside the system.StatusDetailView— apps, websites and categories are filtered againstisShielded; custom domains follow the overall status, matching the badge those rows already show. Sections with nothing left to show disappear, and the Status section gains an "N blocked items hidden" note so the missing rows are never a mystery.GeneralSettingsView— the toggle plus updated section footer.Behaviour
Tests
BlockedItemVisibilityTests— filtering, ordering, hidden counts, empty input, and the disabled pass-through case.SettingsTests— asserts the new flag defaults tofalse.