Skip to content

Hide replies on the Log until asked, open them in place, and line the rail's end dot up with the actions - #179

Merged
simonhamp merged 5 commits into
mainfrom
feat/log-threads
Nov 23, 2026
Merged

simonhamp merged 5 commits into
mainfrom
feat/log-threads

Conversation

@simonhamp

@simonhamp simonhamp commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Replies no longer show under commits on the Log. A commit's replies button moves to its own line under the action row and opens the thread in place, ten replies at a time. Replies get the same button, which opens their own replies inline one step in. The rail's end dot now lines up with the action row on every commit, opening and closing a thread animates, a star or pastel pops when you give it, and Quote has a label.

What changed

End dot on the rail. The dot was placed a fixed 20pt above the bottom of the commit's row, which only matched the action row by accident. Two things moved the action row away from it. The row had -my-[6]: iOS takes that space back, but Android's ComposeFlexLayout turns a negative margin into a drawing offset and keeps the space, so the actions sat 6pt lower on Android. And a commit with a thread under it had no bottom padding, so its actions were 13pt lower than on a commit without one. That's why the dot was above the actions on one commit and below on the next.

The dot is now drawn inside the action row itself, as an absolute child at the rail's x (top-[9] -left-[33]), so it's centred on the actions whatever the body, images or Show more state above, on both platforms. The action row lost its vertical negative margins and is a plain 36pt row. The rail's solid line and the dashes down to an open thread still come from the bottom of the row, so they're worked out from the fixed heights under the actions (padding, the replies line) and end 2pt inside the dot's ring, where a pt either way doesn't show. Rows are 6pt taller on iOS than before and 6pt shorter on Android, so both now match.

Replies hidden. The Log no longer draws devnull's reply preview. "N replies" sits on its own 36pt line under the actions, with a chevron that turns down and reads "Hide replies" while the thread is open. It's the same on Profile, Search, Starred and org feeds, since they share the feed partial.

The commit page uses the same button for its commit's replies, which it also opens in place. At first only feeds turned the chevron, so the commit page showed "Hide replies" with the chevron still pointing right. It now turns there too, with the same 220ms animation. A reply's button on a commit page still opens that reply's page, so its chevron stays put.

Ten at a time. Opening a thread shows its first ten replies, oldest first, with Show more for the next ten. Client::RepliesPerPage goes from 5 to 10, which the commit page uses too. While testing I found devnull's API ignores limit and always sends up to 50 replies a page (CommitReplyController::index never reads it, on dev-null.sh production as well). So the Log keeps what it was sent and shows ten at a time, and only asks for the next page once they all show. The commit page still shows whatever a page brings, as it did before.

Second-level replies inline. A reply opened in the Log has its own replies button under its actions. Tapping it opens those replies under it, indented 32pt and hung off the dashed line from its avatar, with their own Show more. A reply that deep opens its page from its replies button, as before. Threads are kept by the id of the commit or reply they answer, so nested ones sit in the same $threads. App\Devnull\ThreadRows works out the list rows of an open thread and every line beside them. "Show more" is now a 44pt list row of its own, so it can follow a reply's nested replies. Closing a commit's thread closes the replies opened inside it.

Opening and closing animate. mobile-ui's list can't animate a row coming in or going (see below), so thread rows fade. A newly opened page is drawn see-through and nudged up 8pt, then a frame later drawn as it should be, which EDGE eases to over 220ms with animate-duration. Closing fades the rows out the same way, then takes them out. The chevron turns with the same duration. Only what's beside the rail fades, so the commit's rail running past never blinks.

No jump when a thread opens or closes. The commit's row used to lose the 7pt under its replies line, where the hairline sits, while its thread was open. When the commit's top was off screen, the iPhone's list held the row below still and moved the commit by those 7pt instead, so its photo jumped. The row now keeps that padding with the thread open and only the hairline goes. The first reply takes the 7pt off its own top, so the open thread looks the same.

