Skip to content

Float the Log's new commits pill over the commits, and keep your place when you tap it - #47

Merged
simonhamp merged 1 commit into
mainfrom
fix/new-commits-pill
Oct 20, 2026
Merged

simonhamp merged 1 commit into
mainfrom
fix/new-commits-pill

Conversation

@simonhamp

@simonhamp simonhamp commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

On the Log, the "↑ 14 new commits" pill had a strip of its own at the top of the list, with a hairline under it, so it pushed the commits down. It should float over them.

The Log now puts the pill in the pager's overlay, the way a profile already does. It hangs just under the Following / Latest / Trending tabs, over the commits, and stays there while the list scrolls under it. The overlay lets taps on either side of the pill through to the commits.

Both screens now use the overlay, so I removed the sticky-header version of the pill and its $hanging switch. The pill's slot is still always there and hidden until there are new commits, so the pager keeps its shape when they arrive.

A tap on the pill now also leaves you where you are. It used to start a new list, which always opens at the top. Now the new commits go above the rows you're reading, which keep their keys, so the list keeps them in place and the new ones are there when you scroll up. Trending keeps its ranking under them the same way. When more came in than a page holds, the fresh page replaces the list and what you were reading is gone, so that case still starts a new list at the top.

Things to check:

  • The Log's pager has no header, so it's the first to use the overlay without one. I read the iOS and Android renderers for that case: the overlay sits on the pages directly under the tab strip. I haven't seen it on a simulator or phone yet.
  • The overlay belongs to the pager, not to a page, so mid-swipe the pill stays put over both pages. Switching lanes already clears it once the swipe settles.
  • Keeping your place depends on the native list holding rows still when new ones are added above them. Android's list does that by key. On iOS a scrolled list has drawn blank before when every row changed under it, which is why the pill used to rebuild the list. Here most rows don't change, but it needs checking on a phone.

🤖 Generated with Claude Code

The pill sat in a strip of its own at the top of the Log's list, pushing
the commits down. It now goes in the pager's overlay, as on a profile,
so it floats over the commits just under the tabs and stays there while
the list scrolls. The overlay passes taps beside it through to the
commits.

With both screens using the overlay, the sticky-header version of the
pill is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit 54fb209 into main Oct 20, 2026
1 check passed
@simonhamp
simonhamp deleted the fix/new-commits-pill branch October 20, 2026 21:05
@simonhamp simonhamp changed the title Float the Log's new commits pill over the commits Float the Log's new commits pill over the commits, and keep your place when you tap it Oct 20, 2026
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