Skip to content

Refine first-run auth flow and pairing timing - #87

Merged
Quick104 merged 3 commits into
mainfrom
codex/redesign-signin-ui
Jul 11, 2026
Merged

Quick104 merged 3 commits into
mainfrom
codex/redesign-signin-ui

Conversation

@Quick104

@Quick104 Quick104 commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Rework the first-run Aurora styling to use a darker monochrome palette with simplified signal-glow visuals
  • Add a visible Server / Account / Profile journey indicator and update the login/setup screens to match the new flow
  • Recheck companion pairing eligibility when auth state changes so already-discovered TVs surface after sign-in completes

Testing

  • Not run (not requested)

Summary by CodeRabbit

  • New Features

    • Added step-by-step progress indicators throughout server setup, sign-in, signup, and profile selection.
    • Added clearer server connection guidance, HTTPS messaging, and improved setup actions.
    • Added tvOS QR sign-in recovery with a “Try again” option.
    • Added copy confirmation for server setup addresses.
  • Improvements

    • Refreshed Aurora/Silo visual styling, colors, gradients, controls, and input fields.
    • Updated authentication and onboarding language for greater clarity.
    • Improved accessibility labels, focus behavior, loading states, and reduced-motion support.
  • Bug Fixes

    • Companion pairing now refreshes correctly after authentication completes.

@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 04a2972d-5905-4eb9-89f5-70e0167838a4

📥 Commits

Reviewing files that changed from the base of the PR and between 169e491 and 55994b9.

📒 Files selected for processing (14)
  • iosApp/iosApp/ContentView.swift
  • iosApp/iosApp/DesignSystem/Aurora/AuroraBackdrop.swift
  • iosApp/iosApp/DesignSystem/Aurora/AuroraStyle.swift
  • iosApp/iosApp/DesignSystem/Aurora/AuroraTextField.swift
  • iosApp/iosApp/Pairing/Companion/CompanionPairingCardModifier.swift
  • iosApp/iosApp/Screens/Auth/LoginView.swift
  • iosApp/iosApp/Screens/Auth/ServerNeedsSetupView.swift
  • iosApp/iosApp/Screens/Auth/ServerSetupView.swift
  • iosApp/iosApp/Screens/Auth/SignupView.swift
  • iosApp/iosApp/Screens/Auth/TVLoginView.swift
  • iosApp/iosApp/Screens/Auth/TVServerSetupView.swift
  • iosApp/iosApp/Screens/Profiles/ProfileSelectionView.swift
  • iosApp/iosApp/Theme/Colors.swift
  • iosApp/iosApp/tvOS/Aurora/AuroraInputField.swift

📝 Walkthrough

Walkthrough

The PR refactors Aurora visuals onto Continuum styling, adds journey progress UI, refreshes iOS and tvOS onboarding screens, improves authentication and setup interactions, and makes companion pairing re-evaluate discovered devices when authentication state changes.

Changes

Continuum onboarding experience

Layer / File(s) Summary
Aurora visual foundation
iosApp/iosApp/DesignSystem/Aurora/AuroraBackdrop.swift, iosApp/iosApp/DesignSystem/Aurora/AuroraStyle.swift, iosApp/iosApp/Theme/Colors.swift
Aurora backdrop rendering, palette mappings, journey progress, glass panels, buttons, controls, and segments now use updated Continuum styling.
Text field and input styling
iosApp/iosApp/DesignSystem/Aurora/AuroraTextField.swift, iosApp/iosApp/tvOS/Aurora/AuroraInputField.swift
Text fields update error accessibility, fills, borders, shadows, and focused-state presentation.
iOS authentication onboarding
iosApp/iosApp/Screens/Auth/LoginView.swift, iosApp/iosApp/Screens/Auth/ServerSetupView.swift, iosApp/iosApp/Screens/Auth/ServerNeedsSetupView.swift, iosApp/iosApp/Screens/Auth/SignupView.swift
iOS and macOS authentication screens add journey progress, revised copy, server setup guidance, copy/open actions, and signup password guidance.
tvOS authentication and setup
iosApp/iosApp/Screens/Auth/TVLoginView.swift, iosApp/iosApp/Screens/Auth/TVServerSetupView.swift, iosApp/iosApp/Screens/Profiles/ProfileSelectionView.swift
tvOS QR recovery, password fallback, server setup, profile selection, labels, and onboarding presentation are updated.

Companion pairing authentication

Layer / File(s) Summary
Authentication-aware pairing card
iosApp/iosApp/Pairing/Companion/CompanionPairingCardModifier.swift, iosApp/iosApp/ContentView.swift
The companion pairing card receives authentication state and re-latches an existing candidate when authentication changes.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/redesign-signin-ui

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

@Quick104
Quick104 marked this pull request as ready for review July 11, 2026 03:57
@Quick104
Quick104 merged commit 2eccd40 into main Jul 11, 2026
1 check failed
@Quick104
Quick104 deleted the codex/redesign-signin-ui branch July 11, 2026 03:58

@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: 55994b903b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +53 to +54
} else if case .error = newValue {
focusedField = .retryPhone

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Guard retry focus while the password form is visible

When a viewer switches to password sign-in, the QR session still runs in the background; if it expires or otherwise moves to .error, this handler assigns focus to .retryPhone, but that focus target only exists in the phone/QR panel, not in passwordContent. On tvOS this can leave the visible username/password form without a valid focused control, so only move focus to retry when the QR panel is currently shown, or cancel/pause the QR flow while the fallback form is visible.

Useful? React with 👍 / 👎.

Comment on lines +85 to +88
if viewModel.signupEnabled {
Button("Create an account") { router.navigate(to: .signup) }
.buttonStyle(AuroraGhostButtonStyle())
.frame(maxWidth: .infinity)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Disable signup navigation while sign-in is pending

The secondary actions used to be disabled together while viewModel.isLoading was true, but after splitting the buttons this signup button remains enabled while a login request is in flight. If signup is enabled, a user can tap Sign in and then Create an account before the request completes; the background login task can later call router.showProfileSelection() or update errors from behind the pushed signup screen. Apply the loading disabled state to this button as well.

Useful? React with 👍 / 👎.

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