Skip to content

feat(onboarding): redesign the first-run flow on Android phone and TV - #459

Merged
Quick104 merged 2 commits into
mainfrom
t3code/modernize-android-sign-in-flow
Oct 3, 2026
Merged

Quick104 merged 2 commits into
mainfrom
t3code/modernize-android-sign-in-flow

Conversation

@Quick104

@Quick104 Quick104 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related: Silo-Server/silo-apple#586 (the same redesign on Apple)
Validation tasks: changes #332 C1–C3; changes #333 C1–C3, C5; changes #337 C1, C3, C4 (none passed yet)

The Android first-run screens (server address, sign-in, Who's watching, PIN) still use the old Aurora look, which no longer matches the rest of Silo or the redesigned Apple apps. A few behaviors also differ from Apple: picking a saved server you're still signed in to sends you to sign-in again, a one-profile household sees a one-person picker after every sign-in, and the server's branding (subtitle, accent, mark) isn't shown before sign-in.

Approach

One look for every first-run screen, on phone and TV.

  • One brand-light backdrop sits behind the first-run routes, outside the destinations, so it keeps moving while screens fade. It tints to the server's accent on sign-in and to the person's color on the PIN prompt and a pressed profile.
  • New Marquee components: shared ones in android-shared (common/ui/marquee), phone ones in androidApp/.../components/marquee, TV ones in androidTvApp/.../components/marquee. The Aurora pieces these screens used are removed. The onboarding tour and profile create/edit keep theirs, as on Apple.

Phone.

  • Server address: one field, Advanced options (protocol and port), and up to three Recent servers. The plain-HTTP confirmation and hint stay.
  • Sign-in: "Sign in" with the server's branded subtitle, a back button and a server chip. "Continue as …", provider buttons and the password form keep their rules from LoginViewModel. With two or more providers, the password form folds behind "Sign in with a password". A rejected password shakes the grouped fields.
  • Who's watching: round avatars sized to the household (2, 3 or 4 per row, ProfilePickerLayout), "Signed in as", lock and KIDS badges, and Change server, Sign out and Manage below.
  • PIN: a full-screen keypad with letters. A wrong PIN turns the dots red and clears.
  • First-admin setup, invite sign-up and invite claim use the same layout.

Android TV.

  • Setup leads with setting up from a phone, shown as three picture steps. "Enter server address" sits under "No phone nearby?" and takes focus.
  • Sign-in: server card, headline, ways in and actions on the left; QR code, code tiles and status in a card on the right. The password and network-only screens follow the same layout. The nearby-phone pairing panel is restyled in place.
  • Who's watching and the PIN prompt match Apple TV. Closing a PIN prompt returns focus to that profile. A rejected password puts focus back on the password field.
  • The view models, focus claims and pairing lifecycle are unchanged, apart from the two routing changes below.

Behavior changes.

  • A saved server that still has a session goes straight to its profiles (phone and TV).
  • After a completed sign-in, including setup from a nearby phone, a household with exactly one profile and no PIN goes straight to Home.
  • Branding is read from GET /api/v2/theme/branding (existing endpoint, new optional fields login_subtitle, accent_color, mark_url, wordmark_url). It's cached per server so screens don't flash. Asset URLs are accepted only on the server's own origin.

Deliberate differences from Apple.

  • No swipe-anywhere back on the phone. Android's system Back does it, and it's blocked while a sign-in is running.
  • TV keeps its URL shortcut chips instead of Advanced options; the TV view model has no protocol or port.
  • TV text stays at or above the app's 14sp floor. Two pieces of picture chrome (the HTTP/Secure badge and the label inside the "Tap Set up" picture) are added to the readability test's approved list.
  • A scrolling profile grid keeps avatars at the minimum size instead of going back to full size, so avatars never grow as a household grows.

Validation

  • ./gradlew test --continue: 9,343 tests, 0 failures. New tests: ProfilePickerLayoutTest (1–20 profiles on four screen sizes) and ServerBrandingTest (same-origin asset rule).
  • lintDebug and lintVitalRelease for both apps: no new issues. :androidApp:assembleDebug and :androidTvApp:assembleDebug build.
  • check-build-supply-chain.sh didn't run on this machine (no Ruby). This change touches no build or dependency files.
  • Live on emulators (phone and Android TV) against a sandbox from silo-server main, with a four-profile account (one with a PIN, one kids profile) and a one-profile account:
    • Phone: address with the plain-HTTP prompt, a rejected then accepted password, the picker, a wrong then correct PIN, the one-profile skip, picking a still-signed-in saved server from Recent (opens Who's watching), and Sign out from the picker.
    • TV, with the remote: setup, address entry, sign-in code screen, password screen (rejected then accepted, show-password), picker, wrong PIN, focus back on the profile after closing the PIN prompt, Sign out (focus lands on "Enter server address"), and the one-profile skip to Home.
  • Installed on a Pixel 11 Pro (build only; not signed in on it yet).
  • Not run: nearby-phone setup and approval end to end (needs a phone and a TV on the same LAN), browser provider and "Continue as" sign-in (the sandbox has neither provider), the invite claim and first-admin screens live (build only), and an Android tablet.

Evidence: https://evidence.siloserver.org/r/silo-android/signin-redesign/

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern. (One concern, the first-run redesign, but large: it covers setup, sign-in, profiles and PIN on phone and TV, as the Apple PR does.)

AI Disclosure

  • Harness: Claude Code in T3 Code

  • Tool(s): Claude Code

  • Model(s): claude-opus-5-5

  • Involvement: Fully AI-generated, not yet human verified

  • Adversarial review: A separate Claude Code review agent (claude-opus-5-5, feature-dev code reviewer) compared the rewritten screens with main and looked for lost behavior and new bugs. It found 13 issues, 12 fixed:

    • Profile rows were 48dp too wide on wide screens.
    • The backdrop did per-pixel color conversions each frame.
    • TalkBack couldn't reach Delete in manage mode.
    • The TV show-password toggle was gone.
    • The hidden TV picker stayed pressable during the one-profile skip.
    • The username focus and busy-disable on the phone form were lost.
    • The TV pairing panel claimed focus in waiting states, where a stray Select would cancel the phone's session.
    • The plain-HTTP hint was missing.
    • The PIN prompt wasn't modal for TalkBack.
    • Error haptics and shakes replayed when a screen came back.
    • The server chip stayed tappable during the skip.
    • The footer gap collapsed when the grid scrolled.

    One note is left open: a server mark served as SVG would fall back to the initial.

🤖 Generated with Claude Code

Note

Redesign first-run onboarding flow with shared Marquee UI on Android phone and TV

  • Replaces the Aurora-based onboarding screens (server setup, login, signup, invite claim, profile selection, pairing, PIN entry) with the new shared Marquee component set, including an animated backdrop, stage layout, fields, buttons, and profile avatars
  • Adds a new BrandingApi.getBranding v2 endpoint client plus ServerBranding model, cached per server URL in SharedPreferences, with same-origin asset URL validation and accent-color clamping; branding drives server chips and scene tinting
  • Server setup view models now resolve to a new Profiles destination when the active server already has a session, and sign-in completes via SignInHandoff to auto-open a household's single PIN-less profile without showing the picker
  • TV setup becomes a paged flow (phone-first, address entry, pairing) with animated transitions, and the phone profile picker gains measured adaptive column/size layout (ProfilePickerLayout) with unit-test coverage
  • Behavioral Change: the in-field password visibility toggle is removed (passwords are always secure fields), PIN prompts are now full-screen overlays, recents are hidden while the address field is focused, and reduced-motion settings disable all new animations

Macroscope summarized 451975c.

Port of the Apple first-run redesign (Silo-Server/silo-apple#586): one
brand-light backdrop behind server setup, sign-in, profiles and PIN on
both apps, tinted to the server's accent and to the selected person.

- Phone: address field with Advanced options and Recent servers, a
  "Sign in" screen with the server chip and branded subtitle, round
  profile avatars sized to the household, full-screen PIN keypad.
- TV: phone-first setup with three picture steps, a separate address
  screen, sign-in with the code card on the right, restyled pairing,
  picker and PIN.
- A saved server that still has a session goes straight to profiles.
- After a sign-in, a one-profile household with no PIN skips the picker.
- Branding (subtitle, accent, mark) is read from the public branding
  endpoint; asset URLs are accepted only on the server's own origin.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9d85bd37-35b7-4ebd-a4fb-83a49c306776
📥 Commits

Reviewing files that changed from the base of the PR and between 32488e8 and d2327f3.

📒 Files selected for processing (53)
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/MarqueeBackdrop.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/MarqueeProfileAvatar.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/MarqueeScene.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/MarqueeServerMark.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/MarqueeShake.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/ServerBranding.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/SignInHandoff.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/SignInServer.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/ui/marquee/ServerBrandingTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/SiloApplication.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/aurora/AuroraChrome.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/marquee/MarqueeControls.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/marquee/MarqueeFields.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/marquee/MarqueeServerChip.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/marquee/MarqueeStage.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/AppNavigation.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/InviteClaimScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/LoginScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/ServerSetupScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/ServerSetupViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/SetupScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/SignInLabels.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/SignInProviderButton.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/SignupScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/PINEntryDialog.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/PINEntryOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/ProfilePickerLayout.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/ProfileSelectionScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/ProfileSelectionViewModel.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/profiles/ProfilePickerLayoutTest.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/SiloTvApplication.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvAuroraChrome.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvPinEntryDialog.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/marquee/TvActiveServer.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/marquee/TvMarquee.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/marquee/TvMarqueeField.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/marquee/TvMarqueeSetupSteps.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvAppNavigation.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvPairingPanel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerSetupScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerSetupViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSetupScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSignupScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileSelectionScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileSelectionViewModel.kt
  • androidTvApp/src/androidMain/res/values/strings.xml
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvControlWiringCallSiteTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginScreenNetworkSignInTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/theme/TvTypographyReadabilityTest.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/BrandingApi.kt
 _________________________________________________________________
< You know what they call CodeRabbit in Paris? Royale with Debug. >
 -----------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@silo-kody

silo-kody Bot commented Oct 3, 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 marked this pull request as ready for review October 3, 2026 18:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 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-03T19:04:56.479108Z d2327f3 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d2327f3be7

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Quick104
Quick104 merged commit 844ff74 into main Oct 3, 2026
4 checks passed
@Quick104
Quick104 deleted the t3code/modernize-android-sign-in-flow branch October 3, 2026 19:13
fun resolveAsset(value: String?, serverUrl: String): String? {
val raw = value?.trim()?.takeIf { it.isNotEmpty() } ?: return null
val base = runCatching { URI(serverUrl.trimEnd('/') + "/") }.getOrNull() ?: return null
val resolved = runCatching { base.resolve(raw.removePrefix("/")) }.getOrNull() ?: return null

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug medium

Incorrect URI resolution strips the leading slash from site-relative branding paths, causing a server configured as https://media.example.com/silo to resolve /branding/mark.png to /silo/branding/mark.png instead of /branding/mark.png. Preserve the leading slash so branded marks load on subpath deployments, and handle protocol-relative inputs separately if they must remain local paths.

val assetPath = if (raw.startsWith("//")) raw.removePrefix("/") else raw
val resolved = runCatching { base.resolve(assetPath) }.getOrNull() ?: return null
Prompt for LLM

File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/ServerBranding.kt:

Line 43:

Incorrect URI resolution strips the leading slash from site-relative branding paths, causing a server configured as https://media.example.com/silo to resolve /branding/mark.png to /silo/branding/mark.png instead of /branding/mark.png. Preserve the leading slash so branded marks load on subpath deployments, and handle protocol-relative inputs separately if they must remain local paths.

Suggested Code:

val assetPath = if (raw.startsWith("//")) raw.removePrefix("/") else raw
val resolved = runCatching { base.resolve(assetPath) }.getOrNull() ?: return null

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

// Cancelled with the screen, so a late answer can't retint the next one.
val fresh = loader.load(serverUrl) ?: return@LaunchedEffect
server.branding = fresh
if (tintsBackdrop) MarqueeScene.showServer(fresh)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Kody Rules critical

Race condition identified in the shared MarqueeScene update: loader.load can return after cancellation, and the effect captures tintsBackdrop without using it as an effect key, allowing an obsolete screen to overwrite a replacement screen's tint. Key the effect on its changing inputs, check cancellation after loading, and revalidate current backdrop authority and the scene ownership generation before calling MarqueeScene.showServer(fresh).

Kody rule violation: Revalidate asynchronous ownership before publication, launch, and cleanup

Prompt for LLM

File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/marquee/SignInServer.kt:

Line 48:

Race condition identified in the shared MarqueeScene update: loader.load can return after cancellation, and the effect captures tintsBackdrop without using it as an effect key, allowing an obsolete screen to overwrite a replacement screen's tint. Key the effect on its changing inputs, check cancellation after loading, and revalidate current backdrop authority and the scene ownership generation before calling MarqueeScene.showServer(fresh).

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

autoCorrectEnabled = false,
showKeyboardOnFocus = false,
),
keyboardActions = KeyboardActions(onAny = { onImeAction?.invoke() }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Kody Rules high

Duplicate sign-in submission can occur because the IME callback invokes onImeAction without checking enabled, allowing an outstanding IME event to submit another attempt after the field is disabled. Guard the callback with enabled and bind enabled to the authoritative sign-in busy state at the call site; also check androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/LoginScreen.kt:318-318 and androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/marquee/MarqueeFields.kt:149-149.

Kody rule violation: Use one stable busy state for every sign-in entry point

Prompt for LLM

File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/marquee/TvMarqueeField.kt:

Line 104:

Duplicate sign-in submission can occur because the IME callback invokes onImeAction without checking enabled, allowing an outstanding IME event to submit another attempt after the field is disabled. Guard the callback with enabled and bind enabled to the authoritative sign-in busy state at the call site; also check androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/auth/LoginScreen.kt:318-318 and androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/marquee/MarqueeFields.kt:149-149.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

autoCorrectEnabled = false,
showKeyboardOnFocus = false,
),
keyboardActions = KeyboardActions(onAny = { onImeAction?.invoke() }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug medium

IME focus navigation fails because the unconditional onAny handler consumes Next without moving focus when onImeAction is null, including the Username and Email fields in TvSetupScreen (androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSetupScreen.kt:97-104) and TvSignupScreen (androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSignupScreen.kt:84-90). Preserve KeyboardActions.Default when no callback is supplied so the keyboard's Next action advances through these forms.

Prompt for LLM

File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/marquee/TvMarqueeField.kt:

Line 104:

IME focus navigation fails because the unconditional onAny handler consumes Next without moving focus when onImeAction is null, including the Username and Email fields in TvSetupScreen (androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSetupScreen.kt:97-104) and TvSignupScreen (androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSignupScreen.kt:84-90). Preserve KeyboardActions.Default when no callback is supplied so the keyboard's Next action advances through these forms.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

onClick = onLoginClick,
isLoading = state.isLoading,
focusRequester = signInFocus,
enabled = !state.signingIn,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Kody Rules medium

Focus loss and an invalid D-pad destination occur when a password attempt disables the waiting Sign in button while, without a network alternative, the secondary actions still point upward to it through aboveSecondary. Keep the password Sign in button focusable during its own pending request and reject repeat submissions through the busy guard, but continue disabling it during network sign-in, when Continue as is the waiting action.

Kody rule violation: Keep TV sign-in alternatives reachable and prioritize recovery focus

Prompt for LLM

File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginScreen.kt:

Line 932:

Focus loss and an invalid D-pad destination occur when a password attempt disables the waiting Sign in button while, without a network alternative, the secondary actions still point upward to it through aboveSecondary. Keep the password Sign in button focusable during its own pending request and reject repeat submissions through the busy guard, but continue disabling it during network sign-in, when Continue as is the waiting action.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +921 to +926
Row(
Modifier
.fillMaxWidth()
.padding(top = 20.dp),
horizontalArrangement = Arrangement.spacedBy(11.dp),
) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug medium

Button overflow truncates the later phone/server actions because the password screen places up to four unweighted buttons in TvMarqueeScreen's fixed 450dp copy column, exceeding its width with labels, 40dp per-button padding, and gaps. Keep Sign in on its own row and wrap or split the secondary actions into additional rows.

Prompt for LLM

File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginScreen.kt:

Line 921 to 926:

Button overflow truncates the later phone/server actions because the password screen places up to four unweighted buttons in TvMarqueeScreen's fixed 450dp copy column, exceeding its width with labels, 40dp per-button padding, and gaps. Keep Sign in on its own row and wrap or split the secondary actions into additional rows.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant