Repository navigation
Conversation
smbarne
force-pushed
the
duo-home-rail-actions
branch
from
November 20, 2026 19:49
00ac2d8 to
bd9eac3
Compare
smbarne
force-pushed
the
duo-rail-grouped-capsule
branch
from
November 20, 2026 19:49
8dfdd6c to
0eb800d
Compare
The Duo rail drew every projected action as its own standalone glass control, so Home's Activity and Community menu appeared as two separate circles. IosNavigationAction gains sharesRailBackground. DuoToolbarPortal merges adjacent actions that set it into one rail control, sized for one more 48-point control per extra action, and passes the group as the standalone bar's actions. Natively, a standalone bar with actions builds a single control group whose stack runs vertically, so the actions share one capsule down the rail. Single actions keep the existing leading path, keys, and avatar-bounds tracking, so other rail controls are unchanged. Home opts its two controls in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012S9h3iGU86Nj5WwYXABMHt Signed-off-by: sbarnes <sbarnes@squareup.com>
Home's two workspace rail controls now share one 108-point capsule, but DuoToolbarScope still offset an open conversation's rail controls by 60 points per leading slot (120 points). The gap below the capsule was 24 points instead of the 12 points between other rail controls. Compute both the grouped capsule height and the leading offset from one helper: 48 points per control plus one 12-point margin. A single control stays at 60 points, so the other one-slot callers do not change. Co-authored-by: RemoteHorse <68deea58679ad75e9bf031fa370502f884c022db55043f5f3a19f5d8bb0edfe2> Signed-off-by: sbarnes <sbarnes@squareup.com>
smbarne
force-pushed
the
duo-rail-grouped-capsule
branch
from
November 20, 2026 20:46
0eb800d to
deb8ace
Compare
Contributor
Author
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.
Summary
Stacked on #9817, the PR that moves Home's Activity and Community menu into the Duo rail. The rail drew every action as its own glass circle, so the two controls appeared as separate circles. They now share one vertical glass capsule.
IosNavigationActiongainssharesRailBackground, which defaults to off so other screens' rail controls don't change.DuoToolbarPortalmerges adjacent actions that set it into one rail control, sized 48 points taller per extra action, and passes the group to the standalone bar asactions.IosNavigationBar.swift, a standalone bar withactionsbuilds one control group, and standalone groups stack vertically.leadingpath, keys and avatar-bounds tracking.On wide Duo, an open conversation's rail controls now start below the shared capsule's real height (108 pt for two controls, 60 pt for one), so the gap below the capsule matches the usual 12 pt.
Before and after
iPhone Duo simulator (iOS 27.2), connected to a local stand-in relay with no channels.
Measured from accessibility frames on the cover: bell at y 192 in both; avatar at y 252 with #9817 and y 240 with this PR (one 48 pt step inside the capsule).
Related issue
N/A. Builds on the previous PR in this stack.
Testing
test/shared/widgets/duo_toolbar_test.dart: the detail rail control's top is +60 pt for one leading slot and +108 pt for two (fails on the old 120 pt offset), and adjacent shared actions form one 108 pt capsule.testStandaloneRailGroupSharesOneVerticalCapsule: one visible glass surface of 48×96, buttons stacked vertically, menu as the primary action.dart formatandflutter analyzeare clean. The full mobile Flutter suite passed in the pre-push hook.RunnerTestson an iPhone 17 simulator (iOS 27.2, Xcode 27.2): 90 of 96 pass, includingtestStandaloneRailGroupSharesOneVerticalCapsule. The 6 failures areProfileSetupRecoveryTestsaxisBehaviorchecks, which fail the same way onmain(9c0bcd623); this stack doesn't touch that code.🤖 Generated with Claude Code
https://claude.ai/code/session_012S9h3iGU86Nj5WwYXABMHt