Repository navigation
fix(phone): stop sort and filter pills looking switched on - #835
Conversation
The List Order and Filter pills above library and saved-list grids were light filled capsules with dark text, the look Silo uses for a chosen option, so they looked selected before anything was changed. Applying a sort or filter only moved the fill from white 58% to 70%. Draw them as translucent chips with light text, like the iOS glass control chips and the unselected tabs above them, and lift the fill from white 10% to 30% when a sort or filter is applied. Remove the SiloOpaqueControlSelected colour, which nothing else used. Closes #831 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 44 minutes. View limit details
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
On Android phones, tablets and foldables, the sort and filter pills above the Libraries grid and the For You Watchlist and Favorites grids were light filled capsules with dark text. Silo uses that look for a chosen option: the selected "Library" tab and, since #829, the chosen Watchlist or Favorites pill directly above. An untouched "List Order" or "Filter" pill therefore looked switched on. Applying a sort or filter only moved the fill from white 58% to 70%, which is hard to see.
Solution
ControlPillinSortFilterControls.ktnow draws a translucent chip with light text and a faint outline. That matches the iOS glass control chips (controlChipinBrowseView.swift) and the unselected Recommended, Collections and Shuffle chips on the same screen. When a sort or filter is applied, the fill rises from white 10% to white 30%. It uses the existingSiloDetailActionControl/SiloDetailActionControlActivepair, which the detail page already uses for its off and on actions. "Filter · N" and the Reset button are unchanged.SiloOpaqueControlSelectedhad no other users and is removed. The otherSiloOpaqueControl*colours stay, because the detail page still uses them. Android TV has its own browse controls and isn't affected.Closes #831
Validation
ee178d887) and checked on the fix, against a Silo dev deployment, on Android 36 emulators: Pixel 9, Pixel Tablet, and Pixel 9 Pro Fold folded and open. Each device covered four states:./gradlew :androidApp:assembleDebugand:androidApp:compileDebugKotlinAndroidpass. No tests were added, per the repository's rule for UI changes.Validation tasks: not checked
Evidence: https://evidence.siloserver.org/r/silo-android/issue-831/
Risks
The active state is now a translucent lift rather than a near-solid capsule. If someone finds it too quiet, the next step would be the iOS count badge on the Filter pill. It was left out to keep this change to colours only.
AI disclosure
🤖 Generated with Claude Code
Note
Fix
ControlPillsort and filter pills appearing active when offReplaces the opaque-control theme colors in the
ControlPillcomposable with translucent detail-action container colors,SiloOnSurfacecontent color, and aSiloOutlineborder. This stops inactive pills from looking switched on. Removes the now-unusedSiloOpaqueControlSelecteddeclaration in Color.kt. Behavioral Change: allControlPillbuttons in SortFilterControls.kt render with the new styling; any other use ofSiloOpaqueControlSelectedwould fail to compile.Macroscope summarized 8b2f770.