Skip to content

Never show the new commits pill on profiles or organizations - #193

Draft
simonhamp wants to merge 1 commit into
mainfrom
fix/profile-no-new-commits-pill
Draft

simonhamp wants to merge 1 commit into
mainfrom
fix/profile-no-new-commits-pill

Conversation

@simonhamp

Copy link
Copy Markdown
Member

On Shane Smith's profile in build 37, the "↑ 2 new commits" pill sat at the top of the screen, over the header and the Remote button. Profiles shouldn't show it at all, so they no longer do. Organization pages are the same kind of screen, so they've lost it too. The Log keeps its pill exactly as it was.

What new commits do now on a profile or organization

EDGE never tells PHP where a list is scrolled, so the screen goes by what it knows.

  • When you're known to be at the top, new commits go straight in on top. That's when the page opens, after a pull to refresh, and when you tap the tab you're on or swipe to the other tab.
  • Once you've left the page and come back (opened a commit, a mention, another profile), or the list has loaded its next page, you may be scrolled down. New commits then wait out of sight, so the rows you're reading don't get pushed down. They go in on the next pull to refresh, or when you tap the tab you're on, which takes you back to the top anyway.

When they go in, the list keeps its key, so it isn't rebuilt and rows already showing stay put. Only the tab tap re-keys it, as it already did.

The logic is a small new trait, SlotsInNewCommits, used by Profile and Organization next to HoldsNewCommits. The pager overlay that held the pill is gone from both views.

Things to check

  • If you scroll down within the second or so between opening a profile and its fresh answer landing, new commits will still go in on top and push the list down. That window is the same one where rows already update in place today.
  • New commits that arrive while you're scrolled down only appear once you pull to refresh or tap the tab. Scrolling back up alone won't show them, because the app can't tell when you're back at the top.
  • Partial frames: I merged this onto perf/partial-frames (Send only what changed on the timeline screens #189) locally. It merged cleanly, and with mobile-air #699 applied to the vendor copy so PartialFramesTest runs instead of skipping, all 9 of its cases pass, as does the full suite there (2,054 tests). Putting new commits in on top is the same frame change as pulling to refresh with new commits, which that test already covers.

Tests

  • Profile: no pill node at all, new commits go on top when it opens with the same list key, they wait after onResume and after loadMore, then go in on pull to refresh or a tab tap.
  • Organization: the same no-pill, opens-on-top and waits-after-resume case.
  • Log: a new test that the pill still shows when you come back to it, alongside the existing Log pill tests.
  • Full suite: 1,901 passed.

Screenshots

iOS only. The change is PHP and Blade with nothing platform specific, so I kept the build count down on Simon's machine and skipped Android. Taken on an iPhone 18 Pro simulator (iOS 27) against a local devnull server, with commits added to @eveline24's profile between visits.

profile

iOS light iOS dark Android light Android dark
Before
After

Scrolled down, left and came back while a new commit arrived: 1, before leaving, 2, back with the commit held (pixel for pixel the same rows as 1, only the scroll indicator differs), 3, after pull to refresh.

  • No visible change

🤖 Generated with Claude Code

On someone's profile the "2 new commits" pill floated over the header
and the Remote button. Profiles and organization pages now have no pill.

New commits go straight in on top when the list is known to be at its
top: when the page opens, after a pull to refresh, and when you tap the
tab you're on or swipe to the other one. After you've left the page and
come back, or the list has loaded its next page, you may be scrolled
down, so they wait out of sight until the next pull to refresh or tab
tap rather than pushing the rows you're reading down. The list keeps its
key when they go in, so nothing is re-keyed.

The Log keeps its pill as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp marked this pull request as draft November 20, 2026 23:19
@shanesmithdev

Copy link
Copy Markdown
Contributor

On Shane Smith's profile in build 37, the "↑ 2 new commits" pill sat at the top of the screen

Randomly getting name-checked in a PR that I happen to click into out of interest... 😅

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.

2 participants