Repository navigation
fix(tv): word the phone setup panel like Apple TV's - #761
Conversation
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 Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The revised pairing panels change a multi-step flow in Posted via Macroscope — Visible change evidence |
Quick104
left a comment
There was a problem hiding this comment.
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.
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:
Approach
TvPairingPanel.ktand the TV strings follow Apple TV'sTVPairingReceiverViewstate by state, with "this TV" for "this Apple TV":Two differences remain, both because this TV's pairing receiver reports less than Apple TV's:
update_required, becauseDeviceLoginRepositoryfolds 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.copyDeckMatchesAppleTvcompared strings instrings.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._tcpadvert 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:lintDebugand:androidTvApp:lintVitalReleasepassed 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
strings.xml, which fix(tv): match Apple TV's sign-in states for new, declined and wrong-password #754 also edits in a different block. Whichever lands second needs a small rebase.Follow-ups
PairingReceiverreports them separately.PairingReceiver, then use Apple's two update messages.AI Disclosure
🤖 Generated with Claude Code
Note
Reword Android TV phone setup panel to match Apple TV phrasing
Reworks
ActivePairingPanelin 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.PanelChip(status chip with optional spinner/icon),PanelNote,CardTitle(centered, two-line limit), andCardNote. Removes the oldServerNameLabelcomposable.PairingFailureCode.messageRestakes a sign-in flag and picks a sign-in-specific string forIdentityMismatch.copyDeckMatchesAppleTvtest that asserted the old copy in TvPairingPanelCopyTest.kt.Macroscope summarized 4843656.