Skip to content

Hide the pastel on commits written by an organization - #201

Merged
simonhamp merged 1 commit into
NativePHP:mainfrom
shanesmithdev:hide-pastel-on-organization-commits
Nov 22, 2026
Merged

simonhamp merged 1 commit into
NativePHP:mainfrom
shanesmithdev:hide-pastel-on-organization-commits

Conversation

@shanesmithdev

@shanesmithdev shanesmithdev commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Status: Ready for review. Not blocked by anything.

Organizations can't be given pastéis, and if you attempt it on the current app version (before this PR), you receive an error message: "Could not award a pastel. Please try again."

iOS Android

In this change, the pastel no longer shows on a commit written by an organization. In pastéis mode the button and its count are hidden on those commits, and givePastel ignores them if it's called anyway.

Everyone else's commits show the pastel as before.

Review

An independent review found no issues. It confirmed that:

  • isOrganization on the commit's author is the right check. The author is never null, including on deleted commits.
  • No other place shows or gives a pastel on a commit.
  • The new test fails if either the view change or the givePastel guard is removed.

Screenshots

Post by organization (NativePHP)

Notice that the pastel button (and its count) disappear

iOS light iOS dark Android light Android dark
Before
After

Post by user (Simon Hamp)

Notice that the pastel button (and its count) still show

iOS light iOS dark Android light Android dark
Before
After

Organizations can't be given pastéis, so an organization's commit
shows neither the pastel button nor its count, and givePastel ignores
the commit if it's called anyway.
@shanesmithdev
shanesmithdev marked this pull request as ready for review November 21, 2026 13:07
@simonhamp
simonhamp merged commit 63bdd72 into NativePHP:main Nov 22, 2026
7 checks passed
@shanesmithdev
shanesmithdev deleted the hide-pastel-on-organization-commits branch November 22, 2026 23:48
simonhamp added a commit that referenced this pull request Nov 23, 2026
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 added a commit that referenced this pull request Nov 23, 2026
… rail's end dot up with the actions (#179)

* 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>

* Expect the rail's end dot in the organization pastel test

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>

---------

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.

2 participants