Repository navigation
Put a commit's save, link, report and delete in one More menu - #7
Merged
Merged
Conversation
This was referenced Oct 17, 2026
The right of a commit's action row had a bookmark, then copy link or a More button that opened a sheet with Share link and Report commit. Now every commit has one More button with the same 44x36pt target. It opens the platform's own menu: a UIMenu on iOS, a dropdown on Android. Core's pressable already takes a :menu of NavActions and mobile-ui draws it on both platforms. The menu has Save commit or Unsave commit, Share link, and after a divider Report commit on someone else's published commit or Delete commit on your own. Report opens the report form straight away, so the sheet loses its Share and Report rows. Delete asks with the alert the commit page's trash already used. That flow moved into ShowsCommits so the Log, profiles and commit pages can all use it. A screen lets a deleted commit go the way it does when you come back from deleting one on its page. Deleting the commit a page is about still goes back. Co-Authored-By: Claude Opus 5.5 <[email protected]>
simonhamp
force-pushed
the
feat/more-menu
branch
from
October 18, 2026 17:38
5c93bcb to
3f94fe6
Compare
This was referenced Oct 18, 2026
Merged
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.
Every commit now has one ⋯ button on the right of its action row, in place of the bookmark, the copy link button and the old More button with its bottom sheet. It keeps the 44x36pt target. Tapping it opens the platform's own menu: a UIMenu on iOS and a dropdown on Android. Quote and the left side of the row are unchanged.
The menu holds:
No mobile-ui or core change was needed. Core's
<native:pressable :menu="[...]">already takes NavActions, and mobile-ui draws them on both platforms:NativeUIPressableRendererwraps the content in a SwiftUIMenu, and Android'sPressableRendereranchors anExpressiveMenudropdown. An icon-only pressable works fine as the anchor. The items are built inApp\Devnull\CommitMenu, each with a ref so tests can tap them.Delete moved from
CommitDetailintoShowsCommits, so the Log, profiles and commit pages share it. The alert remembers which commit it's asking about, and only the screen that put it up acts on the answer. After a delete the screen does what it already does when you come back from deleting a commit on its page: it shows what the response cache kept (the cache drops the commit from every list) and asks devnull again. Deleting the commit a page is about still goes back.What to look at
Verification
php artisan test: 632 passed. Pint is clean. CommitMenuTest is new and covers what each kind of commit's menu holds (iOS and Android icons), deleting from the Log, a profile and a reply on a commit page, cancelling, devnull saying no, and an alert another screen put up. CommitSheetTest, LogTest, CommitDetailTest, CommitCardTest and LogCacheTest now tap the menu items.On an iPhone 17 Pro simulator (iOS 26.2) against the timeline API, signed in as local_dev:
rm … → /dev/nulltoast, and the row left the Log.The screenshots live on the
more-menu-screenshotsbranch. Delete it once this is merged.🤖 Generated with Claude Code