Repository navigation
fix(tv): match Apple TV's sign-in states for new, declined and wrong-password - #754
Conversation
…password A code that replaced an expired one now says "New code. Waiting for approval." for as long as it shows, as Apple TV does, instead of for five seconds. A declined sign-in says "Sign-in was declined." (the decline may have come from a browser), replaces the scan-the-code text that pointed at a code no longer on screen with "Show a new code to try again.", and wraps its three buttons instead of cutting "Change server" off. A wrong password says "Incorrect username or password." 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 12 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. |
When the declined screen wraps Change server onto its own line and a network sign-in is offered, Up jumped past the first row of actions to "Continue as …". Change server now keeps its Up and Left overrides only while it shares the first row. 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:
|
Problem
Related issue: #743 (this covers the sign-in code and password states; the server address screen, the phone setup panel, and sign-out follow in their own pull requests), Silo-Server/silo-server#1192
Validation tasks: changes #337 C1 (renewed code and decline wording), C3 (wrong-password text, recovery after a decline), and C4 (the declined screen's buttons); none has been run yet.
Three states on the Android TV sign-in screen don't match Apple TV:
deniedeither way.Approach
renewedflag, which stays set until someone asks for a new code. That's the same rule as Apple TV'scodeWasRenewed. The five-second timer is gone.Validation
Reproduced live on an Android TV emulator (Android 14) against a dev server,
mainat 238134a before and this branch after, on the same screens:/activatepage. Before: "Chan…", the stale scan text, "declined on your phone". After: all three labels in full ("Change server" on a second line), "Show a new code to try again.", and "Sign-in was declined." Down from Show a new code and Right from Sign in with a password both reach Change server, and Left goes back.:androidTvApp:testDebugUnitTest,:androidTvApp:lintDebugand:androidTvApp:lintVitalReleasepassed with no new findings. No new tests, per AGENTS.md for UI and copy changes.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/issue-743-signin/
Android TV only. The phone app's sign-in screen isn't touched.
Risks
TvLoginViewModel.kt,TvLoginScreen.ktand the TVstrings.xml, which fix(tv): name the TV by its device name when it asks to sign in #746, feat(tv): tell nearby phones a TV is signing in, in release builds too #747 and the other [bug] Android TV sign-in and setup screens don't match Apple TV #743 pull requests also edit in different places. Whichever lands later needs a small rebase.Follow-ups
AI Disclosure
🤖 Generated with Claude Code
Note
Match Apple TV sign-in states for new code, declined, and wrong-password on TV login
Denied, in TvLoginScreen.ktShowingCodestates toNewCodeand other non-opened states toWaitingin theTvLoginViewModelstate mapper; removes the five-second coroutine-basedNewCodeannouncementFlowRowso controls can wrap; whenChange serveris on a later row, its left and up focus overrides are skippedNewCodenow persists for as long as the renewed state is mapped instead of reverting toWaitingafter five secondsMacroscope summarized 7140d90.