Skip to content

Slide a commit in when the Log opens it on one column - #217

Merged
simonhamp merged 1 commit into
fix/log-commit-hides-tab-barfrom
fix/log-commit-slides-in
Nov 26, 2026
Merged

simonhamp merged 1 commit into
fix/log-commit-hides-tab-barfrom
fix/log-commit-slides-in

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Stacked on #216, which hides the tab bar in the same file. Merge that first, then retarget this to main.

On an iPhone or a folded Duo, a commit opened from the Log popped into place instead of sliding in. AdaptiveWorkspaceController.reconcile() applied every stack change with setViewControllers(animated: false). Back looked right only because the chevron and the edge swipe are UIKit's own animated pops.

A stack 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, as before. The existing applying flag keeps the delegate from treating the animated push as the user going back, and later frames wait for the transition to finish.

Checked on an iPhone 17 Pro simulator (iOS 27.0) and the iPhone Duo simulator (iOS 27.1), with core's Swift refreshed to mobile-air 25490e8:

  • A commit from the Log slides in over the feed, and the tab bar hides as it starts.
  • The chevron, a full edge swipe and a cancelled swipe all behave.
  • Opening a profile from the commit and coming back works.
  • On the Duo, unfolding with a commit open snaps to two columns, folding snaps back to one, and the two columns are unchanged.

What to watch: in two columns, a second commit opened inside the detail column still appears without a slide, as it did before. That's a one-line change if we want it.

Tests: a source test in FeedWorkspaceTest checks when the stack animates, and fails without the change. Full suite: 2316 passed, 12 skipped (the edge blur and layout animation tests, which need a newer core than main's lock).

Screenshots

iOS light only. FeedWorkspace is iOS only, and the slide is the same in dark mode. The before and after images are frame strips of the push.

commit-push

iOS light iOS dark Android light Android dark
Before
After

Recordings: iOS light, after

  • No visible change

🤖 Generated with Claude Code

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>
@simonhamp
simonhamp marked this pull request as ready for review November 26, 2026 13:56
@simonhamp
simonhamp merged commit b5f0d71 into fix/log-commit-hides-tab-bar Nov 26, 2026
3 checks passed
@simonhamp
simonhamp deleted the fix/log-commit-slides-in branch November 26, 2026 13:56
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