Skip to content

fix(web): keep Devices page labels, checkboxes and anomaly badges readable - #4845

Merged
Quick104 merged 5 commits into
mainfrom
fix/admin-devices-muted-label-contrast
Nov 21, 2026
Merged

Quick104 merged 5 commits into
mainfrom
fix/admin-devices-muted-label-contrast

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none
Other clients: N/A (the admin Devices page exists only in the web app)

On the admin Devices page, several small labels and markers are hard to read on the Cinema Dark panels and fall below WCAG AA. This affects every admin who uses the page, especially people with low vision or a dim screen.

  • The 10–11px secondary labels drew the muted text colour at 70% opacity, which comes out at about 4.1:1 against the panel (AA asks for 4.5:1). These are the stats strip labels and "Group by", the filter rail headings, and the device readout labels and the lines under them.
  • An unchecked filter checkbox's outline was 1.13:1 against the panel, so the box was close to invisible. A form control's edge needs 3:1.
  • The red anomaly badges (on the group header and in the device detail header) put plain red text on a 10% red tint: 4.15:1, and about 3.2:1 with high contrast on.
  • The device list's sticky group header is 60% opaque over a blur, so a bright device name scrolling underneath shows through behind the header's text. With a name made of block characters, the badge and totals dropped to about 2.2:1.

Approach

Each fix uses a token the app already has for that job:

  • The labels use plain text-muted-foreground, as the other admin pages' fixes did. They still read as secondary next to their values, through size, capitals and letter spacing. With high contrast on, they now get the boosted muted colour, which the /70 class never matched.
  • The checkbox outline uses border-input, which app.css defines as the form-control edge. The checked look is unchanged. With high contrast on, the checked box now keeps its own white edge, where an override used to force it grey.
  • Both anomaly badges use text-destructive-label, the status-label red app.css defines for small text on a 10% tint of its own colour. The activity page's red tags already use it.
  • The sticky group header is a solid bg-surface without the blur, like the settings device list's sticky group header. At rest its colour moves by one RGB step. Each device row gets a scroll margin (scroll-mt-24 below lg, the admin layout's rule for clearing its mobile header; lg:scroll-mt-10 on desktop) and scrolls itself to the nearest clear position on focus, so moving keyboard focus through the list doesn't leave the focused row's name behind either header. Firefox needs the explicit scroll because it doesn't move a partly visible link on focus. The list keeps at least 10rem of height, so a short screen scrolls the page instead of shrinking the list below the header.

The group totals, rail counts and other dimmed counts on this page are left to #4826, which changes those lines. The two PRs merge cleanly in either order.

Validation

  • Measured live in headless Chromium against a page harness that renders the real Devices page with seeded data, in Cinema Dark with high contrast off and on. Each colour was composited over every background behind it, and the sticky header was sampled from screen pixels with rows scrolled under it. Every changed element failed on main and passes on this branch:

    Element Before (off / high contrast) After
    Stats strip labels, "Group by" 4.12 / 6.39 7.09 / 11.48
    Filter rail headings, readout labels and lines 4.09 / 6.01 6.95 / 10.56
    Unchecked checkbox outline 1.13 / 2.71 3.21 / 3.45 (3.14 / 3.16 on a hovered row)
    Group header anomaly badge 4.15 / 3.15 5.59 / 6.90
    Device detail anomaly badge 4.15 / 3.20 5.59 / 7.00
    Sticky header badge, block-character name under it 2.24 / 2.60 5.51 / 6.79 (nothing shows through)
    Focused device row behind the sticky header after Shift+Tab (Chromium / Firefox) up to 36 / 24 of 50px 0px in both
  • Web gate: pnpm run lint, format:check, build, budget:check and make test-web all pass. No Go files change.

  • 1.0 validation: the only passed case that uses this page is Device & override auditing — Web admin #1221 C1 (device and override auditing). Only colours change, so it isn't affected.

Evidence: https://evidence.siloserver.org/r/silo-server/admin-devices-muted-label-contrast/

Risks

None identified. Only CSS classes 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.

Council review

Background review: round 1 on d738a32, round 2 on 3416343, round 3 on a8958e7

