Repository navigation
feat: move commit actions into a menu, with follow, mute, block and delete - #1371
Merged
nunomaduro merged 5 commits intoNov 3, 2026
Merged
Conversation
Contributor
richardkeep
marked this pull request as ready for review
November 3, 2026 18:45
…ore-menu # Conflicts: # resources/js/components/commit-card.tsx # resources/js/components/user-safety-menu.tsx
nunomaduro
marked this pull request as draft
November 3, 2026 19:00
richardkeep
marked this pull request as ready for review
November 3, 2026 19:05
9 tasks
nunomaduro
pushed a commit
that referenced
this pull request
Nov 11, 2026
Since the commit actions moved into a menu (#1371), its 28px button sits in the actions row at every width, hidden but still taking room. The row is now 28px tall everywhere, centred 14px up, while from md the end dot and the reply spine running into it still sat 12px up, so the dot was 2px below the icons. Both now sit 14px up at every width. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Summary
Each commit's actions row had separate Share and Report buttons on the right, and deleting your own commit used a trash icon in the header that only appeared on hover. These now sit in a single horizontal three-dot "More actions" menu. The menu also lets you follow, mute or block the commit's author without opening their profile or hover card.
The menu has three groups, separated by dividers:
yshortcut still works) and Send in Remotes, when available.Changes
commit-secondary-actions.tsx: the Share dropdown and the Report button become oneEllipsis(horizontal three-dot) dropdown.useIsFollowingstate andfollowVisitOptions, so other follow controls on the page stay in sync.user-preview.tsx: addsusePreviewRelationshipandforgetPreview, both built on the existing preview fetch and cache.user-safety-menu.tsx:visitSafety()andBlockUserDialogare pulled out ofUserSafetyMenuso both menus share them.UserSafetyMenubehaves as before.commit-card.tsx: removes the hover trash button from the header, along with the logic that hid the hash so the button could replace it. Delete now opens the existing inline confirmation with the 30-second undo, and Cancel returns focus to the menu trigger.commit-thread.tsx'sThreadActionspassesonDeletethrough.commit-report-button.tsx: removesCommitReportButton, which is no longer used.CommitShareActions.test.tsxis updated for the menu. New tests cover the report and delete flows, the block confirmation, and the author items: loading state, follow and unfollow, guests, mute and unmute, block, and unblock.FollowState.test.tsxnow reaches the Block button through the extractedBlockUserDialog.Validation
All run locally; hosted CI is pending.
Manual: checked in a desktop browser and on a phone by the PR author, who reported it looks fine.
bun run test:lint: pass.bun run test:types: pass.bun run test:unit: 218 pass, 1 fail. The failure,tests/Unit/RemotePushAccountIsolation.test.ts, also fails on the base revision.vp test run --config tests/draft-images.config.tsonCommitShareActions.test.tsxandFollowState.test.tsx: 70/70 pass.vendor/bin/pest --parallel --ci: 5217 passed. The--coverage --exactly=100.0variant could not run locally because no coverage driver is installed. No PHP files changed.Independent review
6b534ca4, headb116e05d.bef93080): FAIL. The new author items had no tests, andCommitReportButtonwas left unused. Both are fixed ine301e525.e301e525): PASS.b116e05d, which switches the trigger to horizontal dots): PASS.Evidence
BEFORE (WEB)

AFTER (WEB)

BEFORE (MOBILE)

AFTER (MOBILE) - My Commit

AFTER (MOBILE) - Someone else's Commit

Summary by CodeRabbit