Skip to content

Add manual Up Next action to tvOS player - #86

Merged
Quick104 merged 2 commits into
mainfrom
feature/tvos-manual-up-next
Jul 11, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feature/tvos-manual-up-next

Conversation

@Quick104

@Quick104 Quick104 commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add an Up Next button to the tvOS transport when Next Up content is available or loading
  • route manual presentation through the same existing postroll flow used by the automatic trigger
  • share the availability predicate between the manual control and automatic timing path

Validation

  • xcodebuild build -project Silo.xcodeproj -scheme SiloTV -destination "platform=tvOS Simulator,id=725C6034-1B19-45BE-BC94-46DDDEA14B03" CODE_SIGNING_ALLOWED=NO
  • launched the development build on tvOS 26.4 and played episodic content
  • focused and activated the new transport control, confirming it opens the existing Next Up screen unchanged
  • git diff --check

Summary by CodeRabbit

  • New Features

    • Added a “Show Up Next” control to the tvOS player transport controls when upcoming content is available.
    • Improved focus support for navigating to the Up Next action.
  • Bug Fixes

    • Prevented the Up Next screen from opening unless the Up Next UI is actually available.
    • Refined Up Next completion/progress handling using a centralized policy (including prompt-window and end-of-file edge cases).
  • Tests

    • Added unit tests covering the Up Next completion/progress policy behavior.

@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: a359d136-d013-4b2b-9f74-685b4ad2b183

📥 Commits

Reviewing files that changed from the base of the PR and between 120f493 and 5445656.

📒 Files selected for processing (3)
  • iosApp/Tests/PlayerNextUpCompletionPolicyTests.swift
  • iosApp/iosApp/Screens/Player/PlayerNextUpCompletionPolicy.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift

📝 Walkthrough

Walkthrough

Changes

Next Up control flow

Layer / File(s) Summary
Define Next Up completion rules
iosApp/iosApp/Screens/Player/PlayerNextUpCompletionPolicy.swift, iosApp/Tests/PlayerNextUpCompletionPolicyTests.swift
Adds prompt-window validation, completion finalization, progress-position handling, and unit coverage for EOF, presented Next Up, and hidden Next Up states.
Integrate availability and completion decisions
iosApp/iosApp/Screens/Player/PlayerViewModel.swift
Adds centralized Next Up availability, delegates progress and cleanup completion decisions to PlayerNextUpCompletionPolicy, and guards immediate Next Up presentation.
Expose the tvOS Next Up control
iosApp/iosApp/Screens/Player/tvOS/TVPlayerTransportCluster.swift
Adds the .nextUp focus target and conditionally renders a “Show Up Next” button that starts the Next Up flow.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant TVPlayerTransportCluster
  participant PlayerViewModel
  participant PlayerNextUpCompletionPolicy
  TVPlayerTransportCluster->>PlayerViewModel: showNextUpNow()
  PlayerViewModel->>PlayerNextUpCompletionPolicy: evaluate completion and progress state
  PlayerNextUpCompletionPolicy-->>PlayerViewModel: return completion decision
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a manual Up Next action in the tvOS player.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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 feature/tvos-manual-up-next

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

@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: 120f493593

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

@Quick104
Quick104 merged commit e2e1668 into main Jul 11, 2026
1 check failed
@Quick104
Quick104 deleted the feature/tvos-manual-up-next branch July 11, 2026 04:09
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