Star and pastel taps. The web's star-pop grows the star to 1.35, tilts it 12 degrees and springs it back, only when starring. Its pastel button scales the pastel to 1.25 and back. The app does the same: drawn with the animation on, then scaled up, then back with a spring (star) or ease-out (pastel). The animation props come off afterwards, so the rows don't carry an animated node for good.

The steps between frames come from App\Devnull\Beat, an AsyncTask that waits a few milliseconds on a background thread. When it comes back the screen draws the next step. Concerns\PopsReactions and Concerns\ExpandsThreads drive it.

Quote label. Quote reads "Quote" beside its icon, and Reply always has its label now that the replies count isn't in the row.

Upstream gaps

  1. No animated row insertion or height change in native:list. On iOS, NativeUIListRenderer updates its ForEach outside an animation transaction, and on Android ListRenderer adds item(key = row.id) without Modifier.animateItem(). So opened replies take their space at once and the rows below jump, and only their content fades. Animating keyed inserts and removals (and the height change they cause) in mobile-ui would let this slide open properly.
  2. No sequence or on-appear animation in EDGE. animate-duration only eases between two frames, so anything that goes there and back (a pop) or starts from a different value when it appears (a fade-in) needs a PHP round trip per step. Something like appear-opacity / appear-translate-y, or keyframes, would remove the Beat tasks. The first frame also has to carry the animation props already, or iOS adds NodeAnimationModifier and the new value in the same update and nothing animates.
  3. devnull's replies endpoint ignores limit. Not mobile, but worth a dev-null.sh change so the app stops downloading 50 replies to show ten.

Related PRs

How I tested

Against a local API (dev-null.sh production 2ef29e77 plus the picture viewer branch) on port 8191, signed in as local-dev, with seeded commits: one with 14 replies where the first has 12 replies of its own and two others have 3, a short commit with 3 replies (one with an image), an image commit with none, a run of two commits by one author, one-line and long commits.

On an iOS 27.0 simulator and an Android 35 emulator, light and dark, scrolling the Log: closed and open threads, nested replies, Show more at both levels, closing with nested replies open, the end dot on short, long, image and thread commits, starring commits and replies, pastéis on with a pastel given. On a commit page, opening and closing its replies with the button, where the chevron turned both ways on both platforms. The recordings below show the fade, the chevron and the star and pastel pops.

php artisan test: 1,903 pass. tests/Feature/Screens/LogThreadTest.php replaces ReplyPreviewTest.php and covers hidden replies, ten at a time over a 13-reply page, nested replies and their lines, closing, the fade and pop steps, the end dot's place in the action row on both platforms, the rail meeting it, and the commit's row keeping its height with its thread shut, opening, open and closing.

Watch for: the fade waits 60ms for the phone to draw the see-through frame. On a slow Android phone that may need to be longer, or the rows could appear without fading. And the replies line adds 40pt under every commit with replies, which makes the Log a little longer.

Screenshots

replies-toggle is the commit page with its replies open. Before, the chevron still pointed right beside "Hide replies".

replies-toggle

iOS light iOS dark Android light Android dark
Before
After

Recordings: Android light, after, iOS light, after

log (top of the Log, threads closed)

iOS light iOS dark Android light Android dark
Before
After

