Skip to content

fix(phone): stop sort and filter pills looking switched on - #835

Merged
Quick104 merged 1 commit into
mainfrom
fix/phone-sort-filter-pill-glass-style
Nov 6, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/phone-sort-filter-pill-glass-style

Conversation

@Quick104

@Quick104 Quick104 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

ControlPill in SortFilterControls.kt now draws a translucent chip with light text and a faint outline. That matches the iOS glass control chips (controlChip in BrowseView.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 existing SiloDetailActionControl / SiloDetailActionControlActive pair, which the detail page already uses for its off and on actions. "Filter · N" and the Reset button are unchanged.

SiloOpaqueControlSelected had no other users and is removed. The other SiloOpaqueControl* colours stay, because the detail page still uses them. Android TV has its own browse controls and isn't affected.

Closes #831

Validation

  • Reproduced on the unfixed build (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:
    • Libraries → Movies → Library, untouched
    • the same grid with two filters applied
    • the same grid sorted by Title
    • For You → Watchlist, untouched
  • Before the fix, the untouched pills matched the chosen tab's light filled style. After the fix, they read as dark translucent chips. An applied filter or sort shows a visibly lighter chip.
  • ./gradlew :androidApp:assembleDebug and :androidApp:compileDebugKotlinAndroid pass. 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

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code, GitHub CLI, agent-device on SimLock pool emulators
  • Model(s): claude-opus-5-5 (wrote the code)
  • Involvement: AI-generated, verified on emulators by the agent. Not yet reviewed by a person.
  • Adversarial review: a plan round before the code. gpt-6.1-sol attacked the plan and found it held. claude-opus-5-5 cut it down: no count badge, reuse the existing 10%/30% colour pair, and one fixed border. Code review was one low-level pass by the authoring agent, with no findings, then a simplify pass that removed the unused colour. A background review by gpt-6.1-sol checked 8b2f770 and found nothing.

🤖 Generated with Claude Code

Note

Fix ControlPill sort and filter pills appearing active when off

Replaces the opaque-control theme colors in the ControlPill composable with translucent detail-action container colors, SiloOnSurface content color, and a SiloOutline border. This stops inactive pills from looking switched on. Removes the now-unused SiloOpaqueControlSelected declaration in Color.kt. Behavioral Change: all ControlPill buttons in SortFilterControls.kt render with the new styling; any other use of SiloOpaqueControlSelected would fail to compile.

Macroscope summarized 8b2f770.

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]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 6, 2026
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 88 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c3ff1041-c384-4027-978a-ae8576528ddd
Commits

Reviewing files that changed from the base of the PR and between ee178d8 and 8b2f770.

Files selected for processing: 2

  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/SortFilterControls.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/theme/Color.kt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T03:18:21.776471Z 8b2f770 PR opened
🔒 Security Review ✅ Completed 2026-11-06T03:19:28.092666Z 8b2f770 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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

silo-kody Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 6, 2026
@Quick104
Quick104 merged commit f13a265 into main Nov 6, 2026
10 checks passed
@Quick104
Quick104 deleted the fix/phone-sort-filter-pill-glass-style branch November 6, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Sort and filter pills look switched on before you change anything (Android phone, tablet)

1 participant