Skip to content

Put the Log's search and compose at the right edge on an open Duo - #218

Merged
simonhamp merged 2 commits into
mainfrom
fix/duo-log-actions-right-edge
Nov 26, 2026
Merged

simonhamp merged 2 commits into
mainfrom
fix/duo-log-actions-right-edge

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Stacked on #217 (a commit slides in), which is stacked on #216. All three change the same file. Merge them in order.

On an open Duo, the Log's search and compose sat at the top in the middle of the screen. Every other screen's actions go to the vertical bar at the right edge.

iOS 27.1 moves trailing bar items into the vertical bar only from a navigation bar that reaches its edge. Notifications, Profile and a commit opened from Notifications use core's single navigation stack, whose bar spans the screen. On an open Duo the Log is two navigation controllers side by side, and the feed column's bar stops at the fold.

With two columns and the vertical bar on the detail side, search and compose now go on the detail column's bar: the commit page, or the empty placeholder when no commit is selected. Each page gets its own pair, because both bars are on screen during a push or pop in that column. A commit's own delete keeps its own glass, under search and compose, so they stay in the same spot whether or not a commit is open. One column, older iOS and no vertical bar keep them on the feed's bar. A posture change without a new frame from PHP moves them on the next layout.

Checked on the iPhone Duo simulator (iOS 27.1):

  • Open: they show in the vertical bar with no commit selected, and above delete on your own commit. Search opens Search, compose opens the New commit sheet, and delete still asks first.
  • Opening a second commit and going back in the detail column works, and the buttons swap cleanly during the slide.
  • Half open behaves like open.
  • Closed, folding with a commit open, and unfolding with one open all work as before.
  • On an iPhone simulator, nothing changes.

Tests: a source test in FeedWorkspaceTest checks where the actions go, and fails without the change. Full suite: 2316 passed, 12 skipped.

Screenshots

iOS light only. This only applies to the open Duo, and the placement is the same in dark mode.

log-duo-open

iOS light iOS dark Android light Android dark
Before
After
  • No visible change

🤖 Generated with Claude Code

Base automatically changed from fix/log-commit-slides-in to fix/log-commit-hides-tab-bar November 26, 2026 13:56
@simonhamp
simonhamp marked this pull request as ready for review November 26, 2026 14:01
@simonhamp
simonhamp changed the base branch from fix/log-commit-hides-tab-bar to main November 26, 2026 14:01
@simonhamp
simonhamp added this pull request to stack #220 November 26, 2026 16:28
simonhamp and others added 2 commits November 26, 2026 16:28
AdaptiveWorkspaceController.reconcile() applied every stack change with
setViewControllers(animated: false), so a commit opened from the Log
popped into place on an iPhone or a folded Duo. Back looked right only
because the chevron and the edge swipe are UIKit's own animated pops.

A change now animates when it's a push or a pop on one column that's on
screen: the stack only gains or loses levels at the top. A first mount,
folding or unfolding between one and two columns, and the detail column
still snap, so the Duo's two columns behave as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On an open Duo the Log is two navigation controllers side by side, and
iOS 27.1 only moves trailing bar items into the vertical bar from a bar
that reaches its edge. The feed column's bar stops at the fold, so its
search and compose sat at the top in the middle of the screen, while
every other screen's actions went to the vertical bar.

With two columns and the vertical bar on the detail side, search and
compose now go on the detail column's bar instead: the commit page, or
the empty placeholder. Each page gets its own pair, since both bars are
on screen during a push or pop there. A commit's delete keeps its own
glass under them. One column, older iOS and no vertical bar keep them
on the feed's bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simonhamp added a commit that referenced this pull request Nov 26, 2026
The adaptive-layout renderer hard-coded the Log: its wordmark, search,
compose, the delete on a commit and the long press on the logo. Each page
of the workspace now carries an adaptive-bar element after the component
it belongs to, built from that component's navTitle() and
navigationOptions(), menus included. Its buttons register in the embedded
component's own callback registry, so a press goes straight to that
component, the way a tap inside it does.

FeedWorkspace's pane history moves into a Workspace base class so the
Notifications and Remotes tabs can share it. The checks that were tied to
FeedWorkspace (outbox answers, the photo picker, deletion, opening a pane
from a tap) now go through the base class. The Log keeps the same glyphs
and behaviour, and #216 to #218 work as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp force-pushed the fix/duo-log-actions-right-edge branch from 5e542f7 to 82b8073 Compare November 26, 2026 16:28
@simonhamp
simonhamp merged commit d4f9a21 into main Nov 26, 2026
3 checks passed
@simonhamp
simonhamp deleted the fix/duo-log-actions-right-edge branch November 26, 2026 16:46
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