Member Round 1 Round 2 Round 3
Sol (gpt-6.2-sol, xhigh) 8/10 8/10 8/10
Opus (claude-opus-5-5, high) 8.5/10 9/10 9/10
Gemini (gemini-4-neon, xhigh) 8/10 9/10 9.5/10

Visual review: 2 rounds, final captures from this change's code

Member Round 1 Round 2
Sol better, 8/10 better, 9/10
Opus better, 8/10 better, 8/10
Gemini better, 7/10 better, 8/10

Fixed: the sticky header is now opaque instead of 95% with a blur (Opus O1, 21551e3), a scroll margin on each row keeps a focused row clear of it (Sol S1 in 3416343, moved from the list to the rows for Gemini G4 in a8958e7 so focusing the header's own controls doesn't scroll the list), the list keeps a minimum height so that row stays visible on short screens (Sol S3, 9d019f9), and the row clears the phone admin header and scrolls itself clear in Firefox (Sol S4 and S1 in Firefox; this PR merged at a8958e7 before that commit, so it's in #4889). The visual reviews found no problem in the changed elements. Follow-ups: #4850 (override rows in the device detail view), #4852 (red text in high contrast, also the anomaly count and Status value here), #4864 (Group-by selected state), #4900 (layout at phone width), #4889 (keyboard focus scroll in Firefox, which landed after this PR merged); #4831 covers the green last-seen date. Answered: plain red status text and the anomaly dot in high contrast (Sol S2, Gemini G1) are app-wide and goes to a follow-up; the dimmed counts, group totals and the override gauge's zero count and the filtered total (Opus O2, Gemini G2) belong to #4826; the red tags in the override rows (Gemini G3) go to a follow-up; the white edge on a checked box in high contrast is intended; the brighter labels and paler red in high contrast are how those tokens are meant to look. Older problems the reviews noticed on this page are tracked as follow-ups.

AI Disclosure

  • Harness: Claude Code, run inside T3 Code
  • Tool(s): Claude Code; T3 Code delegated tasks for review (Codex, Claude, Antigravity); playwright-core with headless Chromium for contrast measurement and captures
  • Model(s): claude-opus-5-5 (implementation); review by gpt-6.2-sol, claude-opus-5-5, claude-sonnet-5-5 and gemini-4-neon
  • Involvement: Fully AI-generated; a maintainer reviews it before merge
  • Adversarial review: A high-level code review (three finders and a 1.0 validation check) found no regressions. It did point to the same red-on-tint badge in the device detail header, which this PR fixes too. The plan round was skipped because each fix is a class swap to an existing token. A simplify pass changed nothing. For the council and visual reviews, see Council review above.

🤖 Generated with Claude Code

…dable

Secondary labels on the admin Devices page drew the muted colour at 70%
opacity (about 4.1:1 on the panel), unchecked filter checkboxes had a
1.13:1 outline, and the red anomaly badges put plain red text on a red
tint (4.15:1, 3.2:1 in high contrast). The sticky group header was 60%
opaque, so bright rows scrolling under it washed out its text.

Use the full muted colour for the labels, the form-control border token
for the checkbox, the status-label red for the badges, and a 95% opaque
header like the app's other blurred sticky headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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 8 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: 72136c12-0204-49b9-b601-97929ddcda69
Commits

Reviewing files that changed from the base of the PR and between c1e36dc and a8958e7.

Files selected for processing: 1

  • web/src/pages/AdminDevices.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 21, 2026
@silo-kody

silo-kody Bot commented Nov 21, 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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T03:50:35.126193Z d738a32 PR opened
🔒 Security Review ✅ Completed 2026-11-21T04:26:34.646384Z a8958e7 New commits
ℹ️ 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-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 triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 21, 2026

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (claude-opus-5-5, reviewed d738a32)

The token choices check out. text-destructive-label on bg-destructive/10 is the same pairing the play-method tags use in adminActivityPresentation.ts, which is what app.css documents the token for. border-input is the token the shared ui/checkbox.tsx already uses for its edge. All six touched components are local to this file, and every class exists in the @theme inline block. In high contrast, checked:border-foreground now wins over the base border because no !important rule targets .border-input.

O1 (nit, inline): the sticky header can be solid bg-surface without backdrop-blur.

O2 (low, follow-up, not on a diff line): OverrideGauge still renders a zero count as text-muted-foreground/50 at 11px (AdminDevices.tsx:1393). That works out to about 2.7:1 on --surface and 2.8:1 on --background. The /50 class doesn't match the high-contrast !important rule, so high contrast mode leaves the 50% alpha in place. This PR says #4826 owns the group totals, rail counts, and last-seen dates; the override count is in neither list. If it isn't deliberately dimmed as decoration, it needs the same treatment as the other labels, here or in #4826.

AI disclosure: written by claude-opus-5-5 (Claude Code) as an automated adversarial review.

Comment thread web/src/pages/AdminDevices.tsx Resolved
At 95% opacity the blur barely showed, but it still let a bright row
under the header lower the badge's contrast. A solid surface matches
the settings device list's sticky group header and removes the layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 21, 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 ❌

@Quick104

Copy link
Copy Markdown
Contributor Author

On O2 from the adversarial review: the OverrideGauge zero count (text-muted-foreground/50) is in #4826, which moves inactive gauge counts to a single 85% style. This PR leaves that line alone so the two don't conflict.

Keyboard focus moving up the device list stopped with the row's name
behind the sticky group header, now opaque. Scroll padding on the list
makes focus scrolling leave room for the header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 21, 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 ❌

@Quick104

Copy link
Copy Markdown
Contributor Author

Adversarial review (gpt-6.2-sol, reviewed d738a32). The reviewer couldn't post its own review, so its findings are recorded here, each with what happened to it. Score: 8/10.

  • S1 (low): with a device row scrolled under the sticky group header, Shift+Tab from the next row moves focus to that row while the device name stays behind the header. The overlap exists on main, but the opaque header from 21551e3 would hide it completely. Fixed in 3416343: the list's scroll container has scroll-pt-10, so scrolling to a focused row leaves room for the header. Measured with the list capped at 160px and the first row scrolled up to 80px: up to 36 of the row's 50px was covered before, and 0px after.
  • S2 (medium, already on main): with high contrast on, the fleet anomaly count (3.78:1) and the device Status value (3.50:1) keep plain text-destructive, which high contrast doesn't lighten. This affects red status text across the app, not only this page, so a separate follow-up handles it. This PR leaves those lines alone.

AI disclosure: summary written by claude-opus-5-5 (Claude Code) from the automated review's output.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (Gemini 4 Neon, reviewed d738a32)

The changed classes in web/src/pages/AdminDevices.tsx are valid in @theme inline, match web/src/app.css's documented token rules and existing bg-*/95 / text-destructive-label precedents, and introduce no variant or high-contrast !important regressions. Three contrast gaps remain on the same page (none fall on a diff hunk line):

G1 (medium) — Plain text-destructive and bg-destructive/90 still fail in high contrast inside AdminDevices.tsx

  • web/src/pages/AdminDevices.tsx:1926 (ReadoutCell, between edited lines 1917 and 1934), web/src/pages/AdminDevices.tsx:775 (Stat, above edited line 780), and web/src/pages/AdminDevices.tsx:1345 (DeviceRow anomaly dot).
  • Trigger: Open the Devices page with data-high-contrast="true" and at least one anomalous device (and select it in the list).
  • Impact / evidence: html[data-high-contrast="true"] (web/src/app.css:803-822) lightens --surface (#1c1c20 -> #333336) and --surface-hover (#232328 -> #46464a) without lightening --destructive (#ef4444, calibrated in app.css:655-657 only against --background and --card). In high contrast:
    • ReadoutCell ("Anomaly", 14px) on .surface-panel (#303033) drops from 4.55:1 to 3.51:1 (fails WCAG 2.1 AA 4.5:1).
    • Stat anomaly count (12px) on .surface-panel-subtle (#2a2a2e) drops from 4.62:1 to 3.80:1 (fails AA 4.5:1).
    • DeviceRow anomaly dot (bg-destructive/90, the row's only visual anomaly marker) drops to 2.72:1 on hover (bg-surface-hover/40, #39393c) and 2.47:1 when selected (bg-surface-hover/70, #3f3f43) (fails WCAG 1.4.11 3:1).
  • Suggested repair: Either lighten --destructive in html[data-high-contrast="true"] via a --destructive-base alias (keeping --destructive-label referenced to --destructive-base; solid buttons/badges already use --destructive-fill), which fixes all three without stretching --destructive-label past its 10%-tint contract (app.css:566); or, if keeping the fix inside AdminDevices.tsx, switch lines 775 and 1926 to text-destructive-label (6.21:1 / 8.31:1 and 6.12:1 / 7.69:1) and widen the comment in app.css:566.

G2 (medium) — Two remaining dimmed text-muted-foreground/* labels in AdminDevices.tsx fail WCAG AA

  • web/src/pages/AdminDevices.tsx:1393 (OverrideGauge, count === 0) and web/src/pages/AdminDevices.tsx:492 (list.countOfTotal muted " of N" span).
  • Trigger: Default "All devices" view with any unselected 0-override device (line 1393); any active filter narrowing the list (line 492).
  • Impact / evidence:
    • Line 1393 (text-muted-foreground/50, 11px "0"): 2.73:1 on .surface-panel (2.70:1 hovered) in normal mode and 3.87:1 (3.59:1 hovered) in high contrast — fails WCAG 2.1 AA 4.5:1 in both modes.
    • Line 492 (text-muted-foreground/60, 10.5px " of N"): 3.35:1 on .surface-panel in normal mode — fails AA 4.5:1 (and is unmounted when the list is unfiltered).
    • Uncertainty: Neither line is among the three sibling PR #4826 targets (group totals, rail counts, last-seen dates), though I did not inspect PR #4826's diff directly to confirm whether it touches them. Note also AdminDevices.tsx:1357 (recency === "<24h" && "text-success/80"), which drops to 4.13:1 hovered and 3.78:1 active in high contrast on the same last-seen <span> as line 1358.
  • Suggested repair: Raise line 1393 to text-muted-foreground (or /80 to keep hierarchy below /85: 4.92:1 normal / 7.37:1 high contrast on panel; 4.79:1 / 6.57:1 hovered) and line 492 to text-muted-foreground (or /80).

G3 (low) — Identical text-destructive on bg-destructive/10 anomaly badges remain in DeviceProfileTabs

  • web/src/components/admin/deviceOverrides.tsx:369, web/src/components/admin/deviceOverrides.tsx:753, and web/src/components/admin/deviceOverrides.tsx:407.
  • Trigger: Select a device with suspect, conflicting, or stale overrides in DeviceDetailPanel (AdminDevices.tsx:1857 is DeviceProfileTabs's only caller).
  • Impact / evidence: Both badges (lines 369 and 753) use the same text-destructive bg-destructive/10 pairing fixed in this PR: 4.13:1 normal and 3.21:1 high contrast on .surface-panel (slightly lower on line 753 where the 8% profile accent wash lightens the bar). The inline anomaly reason at line 407 (text-destructive/85) is 3.60:1 normal and 2.88:1 high contrast.
  • Suggested repair: Switch lines 369 and 753 to text-destructive-label (and drop /85 on line 407, or update alongside --destructive in G1), either here or in a follow-up PR for deviceOverrides.tsx.

AI-assisted review using Gemini 4 Neon via Antigravity in T3 Code.

@Quick104

Copy link
Copy Markdown
Contributor Author

Answers to the Gemini review (G1–G3). All three describe problems already on main; none comes from this PR's changes.

  • G1: plain text-destructive in high contrast (the fleet anomaly count, the device Status value, and the row's anomaly dot). High contrast lightens the surfaces but not --destructive. Every plain red text and indicator in the app is affected, so the fix belongs at the token level in its own PR (the same defect as Sol's S2). That follow-up is in progress, and I'll link it here once it's open.
  • G2: the OverrideGauge zero count (line 1393) and the filtered " of N" total (line 492) are both lines fix(web): keep dimmed text on the admin Devices page readable #4826 changes, so this PR leaves them alone to keep the two from conflicting. The green "last seen under 24h" date (line 1357) is [bug] Recent last-seen time on admin Devices fails contrast in high contrast on hovered and selected rows #4831.
  • G3: the "suspect" and per-override anomaly tags and the anomaly reason in deviceOverrides.tsx get their own follow-up PR, together with that file's dimmed text. That component is also used outside this page.

On a short screen the list's height cap left it shorter than its sticky
group header, so a row reached with Tab stayed out of sight behind the
header's scroll padding. Keep the list at least 10rem tall and let the
page scroll instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 21, 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 ❌

@Quick104

Copy link
Copy Markdown
Contributor Author

Adversarial review round 2 (gpt-6.2-sol, reviewed 3416343). The reviewer couldn't post its own review, so its findings are recorded here. Score: 8/10. It marks O1 and S1 resolved. The other round-1 items are unchanged and already answered above.

  • S3 (low): on a short screen (812×375), the list's height cap left it 23px tall, smaller than its 36px sticky header. A device row reached with Tab then sat entirely below the visible list, because the new 40px scroll padding left nothing to show it in. Fixed in 9d019f9: the list keeps at least 10rem (160px, or 200px at the x-large text setting), and the page scrolls instead. Tabbing onto the first device row now shows all of it at 812×375, 360×480, 390×844 and 1440×1000, at default and x-large text.

AI disclosure: summary written by claude-opus-5-5 (Claude Code) from the automated review's output.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (Gemini 4 Neon, reviewed 3416343)

Round 2 check against web/src/pages/AdminDevices.tsx and web/src/app.css:

  • O1 (bg-surface, no backdrop-blur) is resolved and matches the sticky group header precedent in web/src/components/settings/DeviceList.tsx.
  • S1 (scroll-pt-10 on the list container) resolves the Shift+Tab row overlap, and the 2.5rem (40px) offset clears the 36–37.1px header across default, large, and x-large text scales, strong text weight, narrow widths (truncate + shrink-0 prevent wrapping), and larger browser font sizes.
  • One new low-severity finding (G4) is posted inline on web/src/pages/AdminDevices.tsx:510: putting scroll-pt-10 on the scroll container causes Chromium to jump the list upward when keyboard focus lands on a sticky group header's own <button> or <Link>, because both sit inside the top 40px exclusion band. Moving the offset to scroll-mt-10 on DeviceRow's <Link> avoids that jump while keeping the same clearance on Shift+Tab.

AI-assisted review by Gemini 4 Neon via Antigravity in T3 Code.

Comment thread web/src/pages/AdminDevices.tsx Resolved
Scroll padding on the list made Chromium scroll the list when Tab
reached a stuck group header's own controls, because the header sits
inside the padded area. A scroll margin on each device row keeps the
focused row clear of the header without moving the header's controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 21, 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 ❌

@Quick104
Quick104 merged commit 34ce184 into main Nov 21, 2026
20 checks passed
@Quick104
Quick104 deleted the fix/admin-devices-muted-label-contrast branch November 21, 2026 04:35
@Quick104

Copy link
Copy Markdown
Contributor Author

Adversarial review round 3 (gpt-6.2-sol, reviewed a8958e7). The reviewer couldn't post its own review, so its findings are recorded here. Score: 8/10. It marks O1, S3 and G4 resolved. The other round-1 items are unchanged and already answered above.

  • S4 (low): at 390×844, when the page itself scrolls, a device row reached with Shift+Tab could land at y=40, under the admin mobile header, which reaches y=66. The row's 40px scroll margin applies to the page scroll as well as the list's. Fixed in f3ba7b2: below lg, rows use scroll-mt-24, the margin AdminLayout documents for clearing its mobile header; lg:scroll-mt-10 keeps the desktop value. My harness didn't reproduce the overlap, because its stand-in header lacks the real layout's banner offset, so this fix rests on the layout's documented rule rather than a before-and-after measurement.
  • S1 in Firefox (low): at 812×375, Firefox left part of a row reached with Shift+Tab under the sticky group header. Firefox doesn't scroll a partly visible link on focus, so the scroll margin never applied. Fixed in f3ba7b2: the row calls scrollIntoView({ block: "nearest" }) on focus, which honours the margin in both engines and does nothing when the row is already clear. Measured before: 26 of 50px visible in Firefox. After: 50 of 50 in Chromium and Firefox, across scroll offsets 0–80px. The short-screen check (S3), the stuck-header check (G4) and the x-large text check pass in both engines.

AI disclosure: summary written by claude-opus-5-5 (Claude Code) from the automated review's output.

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. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant