Skip to content

feat(mobile): iPhone Duo support — split view + Gatefold mode - #14813

Draft
dylanjeffers wants to merge 1 commit into
mainfrom
feat/mobile-iphone-duo
Draft

dylanjeffers wants to merge 1 commit into
mainfrom
feat/mobile-iphone-duo

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Summary

Makes the mobile app adapt to the iPhone Duo's fold, with playback layouts inspired by Spotify's tablet Now Playing view and Apple Music's synced lyrics.

  • Closed (outer screen): unchanged phone UI.
  • Unfolded (window ≥ 600pt): split view. Browsing stays on the left and a docked Now Playing panel sits on the right with artwork, waveform + comment bubbles, controls, actions and Up Next. The pull-up Now Playing drawer is not rendered in this mode.
  • Half-open hinge (Gatefold): while something plays, artwork + controls take the left page and the track's timestamped comments take the right, highlighted in time with playback; tap a comment to seek. ✕ returns to the split view, which then sits on the fold.
  • Resizable layout: removed static Dimensions.get reads (drawer height, artwork, queue, chat, top tab bars, sign-up) so fold/unfold mid-session reflows. Split columns read their width through useContentWidth.
  • Native: AudiusHinge wraps UIHingeInteraction (iOS 27.1+, compile-guarded for older SDKs); SceneDelegate attaches it to the window. Requires a new binary — OTA builds on old binaries get the split view but never Gatefold.

Testing

  • Release sim build succeeds; tsc + eslint clean.
  • The Duo simulator can't run on the public iOS 27.2 runtime (it lists iPhone19,4 as unsupported), so wide layouts were verified on an iPad mini (iOS 27.2) sim with a test-only universal Info.plist:
    • live window resize narrow → wide → narrow (panel appears/disappears, play bar returns, drawer opens at the right height)
    • Gatefold with the posture forced in a temporary bundle: synced highlight, tap-to-seek, ✕ to a 50/50 split
  • Not yet tested on a real Duo (hinge events, actual fold geometry).

Notes

  • Android tablets ≥ 600pt wide will also get the split view; not tested there and not behind a flag.
  • iPad is unaffected (app target is iPhone-only).

🤖 Generated with Claude Code

- Layout reacts to window size changes (fold/unfold) instead of reading
  Dimensions once at startup; drawer height is now a hook.
- Wide windows (>= 600pt) show a split view with a docked Now Playing
  panel (artwork, waveform, controls, Up Next) in place of the drawer.
- Half-open hinge shows Gatefold: artwork and controls on the left page,
  timestamped comments synced to playback on the right; tap to seek.
- New AudiusHinge native module wraps UIHingeInteraction (iOS 27.1+).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f8e82e8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@socket-security

Copy link
Copy Markdown

Dependency limit exceeded — report not shown.

This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report.

Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard.

Socket is always free for open source. If this is a public open source project under an OSI-approved license, contact us to request a free Business plan upgrade.

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant