Repository navigation
fix(tvos): refine Skyline home navigation and rows - #13
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3c08d85cd
ℹ️ 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".
| focusRequest: contentFocusToken, | ||
| onMoveUp: pageIndex == 0 ? onTopMenuFocusRequest : { pageBand(by: -1) }, | ||
| prefersDefaultFocusOnFirstItem: false, | ||
| focusRequest: isFirstRow ? contentFocusToken : 0, |
There was a problem hiding this comment.
Scroll to the first row before handoff focus
When the user has moved down to later Skyline rows and then returns from the top menu, this token is still delivered only to row 1. Because row 1 lives inside a vertically scrolling LazyVStack, it can be off-screen/not realized at that point, so the focus request has no mounted row to apply it and content focus can remain stranded instead of landing on the first card; the previous pager reset pageIndex = 0 before issuing the token. Tie the handoff to the vertical scroll position (or otherwise bring the first section back into view) before applying the focus request.
Useful? React with 👍 / 👎.
… into ios26 glass migration + code-review fixes
…ession fixes The pin pointed at the first revision of AetherEngine #13. Review on #12 then fixed more of the direct-play authorization path: resolvers run off the cooperative pool, backward detour reads honour a latched refusal, and every resolver-supplied header stays off cross-origin redirect and pinned targets. #13 merged those changes. Pin d0aa7c2baff59fd5df53c576530acac3208b3d61, the head of #13, and list both engine pull requests in the notices. Re-pin to the engine merge commit once they land. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Summary
Why
The branch moves Home and library Skyline rows away from custom page-section animations toward native tvOS focus scrolling. That keeps row movement smoother and more predictable while preserving the clipped Skyline presentation where rows emerge from the bottom and hide behind the hero text area.
The earlier custom Back/Menu ladder depended on cached row focus state and was unreliable. The final behavior keeps Back simple: Home content returns to the top menu, and pressing Home from the menu is the path that re-enters the first content item.
Validation
xcodebuild build -project Silo.xcodeproj -scheme SiloTV -destination 'generic/platform=tvOS Simulator' -derivedDataPath /tmp/silo-apple-derived CODE_SIGNING_ALLOWED=NOScope
Changed files:
iosApp/iosApp/Components/EpisodeThumbCard.swiftiosApp/iosApp/Components/MediaRow.swiftiosApp/iosApp/Components/StartupSplashView.swiftiosApp/iosApp/Screens/Home/SectionRow.swiftiosApp/iosApp/Theme/ContinuumTheme.swiftiosApp/iosApp/tvOS/Components/TVSkylineSectionFeed.swiftiosApp/iosApp/tvOS/Navigation/TVTopMenuBar.swift