Repository navigation
Hide the pastel on commits written by an organization - #201
Merged
simonhamp merged 1 commit intoNov 22, 2026
Merged
Conversation
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
marked this pull request as ready for review
November 21, 2026 13:07
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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."
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
givePastelignores 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:
isOrganizationon the commit's author is the right check. The author is never null, including on deleted commits.givePastelguard is removed.Screenshots
Post by organization (NativePHP)
Post by user (Simon Hamp)