Repository navigation
Reskin Apple onboarding with Aurora - #9
Conversation
Brings the shipped tvOS Aurora language to the iOS server-setup, sign-in (password-first), profile, and sign-up screens. Adapts the 16:9 two-column TV layouts to portrait/touch, promotes the Aurora design system to shared code, hides protocol/port behind an Advanced disclosure (also on tvOS), and replaces the in-app Create-Admin page with a "finish setup in your browser" state. Co-Authored-By: Claude Opus 4.8 <[email protected]>
9 tasks: promote Aurora to shared cross-platform code, add an iOS Aurora form kit, reskin Server/Sign-in/Profile/Sign-up, add the tvOS Advanced disclosure, and replace Create-Admin with a "finish setup in your browser" screen. Each task builds iOS/tvOS/macOS; verified by simulator, not XCTest (per CLAUDE.md UI-test guidance). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ance Co-Authored-By: Claude Opus 4.8 <[email protected]>
- Scale ghost buttons appropriately off tvOS - Make setup URL copy affordance available across platforms
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
📝 WalkthroughWalkthroughReskins the iOS first-run/auth flow to the Aurora design language by promoting ChangesiOS Aurora Onboarding Reskin
tvOS Detail Page Redesign (Squared Skyline)
Playback Segment Retirement and Decode Failure Recovery
Sequence Diagram(s)sequenceDiagram
participant User
participant ServerSetupView
participant ServerSetupViewModel
participant AuthService
participant AppRouter
User->>ServerSetupView: enter host, tap Connect
ServerSetupView->>ServerSetupViewModel: connect(router:)
ServerSetupViewModel->>AuthService: checkServer(candidate)
AuthService-->>ServerSetupViewModel: status
ServerSetupViewModel->>AppRouter: authState = .needsLogin
alt status.needsSetup == true
ServerSetupViewModel->>AppRouter: navigate(.serverNeedsSetup)
AppRouter->>User: show ServerNeedsSetupView
User->>ServerNeedsSetupView: tap Retry
ServerNeedsSetupView->>AuthService: checkServer(serverUrl)
AuthService-->>ServerNeedsSetupView: status.needsSetup resolved
ServerNeedsSetupView->>AppRouter: goBack()
AppRouter->>User: return to LoginView
else setup complete
ServerSetupViewModel->>AppRouter: navigate(.login)
AppRouter->>User: show LoginView
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
|
- Document squared controls, playback selectors, focus behavior, and audiobook layout - Add HTML mockups for the approved detail-page directions
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8a84df966
ℹ️ 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".
There was a problem hiding this comment.
Actionable comments posted: 6
🧹 Nitpick comments (1)
iosApp/iosApp/Screens/Profiles/ProfileSelectionView.swift (1)
82-88: ⚡ Quick winRemove redundant platform conditional.
Both the tvOS and non-tvOS branches now use identical code. The
#if os(tvOS)conditional can be removed entirely.♻️ Simplify to single implementation
private var background: some View { - `#if` os(tvOS) - AuroraBackdrop(variant: .profile, scrim: .soft) - `#else` AuroraBackdrop(variant: .profile, scrim: .soft) - `#endif` }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@iosApp/iosApp/Screens/Profiles/ProfileSelectionView.swift` around lines 82 - 88, The background computed property contains a platform conditional with identical code in both the tvOS and non-tvOS branches. Remove the entire `#if` os(tvOS) conditional block and replace it with just the single AuroraBackdrop statement that is currently duplicated in both branches, since no platform-specific logic is needed.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/superpowers/plans/2026-06-15-ios-aurora-onboarding.md`:
- Around line 57-62: Replace the hard-coded absolute path in the cd command with
a repo-relative path. Change the cd command from using the full machine-specific
path `/Volumes/NVMe/dev/github/SiloServer/silo-apple/iosApp/iosApp` to a
relative path like `cd iosApp` or `cd iosApp/iosApp` that will work for any
contributor regardless of their local machine setup. This makes the
documentation portable and usable in CI environments without modification.
- Line 1355: The documentation contains hardcoded development credentials (admin
/ water1234) in the iOS simulator testing section that should be replaced with
generic placeholders. In the text referencing the xcrun simctl patterns and
boot/install/sign-in mechanics, replace the specific credentials admin and
water1234 with generic placeholders such as <username> and <password>
respectively. This maintains clarity that these are placeholders while avoiding
the appearance of hardcoded credentials in the documentation.
In `@docs/superpowers/specs/2026-06-15-ios-aurora-onboarding-design.md`:
- Around line 43-45: The documentation currently references Aurora files using
two different paths: `iosApp/iosApp/tvOS/Aurora/...` in Section 3 and
`iosApp/iosApp/DesignSystem/Aurora/...` in Section 4, creating confusion about
the canonical location. Identify which path represents the actual final location
for the Aurora files (AuroraStyle.swift and AuroraBackdrop.swift) and update all
references in the document to use that single canonical path consistently,
including both the initial references and any subsequent mentions across all
sections.
In `@iosApp/iosApp/DesignSystem/Aurora/AuroraTextField.swift`:
- Around line 77-83: The TextField/SecureField (inputField) lacks an explicit
accessibility label, making it difficult for VoiceOver users to identify the
field. Add an accessibility label modifier to the inputField configuration chain
that binds to the label parameter. Use the accessibilityLabel modifier to attach
semantic accessibility information, ensuring the visible empty label is
supplemented with a proper accessibility identifier for screen reader users.
In `@iosApp/iosApp/Screens/Auth/LoginView.swift`:
- Around line 72-81: The secondary navigation controls in both auth screens
remain active during async operations, allowing users to navigate away while
loading is in progress. In LoginView.swift at lines 72-81, add a disabled
modifier to the HStack containing the "Create account" and "Change server"
buttons, binding it to viewModel.isLoading so they are disabled while sign-in is
loading. Similarly, in SignupView.swift at lines 69-72, add a disabled modifier
to the "Back to sign in" button, binding it to viewModel.isLoading so it is
disabled while account creation is loading. This prevents unintended navigation
while async auth work is in flight.
In `@iosApp/iosApp/Screens/Auth/ServerNeedsSetupView.swift`:
- Around line 48-70: The ServerNeedsSetupView currently displays only the host
value which omits port and path information needed for manual server setup, and
shows a copy affordance on macOS where copyURL() is iOS-only. Replace the Text
displaying host with the full trimmed server URL to provide complete setup
information. Additionally, conditionally gate the copy icon and onTapGesture
call to copyURL() to only appear on iOS platforms, either by hiding the copy
affordance on macOS or by implementing clipboard support for macOS if desired.
This same fix applies to the similar code structure at the other affected
location (approximately lines 95-107).
---
Nitpick comments:
In `@iosApp/iosApp/Screens/Profiles/ProfileSelectionView.swift`:
- Around line 82-88: The background computed property contains a platform
conditional with identical code in both the tvOS and non-tvOS branches. Remove
the entire `#if` os(tvOS) conditional block and replace it with just the single
AuroraBackdrop statement that is currently duplicated in both branches, since no
platform-specific logic is needed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 4269e9f2-ed83-4f09-ba43-4f4f22ba5443
📒 Files selected for processing (17)
docs/superpowers/plans/2026-06-15-ios-aurora-onboarding.mddocs/superpowers/specs/2026-06-15-ios-aurora-onboarding-design.mdiosApp/iosApp/ContentView.swiftiosApp/iosApp/DesignSystem/Aurora/AuroraBackdrop.swiftiosApp/iosApp/DesignSystem/Aurora/AuroraStyle.swiftiosApp/iosApp/DesignSystem/Aurora/AuroraTextField.swiftiosApp/iosApp/Navigation/Route.swiftiosApp/iosApp/Screens/Auth/LoginView.swiftiosApp/iosApp/Screens/Auth/ServerNeedsSetupView.swiftiosApp/iosApp/Screens/Auth/ServerSetupView.swiftiosApp/iosApp/Screens/Auth/ServerSetupViewModel.swiftiosApp/iosApp/Screens/Auth/SetupView.swiftiosApp/iosApp/Screens/Auth/SetupViewModel.swiftiosApp/iosApp/Screens/Auth/SignupView.swiftiosApp/iosApp/Screens/Auth/TVServerSetupView.swiftiosApp/iosApp/Screens/Profiles/ProfileSelectionView.swiftiosApp/iosApp/tvOS/Aurora/AuroraInputField.swift
💤 Files with no reviewable changes (3)
- iosApp/iosApp/Screens/Auth/SetupView.swift
- iosApp/iosApp/Screens/Auth/SetupViewModel.swift
- iosApp/iosApp/DesignSystem/Aurora/AuroraBackdrop.swift
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/superpowers/specs/2026-06-15-tvos-detail-redesign-design.md`:
- Around line 123-126: In the section describing when the selector row hides,
update the visibility predicate to include Edition as one of the selectable
options that should be checked. Currently the logic only considers version,
audio, and subtitles for the hide condition, but it must also account for
Edition being selectable. Modify the hide condition to check whether ANY
selector exists (Edition, version, audio, or subtitles) rather than only
checking version/audio/subtitles, so the row only hides when there are truly no
selectable options at all.
In `@docs/tvos-detail-mockups/audiobook.html`:
- Line 1: All three HTML mockup files are missing a DOCTYPE declaration at the
beginning, which can cause browsers to enter quirks-mode rendering and make
visual comparisons unreliable. Add the HTML5 doctype declaration at the very
start of each file before the opening `<style>` tag. Specifically, prepend
`<!doctype html>` to the beginning of docs/tvos-detail-mockups/audiobook.html
(line 1), docs/tvos-detail-mockups/directions.html (line 1), and
docs/tvos-detail-mockups/playback-selection.html (line 1) to ensure consistent,
standards-compliant rendering across all browsers.
In `@docs/tvos-detail-mockups/buttons.html`:
- Around line 46-106: The onclick handlers on the option elements
(data-choice="current", data-choice="square-icon", data-choice="square-label",
and data-choice="sharp") all call toggleSelect(this), but this function is never
defined in the file, causing JavaScript errors when clicking cards. Define the
toggleSelect function to accept the clicked element and toggle its selection
state (typically by adding/removing an active class or toggling the data-choice
attribute), or alternatively remove all the onclick="toggleSelect(this)"
handlers if interactive selection is not needed for the mockup.
- Around line 1-127: The HTML mockup files lack proper document structure and
doctype declaration, which can cause the browser to render in quirks mode and
lead to inconsistent styling. For docs/tvos-detail-mockups/buttons.html (lines
1-127) and docs/tvos-detail-mockups/refined-page.html (lines 1-191), wrap the
existing content with a complete HTML5 document structure: add <!doctype html>
at the very beginning, create the root <html> element with lang="en" attribute,
add a <head> section with charset and viewport meta tags plus a title, and
enclose all existing styles within a <style> tag in the head and all existing
HTML content within a <body> tag. This ensures both files render consistently
and correctly in modern browsers.
In `@docs/tvos-detail-mockups/directions.html`:
- Line 99: The `toggleSelect` function referenced in all `onclick` handlers
across multiple sites is not implemented in either file. Add a concrete
`toggleSelect` implementation to docs/tvos-detail-mockups/directions.html (which
will fix the three affected options at lines 99, 121, and 147) and to
docs/tvos-detail-mockups/playback-selection.html (which will fix the three
affected options at lines 60, 85, and 115). The function should accept the
clicked element and toggle its selected state while updating the UI accordingly.
Ensure all option elements affected across both files use this same handler and
participate in the same selected-state update mechanism.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 910dfeab-4110-4c75-a0e2-8f9cefd138c0
📒 Files selected for processing (6)
docs/superpowers/specs/2026-06-15-tvos-detail-redesign-design.mddocs/tvos-detail-mockups/audiobook.htmldocs/tvos-detail-mockups/buttons.htmldocs/tvos-detail-mockups/directions.htmldocs/tvos-detail-mockups/playback-selection.htmldocs/tvos-detail-mockups/refined-page.html
- Upgrade episode hero art to the detail-level series backdrop when available - Resample marquee tint after cached or fetched enrichment changes backdrop art
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
iosApp/Tests/DecodeFailureRecoveryPolicyTests.swift (1)
5-47: ⚡ Quick winAdd HEVC branch assertions for
shouldAttemptBurstResync.Current tests validate only
.h264branches. Since the policy has codec-specific.hevclogic, add one positive and one negative HEVC assertion to lock that path.Suggested patch
struct DecodeFailureRecoveryPolicyTests { static func main() { testH264BadDataUsesRecoveryBeforeTerminalRejection() testH264BadDataStopsRecoveringAfterAttemptBudget() testOtherH264ErrorsDoNotUseBurstRecovery() + testHEVCBadDataPolicyBranches() print("DecodeFailureRecoveryPolicyTests: all passed") } @@ private static func testOtherH264ErrorsDoNotUseBurstRecovery() { precondition( !DecodeFailureRecoveryPolicy.shouldAttemptBurstResync( status: -12903, codec: .h264, attempts: 0, maxAttempts: 2 ), "Only bad-data decode bursts should use the discontinuity resync path" ) } + + private static func testHEVCBadDataPolicyBranches() { + precondition( + DecodeFailureRecoveryPolicy.shouldAttemptBurstResync( + status: -12909, + codec: .hevc, + attempts: 0, + maxAttempts: 2 + ), + "HEVC bad-data should use bounded burst recovery" + ) + precondition( + !DecodeFailureRecoveryPolicy.shouldAttemptBurstResync( + status: -12903, + codec: .hevc, + attempts: 0, + maxAttempts: 2 + ), + "Non-bad-data HEVC errors should not use burst recovery" + ) + } }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@iosApp/Tests/DecodeFailureRecoveryPolicyTests.swift` around lines 5 - 47, The test suite currently validates only the .h264 codec paths in DecodeFailureRecoveryPolicy.shouldAttemptBurstResync but lacks coverage for the .hevc codec-specific logic. Add two new test methods following the pattern of the existing H.264 tests: one positive assertion that HEVC uses burst recovery with a valid error status and remaining attempts budget, and one negative assertion that HEVC properly stops recovering after the attempt budget is exhausted. Call these new test methods from the main() function alongside the existing H.264 tests.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@iosApp/iosApp/Screens/Player/AVPlayerRoute/DVSegmentStore.swift`:
- Around line 165-205: A race condition exists where `retireSegments(names:)`
removes a name from `spillingSegments` and adds it to `evictedResources`, but
`finishSpillLocked()` can still insert the same name back into `spilledSegments`
after the lock is released. To fix this, in the `finishSpillLocked()` method,
before inserting a segment name into `spilledSegments`, check if that name
exists in `evictedResources` and skip the insertion if it does. This prevents
retired segments from being reintroduced and ensures `tempSpillBytes` accounting
remains correct.
In `@iosApp/iosApp/Screens/Player/CoreMedia/PlayerCore.swift`:
- Around line 4074-4077: The guard statement checking `isRecoveringDecodeBurst`
in PlayerCore.swift currently returns early for all VideoToolbox errors during a
`-12909` resync, but it should only swallow the specific recoverable bad-data
status and allow other errors like `-12903` invalid-session errors to reach the
rebuild path below. Modify the condition to check both that
`isRecoveringDecodeBurst` is true AND that the current error status matches the
recoverable codec/bad-data combination, so only recoverable errors are filtered
out while other statuses continue to the error handling paths below.
---
Nitpick comments:
In `@iosApp/Tests/DecodeFailureRecoveryPolicyTests.swift`:
- Around line 5-47: The test suite currently validates only the .h264 codec
paths in DecodeFailureRecoveryPolicy.shouldAttemptBurstResync but lacks coverage
for the .hevc codec-specific logic. Add two new test methods following the
pattern of the existing H.264 tests: one positive assertion that HEVC uses burst
recovery with a valid error status and remaining attempts budget, and one
negative assertion that HEVC properly stops recovering after the attempt budget
is exhausted. Call these new test methods from the main() function alongside the
existing H.264 tests.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: c476d41f-4946-40e4-a1b2-0b58e9f7bcf0
📒 Files selected for processing (18)
iosApp/Tests/DVSegmentStoreTests.swiftiosApp/Tests/DecodeFailureRecoveryPolicyTests.swiftiosApp/Tests/LocalHLSPlaylistPolicyTests.swiftiosApp/Tests/LocalHLSRequestLogPolicyTests.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/AVPlayerBackend.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/DVSegmentServer.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/DVSegmentStore.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/DVSegmentWriter.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/LocalHLSPlaylistPolicy.swiftiosApp/iosApp/Screens/Player/AVPlayerRoute/LocalHLSRequestLogPolicy.swiftiosApp/iosApp/Screens/Player/ApplePlaybackRoutePlanner.swiftiosApp/iosApp/Screens/Player/CoreMedia/DecodeFailureRecoveryPolicy.swiftiosApp/iosApp/Screens/Player/CoreMedia/PlayerCore.swiftiosApp/iosApp/Screens/Player/CoreMedia/PlayerCoreTypes.swiftiosApp/iosApp/Screens/Player/PlaybackRecoveryPlanner.swiftiosApp/iosApp/Screens/Player/PlayerViewModel.swiftiosApp/iosApp/tvOS/Components/TVFocusMarquee.swiftiosApp/iosApp/tvOS/Components/TVSkylineSectionFeed.swift
✅ Files skipped from review due to trivial changes (3)
- iosApp/iosApp/Screens/Player/ApplePlaybackRoutePlanner.swift
- iosApp/iosApp/Screens/Player/AVPlayerRoute/AVPlayerBackend.swift
- iosApp/iosApp/Screens/Player/AVPlayerRoute/LocalHLSPlaylistPolicy.swift
Summary
Testing
cd iosApp && xcodegen generatecd iosApp && xcodebuild build -project Silo.xcodeproj -scheme Silo -destination 'platform=iOS Simulator,name=iPhone 17 Pro' CODE_SIGNING_ALLOWED=NOcd iosApp && xcodebuild build -project Silo.xcodeproj -scheme SiloTV -destination 'platform=tvOS Simulator,name=Apple TV' CODE_SIGNING_ALLOWED=NOcd iosApp && xcodebuild build -project Silo.xcodeproj -scheme SiloMac -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NOSummary by CodeRabbit