log-thread (before: the preview thread. After: a thread and a reply's replies open)

iOS light iOS dark Android light Android dark
Before
After

Show more at the foot of a thread, before tapping and after.

Recordings: open replies, iOS, close replies, iOS, open and close, Android, star pop, iOS, star pop, Android, pastel pop, iOS

  • No visible change

🤖 Generated with Claude Code

…ith the actions

Replies no longer show under a commit in a feed. The replies button moves
to its own line under the action row and opens the thread in place, ten
replies at a time, with Show more for the next ten. A reply has the same
button under its own actions, which opens its replies inline one step in.
Deeper than that, the button opens the reply's page.

devnull's API sends 50 replies a page whatever `limit` asks for, so the
app keeps what it was sent and shows ten at a time, asking for the next
page only once they all show.

The end dot of a commit's rail is now drawn inside its action row, so it
sits level with the actions whatever is above or below them. It used to
be placed a fixed distance from the row's bottom, which assumed the action
row's -my-[6] pulled it in. iOS does that, Android keeps the space and only
moves the drawing, and a row with a thread under it had no bottom padding,
so the dot sat above the actions in some rows and below in others. The
action row now has no vertical negative margins, and the rail's lines are
worked out from the fixed heights under it to meet the dot.

Opening and closing a thread fades its rows in and out, and the chevron
turns. Starring a commit pops the star as the web's star-pop does, and
giving a pastel bumps it as the web's pastel button does. EDGE only animates
from one frame to the next, so each step is a frame drawn when a short
background Beat comes back.

Quote now has its label beside its icon, as Reply always does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the Log, opening or closing a commit's replies dropped or added the 7pt
under its replies line, where the hairline sits. When the commit's top was
off screen, the iPhone's list held the row below still instead, so the
commit's photo jumped by 7pt.

The row now keeps that padding, the hairline's 1pt included, with its
replies open, and only the hairline goes. The first reply takes the 7pt
off its own top, so the thread looks the same, and the elbow and the
lines beside a reply are placed from its avatar. The commit page is left
as it was: it's a scroll view, which holds its top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e Log

The replies button's chevron only turned in feeds, where the replies open
in place. A commit page opens its commit's replies in place too, but there
the chevron kept pointing right with "Hide replies" beside it. It now
turns down there as well, over the same 220ms, and carries the animation
while shut so iOS animates the first turn. A reply's button on a commit
page still opens its page, so its chevron stays put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simonhamp added a commit that referenced this pull request Nov 18, 2026
…e Log

A group's toggle swapped a right chevron for a down one, and its
notifications popped in and out. Now the chevron turns, and the
notifications fade in nudged down into place, then fade out the same way
before they go. Older ones fade in as they load. It's the Log's approach
from #179: the rows are drawn see-through for a frame, then drawn as they
should be when a Beat comes back, 220ms each way. Beat.php is copied byte
for byte from #179 so the two merge cleanly.

Opening, the chevron turns on that second frame rather than the first.
iOS animates everything about a node that changes in the same frame as
its animated props, so turning it while the row grew moved the chevron
down and back up as it turned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp marked this pull request as ready for review November 23, 2026 17:24
The test came in from main (#201) before this branch drew the end dot
inside the action row. c1 is by an organization and c2 by Ada, so c1
is a run of one and its actions now end with the dot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit f85d596 into main Nov 23, 2026
2 checks passed
@simonhamp
simonhamp deleted the feat/log-threads branch November 23, 2026 17:49
simonhamp added a commit that referenced this pull request Nov 23, 2026
… page within its tree (#196)

* Hide replies on the Log until asked, and line the rail's end dot up with the actions

Replies no longer show under a commit in a feed. The replies button moves
to its own line under the action row and opens the thread in place, ten
replies at a time, with Show more for the next ten. A reply has the same
button under its own actions, which opens its replies inline one step in.
Deeper than that, the button opens the reply's page.

devnull's API sends 50 replies a page whatever `limit` asks for, so the
app keeps what it was sent and shows ten at a time, asking for the next
page only once they all show.

The end dot of a commit's rail is now drawn inside its action row, so it
sits level with the actions whatever is above or below them. It used to
be placed a fixed distance from the row's bottom, which assumed the action
row's -my-[6] pulled it in. iOS does that, Android keeps the space and only
moves the drawing, and a row with a thread under it had no bottom padding,
so the dot sat above the actions in some rows and below in others. The
action row now has no vertical negative margins, and the rail's lines are
worked out from the fixed heights under it to meet the dot.

Opening and closing a thread fades its rows in and out, and the chevron
turns. Starring a commit pops the star as the web's star-pop does, and
giving a pastel bumps it as the web's pastel button does. EDGE only animates
from one frame to the next, so each step is a frame drawn when a short
background Beat comes back.

Quote now has its label beside its icon, as Reply always does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a commit's row the same height with its replies open or shut

On the Log, opening or closing a commit's replies dropped or added the 7pt
under its replies line, where the hairline sits. When the commit's top was
off screen, the iPhone's list held the row below still instead, so the
commit's photo jumped by 7pt.

The row now keeps that padding, the hairline's 1pt included, with its
replies open, and only the hairline goes. The first reply takes the 7pt
off its own top, so the thread looks the same, and the elbow and the
lines beside a reply are placed from its avatar. The commit page is left
as it was: it's a scroll view, which holds its top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Turn the commit page's replies chevron down while they show, as on the Log

The replies button's chevron only turned in feeds, where the replies open
in place. A commit page opens its commit's replies in place too, but there
the chevron kept pointing right with "Hide replies" beside it. It now
turns down there as well, over the same 220ms, and carries the animation
while shut so iOS animates the first turn. A reply's button on a commit
page still opens its page, so its chevron stays put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open every level of replies in place on the commit page, as the web does

A reply's "N replies" on the commit page used to open that reply's own
page. Now it opens its replies under it, and theirs under them, as deep
as they go, the way the web's commit page does. Tapping a reply still
opens its page.

The rows come from #179's ThreadRows, now recursive, and the threads
from ExpandsThreads, which replaces the page's separate mechanism for a
deleted reply's replies. Indentation stops at the web's depth of three
(maxIndentDepth in commit-thread.tsx). Replies at the third step hang
on their own elbow off the line of the reply they answer, and deeper
ones line up under them with no lines and a "replying to @handle" line.
"Show more" is a row of its own on the page too, as on the Log, and says
"to @handle" past that depth.

The Log keeps opening only the commit's replies in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the commit page to a commit in its tree instead of pushing another

Tapping an ancestor, a part of the series or the author's thread, or a
reply at any depth used to push a new commit screen. Now the same page
moves to it: the commit becomes the one the page is about, with what's
above it as its ancestors and its replies showing below, built from
what the page already has so nothing goes blank. The commit it was on
keeps its replies opened, so going back up shows where you came from.
Reply on a commit in the tree retargets the reply bar the same way.
Commits outside the tree still push.

Back still leaves the screen, as Simon asked. There's no history of the
commits the page moved through.

The scroll view's rows are its own children now, so auto-scroll-to can
bring the commit into view. Both platforms jump on the first request
and animate later ones. Deleting a commit the page moved to takes the
page back to its parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Animate the commit page's move to another commit in its tree

The scroll view now has animate-layout, so the rows the page keeps slide
to their new places and the ones it adds or drops fade, and
auto-scroll-animated, so the first move animates too. The focused commit
is keyed commit-<id>, as it is among the commits above it, so moving up
the tree slides that row rather than redrawing it.

Going back to a row the scroll view already went to used to mount the
scroll view again, which would make every row new. It now passes a new
auto-scroll-token instead.

These need NativePHP/mobile-air#736 and NativePHP/mobile-ui#225. Without
them the move jumps, as before, and asking for the same row twice in a
row doesn't scroll. The test that reads the new props skips until vendor
has them (Tests\Support\LayoutAnimation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the commit page's short hash to the top right of the commit

It sat under the commit's text. Now it ends the row with the name, handle
and time, pushed right by a spacer, in the same size and ink. Only the
focused commit shows a hash, so no other rows change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open the replies of the commits above the commit in place

The commits above the one the page is on keep their "N replies" button,
and it now opens their replies in place under them, like the commit's and
every reply's, instead of moving the page there.

The reply on the line down to the commit is left out of the list and of
the count, since it already shows below. Closing an ancestor's replies
leaves the replies of the commits on the line open (drawsOnItsOwn in
ExpandsThreads). After a move the scroll target counts the rows opened
above the commit, and opening or closing them later doesn't scroll.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fold the replies of the commits above the commit on every move

The commits above the one the page is on now start with their replies
folded behind "N replies", whether the page opened on a reply or moved
down to one. Before, moving down kept the replies of the commit the page
left open under it, and any opened on a commit above stayed open.

Moving up, the commit the page moves to shows its replies with the way
back down opened, as before. The scroll target after a move is just the
ancestor count again, since nothing is open above the commit then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hold the mention suggestions to six rows and scroll the rest

With more than six people and organizations to suggest, the rows sit in
a scroll view six rows tall inside the suggestions, so the list can't push
the field and the bar's buttons down under the keyboard. Six or fewer are
drawn as before, as tall as their rows. The slot around the list keeps its
place, so the field's row doesn't move among its siblings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let a caller that scrolls the mention list itself turn off its inner scroll

The composer sheet in #198 sizes its mention list and scrolls it. With more
than six rows the partial's own six-row scroll view sat inside that one, so
a short phone showed two scroll bars. 'scrolls' => false draws every row as
tall as it is with no scroll view inside. It defaults to true, so the reply
bar and the conversation bar keep their six-row list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count the replies of the commits above from their own pages

devnull sends the ancestors on a commit's page without replies_count, so a
commit above only showed its "N replies" if the page had moved through it
before. Each ancestor that shows now reads its count from its own page,
kept from before at once and asked for behind, once per refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the asked-for ancestor counts with the ancestors

Moves the new property away from $forceFullFrames, which the phone build
removes, so the two merge cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Suggest every matching org member in Remotes, scrolling past six

Org threads ranked members on the phone and kept the first six, so the
list never scrolled. Now every member who matches is listed, and the list
scrolls past six rows like the reply bar's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tidy a blank line left by the last commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Scroll to a reply you just sent on a commit page

Sending a reply from the bar or the composer sheet now scrolls the page to
the staged reply. The scroll view counts its direct children, so the page's
rows are now listed by CommitDetail::pageRows() and the view draws exactly
that list. The component looks the staged reply up in the same list, so the
index can't drift from what's drawn.

When devnull's reply replaces the staged one it lands on the same row, so
the target and token stay put and the page doesn't move again. The one case
where it moves is a reply to your own commit that becomes the next part of
your thread; the page follows it there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Draw the hairline under replies that another commit follows

A commit row gives its hairline up when its replies open under it, and on
a commit page the last reply never drew one. So the replies of a commit
above the focused one ran straight into the next commit with no line
between them. The same happened under the focused commit when later parts
of its series follow.

ThreadRows::under() takes a hairline flag now. Ancestor threads always end
on the line, and the focused commit's replies do when it isn't the last
row. Replies at the foot of the page still end without one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
simonhamp added a commit that referenced this pull request Nov 23, 2026
…#195)

* Hide replies on the Log until asked, and line the rail's end dot up with the actions

Replies no longer show under a commit in a feed. The replies button moves
to its own line under the action row and opens the thread in place, ten
replies at a time, with Show more for the next ten. A reply has the same
button under its own actions, which opens its replies inline one step in.
Deeper than that, the button opens the reply's page.

devnull's API sends 50 replies a page whatever `limit` asks for, so the
app keeps what it was sent and shows ten at a time, asking for the next
page only once they all show.

The end dot of a commit's rail is now drawn inside its action row, so it
sits level with the actions whatever is above or below them. It used to
be placed a fixed distance from the row's bottom, which assumed the action
row's -my-[6] pulled it in. iOS does that, Android keeps the space and only
moves the drawing, and a row with a thread under it had no bottom padding,
so the dot sat above the actions in some rows and below in others. The
action row now has no vertical negative margins, and the rail's lines are
worked out from the fixed heights under it to meet the dot.

Opening and closing a thread fades its rows in and out, and the chevron
turns. Starring a commit pops the star as the web's star-pop does, and
giving a pastel bumps it as the web's pastel button does. EDGE only animates
from one frame to the next, so each step is a frame drawn when a short
background Beat comes back.

Quote now has its label beside its icon, as Reply always does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a commit's row the same height with its replies open or shut

On the Log, opening or closing a commit's replies dropped or added the 7pt
under its replies line, where the hairline sits. When the commit's top was
off screen, the iPhone's list held the row below still instead, so the
commit's photo jumped by 7pt.

The row now keeps that padding, the hairline's 1pt included, with its
replies open, and only the hairline goes. The first reply takes the 7pt
off its own top, so the thread looks the same, and the elbow and the
lines beside a reply are placed from its avatar. The commit page is left
as it was: it's a scroll view, which holds its top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Turn the commit page's replies chevron down while they show, as on the Log

The replies button's chevron only turned in feeds, where the replies open
in place. A commit page opens its commit's replies in place too, but there
the chevron kept pointing right with "Hide replies" beside it. It now
turns down there as well, over the same 220ms, and carries the animation
while shut so iOS animates the first turn. A reply's button on a commit
page still opens its page, so its chevron stays put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Read an author's replies to themselves as one thread, as the web does

When someone replies to their own commit, the web treats their earliest
reply as the next part of a thread rather than as a reply. The commit page
now does the same: the parts follow the commit on its rail, each marked with
its place (2/5), ten at a time with "Show more of this thread", and the last
part's replies show under it. The next part is left out of each commit's
replies, and the earlier parts above a commit get their places too.

devnull's API doesn't send the web's continuation_id yet, so the app works
the parts out from each commit's replies (SelfThread), fetching them one
after another. When the API starts sending it, the app takes its word.

On the Log, profiles, search, starred and organizations, a thread opened in
place leaves out the author's next part and shows "Show thread", which opens
the commit's page. Without continuation_id from the API, that link can only
show once the replies have been opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open every level of replies in place on the commit page, as the web does

A reply's "N replies" on the commit page used to open that reply's own
page. Now it opens its replies under it, and theirs under them, as deep
as they go, the way the web's commit page does. Tapping a reply still
opens its page.

The rows come from #179's ThreadRows, now recursive, and the threads
from ExpandsThreads, which replaces the page's separate mechanism for a
deleted reply's replies. Indentation stops at the web's depth of three
(maxIndentDepth in commit-thread.tsx). Replies at the third step hang
on their own elbow off the line of the reply they answer, and deeper
ones line up under them with no lines and a "replying to @handle" line.
"Show more" is a row of its own on the page too, as on the Log, and says
"to @handle" past that depth.

The Log keeps opening only the commit's replies in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the commit page to a commit in its tree instead of pushing another

Tapping an ancestor, a part of the series or the author's thread, or a
reply at any depth used to push a new commit screen. Now the same page
moves to it: the commit becomes the one the page is about, with what's
above it as its ancestors and its replies showing below, built from
what the page already has so nothing goes blank. The commit it was on
keeps its replies opened, so going back up shows where you came from.
Reply on a commit in the tree retargets the reply bar the same way.
Commits outside the tree still push.

Back still leaves the screen, as Simon asked. There's no history of the
commits the page moved through.

The scroll view's rows are its own children now, so auto-scroll-to can
bring the commit into view. Both platforms jump on the first request
and animate later ones. Deleting a commit the page moved to takes the
page back to its parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Animate the commit page's move to another commit in its tree

The scroll view now has animate-layout, so the rows the page keeps slide
to their new places and the ones it adds or drops fade, and
auto-scroll-animated, so the first move animates too. The focused commit
is keyed commit-<id>, as it is among the commits above it, so moving up
the tree slides that row rather than redrawing it.

Going back to a row the scroll view already went to used to mount the
scroll view again, which would make every row new. It now passes a new
auto-scroll-token instead.

These need NativePHP/mobile-air#736 and NativePHP/mobile-ui#225. Without
them the move jumps, as before, and asking for the same row twice in a
row doesn't scroll. The test that reads the new props skips until vendor
has them (Tests\Support\LayoutAnimation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the commit page's short hash to the top right of the commit

It sat under the commit's text. Now it ends the row with the name, handle
and time, pushed right by a spacer, in the same size and ink. Only the
focused commit shows a hash, so no other rows change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open the replies of the commits above the commit in place

The commits above the one the page is on keep their "N replies" button,
and it now opens their replies in place under them, like the commit's and
every reply's, instead of moving the page there.

The reply on the line down to the commit is left out of the list and of
the count, since it already shows below. Closing an ancestor's replies
leaves the replies of the commits on the line open (drawsOnItsOwn in
ExpandsThreads). After a move the scroll target counts the rows opened
above the commit, and opening or closing them later doesn't scroll.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fold the replies of the commits above the commit on every move

The commits above the one the page is on now start with their replies
folded behind "N replies", whether the page opened on a reply or moved
down to one. Before, moving down kept the replies of the commit the page
left open under it, and any opened on a commit above stayed open.

Moving up, the commit the page moves to shows its replies with the way
back down opened, as before. The scroll target after a move is just the
ancestor count again, since nothing is open above the commit then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hold the mention suggestions to six rows and scroll the rest

With more than six people and organizations to suggest, the rows sit in
a scroll view six rows tall inside the suggestions, so the list can't push
the field and the bar's buttons down under the keyboard. Six or fewer are
drawn as before, as tall as their rows. The slot around the list keeps its
place, so the field's row doesn't move among its siblings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let a caller that scrolls the mention list itself turn off its inner scroll

The composer sheet in #198 sizes its mention list and scrolls it. With more
than six rows the partial's own six-row scroll view sat inside that one, so
a short phone showed two scroll bars. 'scrolls' => false draws every row as
tall as it is with no scroll view inside. It defaults to true, so the reply
bar and the conversation bar keep their six-row list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count the replies of the commits above from their own pages

devnull sends the ancestors on a commit's page without replies_count, so a
commit above only showed its "N replies" if the page had moved through it
before. Each ancestor that shows now reads its count from its own page,
kept from before at once and asked for behind, once per refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the asked-for ancestor counts with the ancestors

Moves the new property away from $forceFullFrames, which the phone build
removes, so the two merge cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Suggest every matching org member in Remotes, scrolling past six

Org threads ranked members on the phone and kept the first six, so the
list never scrolled. Now every member who matches is listed, and the list
scrolls past six rows like the reply bar's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tidy a blank line left by the last commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Scroll to a reply you just sent on a commit page

Sending a reply from the bar or the composer sheet now scrolls the page to
the staged reply. The scroll view counts its direct children, so the page's
rows are now listed by CommitDetail::pageRows() and the view draws exactly
that list. The component looks the staged reply up in the same list, so the
index can't drift from what's drawn.

When devnull's reply replaces the staged one it lands on the same row, so
the target and token stay put and the page doesn't move again. The one case
where it moves is a reply to your own commit that becomes the next part of
your thread; the page follows it there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Draw the hairline under replies that another commit follows

A commit row gives its hairline up when its replies open under it, and on
a commit page the last reply never drew one. So the replies of a commit
above the focused one ran straight into the next commit with no line
between them. The same happened under the focused commit when later parts
of its series follow.

ThreadRows::under() takes a hairline flag now. Ancestor threads always end
on the line, and the focused commit's replies do when it isn't the last
row. Replies at the foot of the page still end without one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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