Skip to content

fix(tv): word the phone setup panel like Apple TV's - #761

Merged
Quick104 merged 1 commit into
mainfrom
fix/issue-743-tv-pairing-panel
Oct 31, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/issue-743-tv-pairing-panel

Conversation

@Quick104

@Quick104 Quick104 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #743 (this covers the phone setup panel; #754 covers the sign-in states, #758 the server address screen, and sign-out follows), Silo-Server/silo-server#1192
Validation tasks: changes #337 C2 (what the TV shows while a phone sets it up); not run yet.

While a nearby phone sets up or signs in the Android TV, the TV shows a panel that doesn't match Apple TV's:

  • Step chips ("Step 01 — Connect", "Almost there", "All set") instead of a chip that says what's happening.
  • "Phone or tablet connected" is the headline rather than the chip.
  • The consent step has no "Only allow it if you started setup on your own phone or tablet." note, and the card doesn't say a code will appear after you allow it.
  • "Don't allow" instead of "Don't Allow".
  • Failure reasons are worded differently.

Approach

TvPairingPanel.kt and the TV strings follow Apple TV's TVPairingReceiverView state by state, with "this TV" for "this Apple TV":

  • Connected: chip "Phone or tablet connected", headline "Choose servers on your phone" (or "Continue on your phone" when signing in). The card says "On your phone" and what to do there.
  • Consent: chip "A nearby phone is setting up this TV" (or "…signing in this TV"), "Allow this setup?", Allow / Don't Allow, then the "Only allow it if…" note. The card shows the server name and "After you allow it, a code appears here to compare with your phone." The unencrypted-address warning stays.
  • Code: chip "Waiting for your phone" (or "Your phone is approving"), headline "Confirm on your phone", the code and the server name in the card.
  • Signed in, You're all set, Can't reach: Apple's headlines and cards ("Signed in", "No answer").
  • Failed: "Setup didn't finish" with Apple's reason text for each failure code except update-required (below), including the sign-in variant for a server that isn't this TV's, and "Not finished" in the card.

Two differences remain, both because this TV's pairing receiver reports less than Apple TV's:

  • Apple TV shows "Checking the address" and then "Getting a code" as two steps. This TV's receiver reports both as one state, which now reads "Getting a code" / "Signing in to ".
  • For an update-required failure, Apple TV says which side needs the update: "This server needs to be updated before this version of Silo can use it." or "Update Silo to keep using this server." This TV's receiver only gets update_required, because DeviceLoginRepository folds a v1-only server, 410 and 426 into one reason. So the TV keeps its existing " or this app needs an update before this TV can sign in." rather than guess.

Both need changes in PairingReceiver (and, for the second, the shared device-login error kinds), which other open pairing work is changing.

TvPairingPanelCopyTest.copyDeckMatchesAppleTv compared strings in strings.xml, which the repository's testing guidance rules out. It's deleted. The match-words test in the same file stays.

Validation

Checked live on an Android TV emulator (Android 14) set up from a signed-in Android phone emulator on the same Mac, against a dev server. Discovery between the two emulators was injected: the TV's _silopair._tcp advert was relayed onto the Mac and re-announced into the phone emulator. Before (main) and after (this branch), the steps were: Set up on the phone, Continue with the server, Allow on the TV, approve on the phone. The connected, consent, getting-a-code and code panels were captured on both builds; both signed in and moved on to profiles.

The failure panel wasn't reached: declining the code on the phone returns the TV to setup on both builds. Its new text is checked against Apple's in the source only.

:androidTvApp:testDebugUnitTest, :androidTvApp:lintDebug and :androidTvApp:lintVitalRelease passed with no new findings.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/issue-743-pairing/

Android TV only. The phone's side of the flow isn't touched.

Risks

Follow-ups

  • Split "Checking the address" from "Getting a code" once PairingReceiver reports them separately.
  • Carry the server-versus-app update reason from device sign-in through PairingReceiver, then use Apple's two update messages.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; agent-device and adb on temporary Android TV and phone emulators, with a small mDNS relay and injector for discovery between them
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted: the agent wrote the change and ran the emulator pairing checks
  • Adversarial review: the plan round was skipped because the change copies Apple TV's existing wording and layout. A background adversarial review by gpt-6.1-sol of 4843656 found one P3 gap: the update-required failure still uses this app's own text rather than Apple's update guidance (unchanged from main). It is deferred and listed above.

🤖 Generated with Claude Code

Note

Reword Android TV phone setup panel to match Apple TV phrasing

Reworks ActivePairingPanel in TvPairingPanel.kt so each pairing state shows its own chip, title, details, actions, and card content. Connected and consent states now show phone-related card content; unreachable and failed states have distinct error cards.

  • Adds small composables: PanelChip (status chip with optional spinner/icon), PanelNote, CardTitle (centered, two-line limit), and CardNote. Removes the old ServerNameLabel composable.
  • PairingFailureCode.messageRes takes a sign-in flag and picks a sign-in-specific string for IdentityMismatch.
  • Updates strings in strings.xml and removes the copyDeckMatchesAppleTv test that asserted the old copy in TvPairingPanelCopyTest.kt.
  • Behavioral Change: consent deny button uses Glass style, unreachable action renders a Plain cancel button, and the consent panel shows a new note.

Macroscope summarized 4843656.

The Android TV panel shown while a phone sets up or signs in the TV used
step chips ("Step 01 — Connect"), headlined "Phone or tablet connected",
said "Don't allow", and worded failures its own way. It now follows Apple
TV's receiver panel state by state: a chip that says what is happening,
Apple's headlines and notes ("Only allow it if you started setup on your
own phone or tablet.", "After you allow it, a code appears here to compare
with your phone."), "Don't Allow", the card titles beside each state, and
Apple's failure text, with "this TV" in place of "this Apple TV".

Part of #743

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Oct 31, 2026
@silo-kody

silo-kody Bot commented Oct 31, 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 31, 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 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 130 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: 3f074a08-a562-492a-908c-821d695d997c
Commits

Reviewing files that changed from the base of the PR and between 76dee90 and 4843656.

Files selected for processing: 3
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvPairingPanel.kt
  • androidTvApp/src/androidMain/res/values/strings.xml
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvPairingPanelCopyTest.kt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-10-31T00:57:56.963911Z 4843656 PR opened
🔒 Security Review ✅ Completed 2026-10-31T00:58:20.220587Z 4843656 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.

@macroscopeapp

macroscopeapp Bot commented Oct 31, 2026

Copy link
Copy Markdown

The revised pairing panels change a multi-step flow in androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvPairingPanel.kt. The description lists before-and-after panel captures, but not the required recording of the flow. Please add a recording to the evidence page; it should show Android TV. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@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 (gpt-6.1-sol, reviewed 4843656)

One low-severity gap in the claimed failure-copy parity. This is a pre-existing omission, not a new behavioral regression.

AI disclosure: model gpt-6.1-sol; harness Codex in T3 Code; AI-generated review.

@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 Oct 31, 2026
@Quick104
Quick104 merged commit 588a62b into main Oct 31, 2026
8 of 10 checks passed
@Quick104
Quick104 deleted the fix/issue-743-tv-pairing-panel branch October 31, 2026 19:40
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/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant