Skip to content

Open commits beside Notifications and threads beside Remotes on iOS - #219

Merged
simonhamp merged 2 commits into
fix/duo-log-actions-right-edgefrom
feat/duo-panes-notifications-remotes
Nov 26, 2026
Merged

simonhamp merged 2 commits into
fix/duo-log-actions-right-edgefrom
feat/duo-panes-notifications-remotes

Conversation

@simonhamp

Copy link
Copy Markdown
Member

On iOS, Notifications and Remotes now work like the Log on a wide window. The list stays in the primary column and what you open from it shows beside it. On one column (any iPhone, or a folded Duo) it slides in over the list, the tab bar hides, and back swipe works. Android is unchanged.

  • Notifications: a notification about a commit opens that commit in the detail column. Profiles and organizations still open over the whole tab, as they do from the Log.
  • Remotes: a thread, a person's or an org's, opens in the detail column. The call button and the menu (View profile or Members, Pin, Stash, Mute) are on its bar. The composer, photos, voice notes, mentions and pull to reply work there as they did on a pushed thread.
  • The open row is marked with the wash, as the Log marks its open commit. A notification row is marked when you tapped it and its commit is still the one open.
  • Pushes: a commit push opens the commit beside Notifications once the tab has drawn, and a message push opens the thread beside Remotes. If the commit or thread has gone, the detail closes and the toast says so, as before.
  • While Remotes is off, the 404 page keeps the whole window.

How the bars work now

The adaptive-layout renderer used to hard-code the Log's bar: the wordmark, search, compose and delete. Each page now has an adaptive-bar element placed after its component in the workspace's view. It is built from that component's own navTitle() and navigationOptions(), menus included. Its buttons register in the embedded component's callback registry, so a press calls that component directly, the same way a tap inside it does. The Swift side turns them into UIBarButtonItems and UIMenus and sends the press with NativeElementBridge.sendPressEvent. The hard-coded compose, search, game and delete messages through hostChanged are gone. Only back still goes that way.

The Log looks the same. It keeps the SF Symbol magnifying glass, pencil and trash it has always shown in the workspace (the Log and CommitDetail pick those glyphs when embedded), and the wordmark comes from TabsLayout's logo paths. #216 to #218 still work: the tab bar hides on one column, a detail slides in and out, and on an open Duo the primary column's buttons move to the detail column's bar so they reach the vertical bar.

FeedWorkspace's pane history moved into a Workspace base class shared by the three workspaces. The checks that named FeedWorkspace (outbox answers, the photo picker, deletion, opening a pane from a tap) now use the base class. Outbox answers for messages are now broadcast to every pane like commit answers, so a thread beside the inbox sees its message go from staged to pushed.

What to watch for

  • Only the root screen's polls run, so the new workspaces forward the inbox poll and the open thread's poll, and they watch for calls. FeedWorkspace doesn't watch for calls today, so the Log tab on iOS doesn't ring. I left that alone.
  • On an open Duo with the on-screen keyboard up, the detail column's bar hides when its content scrolls, and comes back when you scroll up. A thread scrolls itself to its end as the keyboard opens, so there the title goes straight away. A Log commit does the same when scrolled, so it isn't new here.
  • Leaving the Remotes tab and coming back showed the inbox again without the thread that was open.
  • Some of the old FeedWorkspace tests sent compose, game and delete through hostChanged. They now press the bar's own buttons. Two delete cases in the staleness tests went away, since a press now goes to the pane it was drawn for.

Checked on the iPhone Duo simulator (open, half open, closed, folding and unfolding with a thread and a commit open, draft kept) and on an iPhone 17 Pro simulator, against a local devnull API.

Screenshots

iOS light only, on the open Duo and an iPhone. The recordings show a commit and a thread sliding in and back out on one column.

notification-commit-duo

iOS light iOS dark Android light Android dark
After

notification-commit-iphone

Recordings: iOS light, after

notifications-duo

iOS light iOS dark Android light Android dark
Before
After

notifications-iphone

iOS light iOS dark Android light Android dark
Before
After

remotes-duo

iOS light iOS dark Android light Android dark
Before
After

remotes-iphone

iOS light iOS dark Android light Android dark
Before
After

remotes-thread-duo

iOS light iOS dark Android light Android dark
Before
After

remotes-thread-iphone

iOS light iOS dark Android light Android dark
Before
After

Recordings: iOS light, after

  • No visible change

🤖 Generated with Claude Code

@simonhamp
simonhamp added this pull request to stack #220 November 26, 2026 16:28
@simonhamp
simonhamp marked this pull request as ready for review November 26, 2026 16:28
simonhamp and others added 2 commits November 26, 2026 16:28
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>
On iOS, /notifications and /remotes now route to NotificationsWorkspace and
RemotesWorkspace, laid out like the Log's: the list in the primary column
and what you open beside it on a wide window, or sliding in over it on one
column. A notification's commit opens in the detail column; profiles and
organizations still open over the whole tab. A Remotes thread, a person's
or an org's, opens beside the inbox with its call and menu on its own bar.
The open row is marked, as the Log marks its open commit.

Pushes land in the same place: the workspace opens the pushed commit or
thread once the tab has drawn, and closes it with a toast if it has gone.
The workspaces forward the polls their children need, since only the root
screen's run, and watch for calls. Outbox answers for messages now reach
every pane, so a thread beside the inbox shows its message as pushed.
Android is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp force-pushed the feat/duo-panes-notifications-remotes branch from cceb927 to 8e9de48 Compare November 26, 2026 16:28
@simonhamp
simonhamp merged commit d4f9a21 into main Nov 26, 2026
3 checks passed
@simonhamp
simonhamp deleted the feat/duo-panes-notifications-remotes branch November 26, 2026 16:46
@simonhamp
simonhamp restored the feat/duo-panes-notifications-remotes 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