Skip to content

fix(web): make the badge position choices visible in the Adjust popover - #5608

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/4915-badge-position-contrast
Nov 30, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/4915-badge-position-contrast

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #4915
Related issue: N/A
Validation tasks: none

Other clients: N/A (web-only settings popover; Apple, Android and Roku draw their own badge settings)

In a badge's Adjust popover, the Position diagram drew the positions you can pick as faint grey pills on a dark panel: 1.51:1, or 1.58:1 with high contrast. Controls need 3:1 (WCAG 1.4.11), so the choices were hard to see until you hovered or picked one. The dashed circle marking the reserved top-right corner was just as faint (2.06:1).

Unselected positions and the reserved corner are now outlined in --input, the theme's control-edge token: 3.24:1 by default and 4.55:1 with high contrast. The selected position is still the only filled one.

Approach

--input already has to hold 3:1 against the popover and card surfaces, and highContrastContrast.test.ts checks that with and without high contrast, so no new colour is needed. The panel sits between those two surfaces.

The markers are outlines rather than --input fills because of the slate accent preset (#64748b). It is 1.12:1 against an --input fill, so a grey fill would make every position look selected. Hovering brightens the outline to --muted-foreground and leaves the marker unfilled, for the same reason.

Validation

  • Local build of this branch with the production web bundle, checked in headless Chromium at 1440px and 390px. Steps: Settings > Navigation & Cards > Badges > Ratings & Certifications, turn on IMDb Rating, then Adjust. Contrast was measured from the computed colours.

    Before After
    Unselected position vs panel 1.51:1 3.24:1
    Same, high contrast 1.58:1 4.55:1
    Reserved corner vs panel 2.06:1 3.24:1 (4.55:1 high contrast)
    Selected vs unselected 9.42:1 4.38:1 (3.12:1 high contrast)

    With the slate accent, the selected position is the only filled marker, including while you hover another one.

  • Clicking a position still selects it, and the choice is still there after a reload.

  • Web lint, format check, typecheck (tsconfig.app.json), bundle budget and make test-web: pass.

  • No test added: this is a styling change, and the token contrast it relies on is already tested.

  • Silo has one theme, Midnight Cinema, which is dark, so no light theme was checked.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5608/

Surface and build: web, Settings > Navigation & Cards > Badges > Adjust, on a local build of this branch, desktop and phone width, default and high contrast, default and slate accent.

Risks

None identified. Only class names in one popover change.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code (via T3 Code); Codex CLI for code review
  • Tool(s): Claude Code; Codex CLI; Playwright (headless Chromium) for captures and contrast measurement
  • Model(s): claude-opus-5-5; gpt-6.2-sol (code review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Two models reviewed the diff independently (gpt-6.2-sol and claude-opus-5-5) for correctness, standards and the issue's requirements. Both found that filling a marker in --input on hover made it look the same as the selected marker under the slate accent. The hover now brightens the outline instead, and both reviewers found nothing in the follow-up change. A second finding said a code comment was wrong about which markers are filled; that hover change makes the comment true.

The Position diagram drew the positions you can pick as faint grey fills,
1.5:1 against the panel. Unselected positions and the reserved top-right
corner are now outlined in --input, the theme's control edge (3.2:1, 4.6:1
with high contrast). Only the selected position is filled, so it stays
distinct with any admin accent, including the slate preset that a grey fill
would match.

Closes Silo-Server#4915
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

This organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

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: 14562ffb-7da9-4422-974b-bfbd2be03b61
Commits

Reviewing files that changed from the base of the PR and between 5d0006f and 0064c68.

Files selected for processing: 1

  • web/src/pages/settings/CardOverlaySettings.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 29, 2026
@silo-kody

silo-kody Bot commented Nov 29, 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 29, 2026
@Quick104
Quick104 merged commit 8386af2 into Silo-Server:main Nov 30, 2026
20 checks passed
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] Badge position choices are nearly invisible in the Adjust popover

2 participants