Repository navigation
Add category assignments, auto-categoriser, and grouped app library view (#323) - #325
Merged
Merged
Conversation
…iew (#323) - AppCategoryGroup: model pairing an AppCategory with its filtered apps - AppAutoCategoriser: package-name heuristics mapping known apps to category ids - LauncherSettings: categoryList, appCategoryAssignments, appGroupingEnabled, autoCategorise helper; category state included in launcherChangeToken - AppLibraryFilter: groupByCategory groups filtered apps by enabled category, respecting search query and profile scope - AppLibraryPageModel / factory: categoryGroups field populated when an AppLibraryCategoryContext is provided with groupingEnabled=true - LauncherAppLibraryController: renders grouped view with a section-header card per category when categoryGroups is non-null - CalmLauncherRunner: wires settings into AppLibraryPageModelFactory via context lambda https://claude.ai/code/session_014SVjLmSTdqY3hSCrK59YFV
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.
Summary
AppCategoryGroup— model pairing anAppCategorywith its filteredAppEntrylistAppAutoCategoriser— package-name heuristic rules mapping ~50 well-known app packages to category IDs (communications, finance, shopping, media, productivity, games, system, customisation)LauncherSettings—categoryList/setCategoryList,appCategoryAssignments/setAppCategoryAssignments/setAppCategoryIds,appGroupingEnabled/setAppGroupingEnabled, andautoCategorise(appEntries)which bulk-assigns via the categoriser; all category state included inlauncherChangeTokenso renders refresh on changeAppLibraryFilter.groupByCategory— groups a filtered app list by enabled categories, respecting the active search query and profile scope; empty categories are omittedAppLibraryPageModel/AppLibraryPageModelFactory— newAppLibraryCategoryContextcarries categories + assignments + toggle; factory populatescategoryGroupson the model when context is present andgroupingEnabled=trueand assignments are non-emptyLauncherAppLibraryController— whencategoryGroupsis non-null, renders a grouped card stack: one dimmed section-header card per category (title + app count) followed by that category's app cards, all in one unified scrollable stackCalmLauncherRunner— wires settings reads into acategoryContextlambda injected into the factoryUX
When the user enables app grouping (
setAppGroupingEnabled(true)) and triggers auto-categorisation (autoCategorise(appEntries)), the app library page shows apps grouped under section header cards for each category. The flat list view is unchanged when grouping is off or no assignments exist.Manual per-app assignment is supported via
setAppCategoryIds(identityKey, ids)— UI for this is a subsequent slice.Test plan
./gradlew :app:testDebugUnitTest— all tests passAppAutoCategoriserTest— WhatsApp → communications, Spotify → media, Docs → productivity, unknown → emptyAppLibraryFilterTest— groupByCategory groups correctly, skips disabled/empty categories, applies search queryAppLibraryPageModelTest— factory returns null groups when context absent/disabled/empty; populates groups when enabledCloses part of #323
https://claude.ai/code/session_014SVjLmSTdqY3hSCrK59YFV
Generated by Claude Code