Repository navigation
Conversation
On a Duo cover rail, Home's bottom group is now one native glass capsule of three 48 pt IosNavigationBar controls, pinned to the rail bottom (replacing the 220 pt reservation with the capsule's own 156 pt): - Search: plain native action. - New: native action whose children are a UIMenu, like the Community menu. - Bestie: native agent avatar. Tap opens Bestie. Press-and-hold is recognized natively (new IosNavigationAction.onLongPress, a UILongPressGestureRecognizer and an actionLongPress channel call) and forwarded through an AgentRailLink to the existing voice surface. DefaultAgentLauncher stays mounted beside the capsule, unseen and inert while idle, publishes the native action, and draws the existing voice pill while a hold is in progress. Wide Duo and ordinary iPhone keep MessagesNavigationBar; its now-unused vertical branch is removed. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> Signed-off-by: Stephen Barnes <sbarnes@block.xyz>
Contributor
|
🤖 Thanks for exploring this in a prototype. We’ve tried this navigation pattern on Duo before. With the features Home has today, I think we’d be unlikely to adopt it. It’s worth revisiting if we get to a point where people need to switch between distinct tabs. |
Contributor
Author
Yeah I need to pull back on the full native for the bottom controls. However - it would be really nice if activity and the settings were in the right rail. Would you agree and accept a smaller, paired down PR around that? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
Prototype. Not ready for review. This explores option (a) for the Duo cover rail. It is kept as a draft for comparison with #9829. Don't review or merge it.
Summary
Stacked on #9829.
On the iPhone Duo cover display, Home's Search, New and Bestie become native rail controls, in the same style as the rail's Activity and Community menu (and the channel Huddle button). They render as one native vertical glass capsule of three 48 pt controls, 156 pt tall, pinned to the bottom of the rail. #9829 only resizes the existing merging-glass circles.
IosNavigationAction.onLongPress. Natively, a 0.5 sUILongPressGestureRecognizersendsactionLongPresswith a start / move / end / cancel phase and the finger's travel. The existing Flutter recording pill (waveform, slide-up-to-cancel, spinner) is driven through a newAgentRailLinkand shown at the Bestie slot.DuoToolbarPortalgoes from 220 pt to 156 pt (duoRailCapsuleExtent(3)).Known gaps and risks
MergingNavigationGlasspath andIosMessageCreateButton.navigationAxisare now unused on the Dart side.Before and after
iPhone Duo simulator (iOS 27.2), connected to a local stand-in relay with no channels. Every image has a BEFORE (#9829) or AFTER (this PR) label bar.
Measured from accessibility frames on the cover: Search / New / Bestie go from three 48 pt circles at y 482 / 542 / 602 (60 pt pitch) to one capsule with 48 pt controls at y 500 / 548 / 596 (48 pt pitch). They stay centered at x 418, the same line as the bell and avatar.
Visible differences from #9829: Bestie shows the plain agent glyph, not the animated avatar. The New menu is flat and its order is reversed, because iOS reverses menus that open from the bottom edge.
Not captured: an actual Bestie recording. A simulated long press in the simulator didn't start one in either build.
Related issue
N/A. Builds on #9829 in this stack.
Testing
dart formatandflutter analyzeare clean,just file-size-checkpasses, and the full mobile suite passes (5,718 passed, 71 skipped).home_page_test.dartwas split intohome_page_harness.dartandhome_page_duo_rail_test.dart. The Duo journey checks the bottom capsule's size, bottom pin and center line, the actions' order, New's children, Bestie's avatar, Search opening search, the inert overlay during recording, and the horizontal bar when wide.bestie_transcription_control_test.dartdrives start / move / end / cancel through the rail link.ios_navigation_bar_test.dartcovers thelongPresspayload and theactionLongPressdispatch.testStandaloneRailGroupSharesOneVerticalCapsule: one vertical capsule of Search / New / Bestie, with a 0.5 s long-press recognizer only on Bestie.RunnerTests(123 tests,-parallel-testing-enabled NO): everything passes except 6 assertions in 2ProfileSetupRecoveryTestscases (axisBehavior), which also fail onmain(9c0bcd623).🤖 Generated with Claude Code