Skip to content

fix(web): show HDR10+ on the combined Resolution + HDR badge - #3113

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
blurbery:fix/web-hdr10-plus-combined-badge
Oct 28, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
blurbery:fix/web-hdr10-plus-combined-badge

Conversation

@blurbery

@blurbery blurbery commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1122
Related issue: Silo-Server/silo-apple#261, Silo-Server/silo-android#699
Validation tasks: changes #1144 C1 (minor: filmography badge label with the optional combined badge enabled; criterion unaffected); #1252 C1 not yet run

With the optional "Resolution + HDR (combined)" poster badge turned on, HDR10+ titles read "4K HDR" on home rows, search results and library grids. The detail page and the standalone HDR badge already say HDR10+. This change makes the combined badge read "4K HDR10+".

DrHurt confirmed in #1122 on 24 October that HDR10+ and Atmos now show correctly on the web and in Jellyfin apps, and called this the last missing detail before closing the issue. #2308 made the scanner detect HDR10+ and gave the standalone HDR badge its "HDR10+" label, but missed the combined badge. #2309 was the Atmos half.

The server already sends HDR10+ or DV HDR10+ as the card's overlay hdr value. The web's compactHdrSuffix turned every Dolby Vision value into "DV" and everything else into "HDR", so the plus was dropped.

Approach

  • An HDR10+ file now reads "4K HDR10+", as text with no mark, the same way the standalone badge shows HDR10+ and HLG.
  • Dolby Vision files stay "4K DV" with the DV mark, including files that also carry HDR10+. DrHurt suggested "4K DV HDR10+" for those, but badges in the two top corners share the poster's width, so a label that long would truncate or crowd a badge in the opposite corner. Dolby Vision is the better of the two formats, and the detail page and standalone HDR badge still show "DV HDR10+".
  • HDR10, HLG and plain HDR still read "4K HDR".
  • "4K HDR10+" is about as wide as the "DV HDR10" badge the default standalone HDR badge already puts in that corner, so it fits where today's default badges fit.
  • The badge's settings description gains a "4K HDR10+" example.

Only the web changes here. The Apple and Android apps each carry their own copy of compactHdrSuffix with the same rule: Silo-Server/silo-apple#261 (DrHurt's) asks for HDR10+ labels on Apple cards, and Silo-Server/silo-android#699 covers Android. jellycompat isn't affected.

Validation

  • Web test: compactHdrSuffix keeps HDR10+, keeps a DV + HDR10+ file at DV, and leaves HDR10 at HDR. It fails without the change and passes with it.
  • Local on bc44dddce: vitest run on the media format, card overlay and overlay settings tests passes (3 files, 37 tests). tsc -p tsconfig.app.json --noEmit, ESLint and Prettier on the changed files pass.
  • Checks on bc44dddce: 12 successful, 2 neutral, 6 skipped, 0 failing.

Benchmarks. Not applicable. This changes a label, with no new queries or work.

Evidence

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

Surface and build: web app Home, Recently Added Movies, at 1280 px and 390 px wide, with the combined badge top-left and the audio badge top-right. Before is upstream main at 8b84639ed, after is this branch at bc44dddce, both run locally against the same server and library: three generated 2160p clips that the scanner detected as HDR10+, HDR10 and Dolby Vision 8.1 + HDR10+.

Risks

People who turned on the combined badge see a slightly wider label on HDR10+ posters. "1080p HDR10+" is the longest label it can now produce and the one most likely to truncate next to an opposite-corner badge on a narrow poster, but HDR10+ below 4K is rare.

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 says there is none.

AI Disclosure

  • Harness: Claude Code (Claude desktop app)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted. I directed the task and designed the work.
  • Adversarial review: claude-opus-5-5 at high effort in T3 Code reviewed bc44dddce; no code defects found. The review identified the validation-task correction above.
  • Review and PR-description updates: gpt-6.1-sol in T3 Code using the Codex provider. Tools: GitHub CLI.

Note

Fix compactHdrSuffix to show HDR10+ on the combined Resolution + HDR badge

  • compactHdrSuffix in mediaFormat.ts now returns HDR10+ for values containing HDR10+, instead of collapsing them to HDR
  • Dolby Vision still wins: values with both DV and HDR10+ show as DV
  • Adds tests in mediaFormat.test.ts for HDR10+, DV+HDR10+, and HDR10
  • Updates the resolution_hdr overlay description in tech.ts with a 4K HDR10+ example
  • Risk: badges that previously showed HDR will now show HDR10+ for HDR10+ content; check other compactHdrSuffix consumers for display width

Macroscope summarized bc44ddd.

The combined poster badge collapsed every non Dolby Vision range to
"HDR", so HDR10+ files read "4K HDR". It now reads "4K HDR10+". Dolby
Vision files, HDR10+ hybrids included, stay "4K DV" to keep the badge
short next to one in the opposite corner.
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 26, 2026
@silo-kody

silo-kody Bot commented Oct 26, 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 ❌

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
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: e3e89110-1ac1-4e60-843d-69183ea9b958
Commits

Reviewing files that changed from the base of the PR and between 8b84639 and bc44ddd.

Files selected for processing: 3
  • web/src/lib/mediaFormat.test.ts
  • web/src/lib/mediaFormat.ts
  • web/src/lib/overlays/registry/tech.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The web media-format helper now preserves the HDR10+ suffix while keeping DV as the higher-precedence match. Tests cover HDR10+, DV HDR10+, and HDR10. The resolution/HDR overlay description adds a 4K HDR10+ example.

Changes: Web HDR suffix handling

Layer / File(s) Summary
Suffix mapping and examples
web/src/lib/mediaFormat.ts, web/src/lib/mediaFormat.test.ts, web/src/lib/overlays/registry/tech.ts
compactHdrSuffix now returns HDR10+ for HDR10+ values after checking for DV. Tests cover the three suffix results. The resolution/HDR overlay description adds a 4K HDR10+ example.

Priority: Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related issues

  • Silo-Server/silo-android issue 699: It describes the same combined resolution and HDR badge behavior for HDR10+ titles, but tracks the separate Android implementation.

Suggested labels: bug, javascript, impact: polish, evidence-required

Suggested reviewers: quick104

Merge Risk: Minimal · up to bc44d

The web badge now distinguishes HDR10+ correctly, with no actionable merge risk identified.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Linked Issues check Warning [#1122] The PR implements the combined web badge requirement. compactHdrSuffix returns HDR10+, preserves DV precedence, and has automated tests. The open issue also reports missing file names an… Implement and test the web file-name display and media-information tab requirements from #1122, or split those requirements into a separate linked implementation and do not claim that this PR closes #1122.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: showing HDR10+ on the combined Resolution + HDR badge.
Out of Scope Changes check Passed All changes support [#1122]'s combined HDR10+ badge objective. The formatter change implements the label, the test verifies HDR10+, DV precedence, and HDR10 behavior, and the settings description docu…
Description check Passed The pull request description directly explains the HDR10+ combined badge change, its expected behavior, tests, validation, risks, and scope. It matches the changeset.
Full details: Out of Scope Changes check

Explanation

All changes support [#1122]'s combined HDR10+ badge objective. The formatter change implements the label, the test verifies HDR10+, DV precedence, and HDR10 behavior, and the settings description documents the new example. No unrelated changes are shown.

Full details: Linked Issues check

Explanation

[#1122] The PR implements the combined web badge requirement. compactHdrSuffix returns HDR10+, preserves DV precedence, and has automated tests. The open issue also reports missing file names and a media-information tab. The whole-PR diff changes only the HDR formatter, its tests, and the overlay description. It provides no implementation or automated tests for those two requirements. The current PR objectives also state that those areas are not addressed.

Resolution

Implement and test the web file-name display and media-information tab requirements from #1122, or split those requirements into a separate linked implementation and do not claim that this PR closes #1122.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@macroscopeapp

macroscopeapp Bot commented Oct 26, 2026

Copy link
Copy Markdown

The combined Resolution + HDR poster badge changes from HDR to HDR10+ for HDR10+ titles, but the Evidence section contains no captures yet. Please add before-and-after captures of the same poster row with the combined badge enabled for desktop and phone-width web, and identify the surface and build or commit for each. (web/src/lib/mediaFormat.ts)

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Oct 26, 2026
@coderabbitai coderabbitai Bot added the evidence-required Needs before-and-after evidence before the Evidence check passes label Oct 26, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 26, 2026

Copy link
Copy Markdown

The passed Web cases #1144 C1–C5 open person pages whose filmography renders through ItemGrid → ItemCard → CardOverlays; when resolution_hdr is enabled, HDR10+ badges change from “4K HDR” to “4K HDR10+”. The task does not record whether that optional preference was enabled, so re-check these cases after merge for the visible label.

Suggested Validation tasks: line: Validation tasks: changes #1144 C1–C5

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed bc44dddce45981682e5755879582ae79aafa6522.

Low — The PR description omits passed validation case #1144 C1. Its person-page filmography renders through ItemGrid → ItemCard → CardOverlays, so enabling the combined badge changes HDR10+ poster labels there. The validation record does not say whether that preference was enabled. I am correcting the Validation tasks: line to record this minor change; the case's listing and navigation criterion is unaffected. #1252 C1 has not been run.

No code defects found.

AI disclosure: gpt-6.1-sol in T3 Code using the Codex provider. Independent review: claude-opus-5-5 in T3 Code; tools: GitHub CLI.

@Quick104

Copy link
Copy Markdown
Contributor

Reviewed bc44dddce45981682e5755879582ae79aafa6522 against merge base 8b84639ed, and checked current main at f133b241f.

Fit: 10/10 · Readiness: 9/10 — ready. This fixes an existing badge in its shared formatter, with no new setting or API surface. No code defects remain. I corrected the PR description's validation-task line, check tally, and review disclosure.

Verification: All 37 focused tests across media formatting, card overlays, and overlay settings pass. The new compactHdrSuffix test fails on the base because it receives HDR instead of HDR10+, then passes on this head. TypeScript, ESLint, and Prettier pass. Checks currently show 12 successful, 2 neutral, 6 skipped, and 0 failing.

Validated features: #1144 C1 has a minor visible change when a filmography poster represents a non-DV HDR10+ title and the optional combined badge is enabled. Its listing/navigation criterion is unaffected; re-check that badge combination after merge. C2–C5's photo, search, metadata, and access criteria are unchanged, so the bot's blanket C1–C5 mapping is too broad. #1252 C1 remains not yet run. Board-wide passed-case coverage is incomplete: the helper returns an empty passed set despite #1144's recorded passes, and its PR command fails on closingIssuesReferences. This assessment uses the linked issue records and source traces.

Other feedback: The missing-evidence comment predates the evidence link now in the body. The issue discussion narrowed #1122 to the remaining poster badge, supporting its closing link. Keeping DV priority for hybrid files is the documented choice; these cards continue to say 4K DV. Apple #261 and Android #699 track their client copies. Jellyfin and native API contracts need no change. The manual's /docs/branding poster-badge guidance remains accurate; searches of the manual, release definition, feature data, and open docs work found no required update.

Review method: Codex at xhigh effort, with three finders, a validation check, and a final sweep at high effort; one independent claude-opus-5-5 review at high effort found no code defects and confirmed the metadata correction. Verification here used source and tests. The visual captures are the author's; this run performed no live browser or device validation.

AI disclosure: gpt-6.1-sol in T3 Code using the Codex provider. Independent review: claude-opus-5-5 in T3 Code; tools: GitHub CLI.

@Quick104
Quick104 merged commit 32ea49e into Silo-Server:main Oct 28, 2026
21 checks passed
@blurbery
blurbery deleted the fix/web-hdr10-plus-combined-badge branch November 6, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code 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] Web UI: HDR10+ & Atmos labels missing & no file name or info shown so can’t even use that to tell “versions” apart.

2 participants