Repository navigation
feat: make notification types easier to tell apart - #489
Merged
xHeaven merged 4 commits intoOct 19, 2026
Merged
Conversation
Replies, quotes and mentions now show the person's avatar on the rail instead of the type icon, so they read like commits. Quotes also show the commit they quote. Follow-back is an icon with a tooltip, and a group of followers only gets it per person once expanded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues were identified in the focused UI changes, recipient-scoped loading, or accompanying tests.
No open issues 🎉
What changed in this PR
Makes notification types easier to distinguish while preserving the existing inbox grouping behavior.
Changes:
- Gives replies, quotes, and mentions avatar-led headers.
- Adds recipient-owned quoted-commit previews and deleted-commit tombstones.
- Replaces follow-back buttons with tooltip icons and removes them from multi-follower summaries.
| File | Description |
|---|---|
| tests/Unit/NotificationIndex.test.tsx | Adds tooltip support to test rendering. |
| tests/Unit/NotificationInbox.test.tsx | Covers quote previews, tombstones, and follow controls. |
| tests/Feature/NotificationInboxTest.php | Tests quoted-commit loading and recipient isolation. |
| resources/js/types/notification.ts | Types quoted-commit preview data. |
| resources/js/pages/notification/index.tsx | Updates notification layouts, previews, and follow controls. |
| app/Queries/NotificationGroupsQuery.php | Eager-loads recipient-owned quoted commits, including deleted rows. |
Review effort: Balanced
Production moved the follow-back button onto the shared follow state (useIsFollowing and onFollowHttpException). The icon follow-back button here now uses both, in place of its own useState and throttle toast. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The API's commit resource includes quoted_commit whenever the relation is loaded, so loading it in the shared paginate() added that key to every API notification. The web inbox now loads it on its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
udaykiranchenna
added a commit
to udaykiranchenna/dev-null.sh
that referenced
this pull request
Oct 19, 2026
…notification-excerpt Resolves the conflicts with dev-null-sh#489, which moved the bordered block into OwnCommitExcerpt and shows the quoted commit under quotes. The quoted commit now loads its image count too, so an image-only one shows "Image" instead of an empty block. 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.
The notifications page drew every kind of update the same way, with a type icon on the rail and a row of avatars, so replies and quotes were hard to pick out from follows and stars.
Replies, quotes and mentions now put the person's avatar on the rail where the icon was, the way Twitter does. They read like commits: name, handle and time on top, a short "Replied to your commit" line, then the text. Follows, stars and moderation updates keep their icons and stacked avatars.
A quote now shows the commit it quotes underneath, in the same grey box stars already use for your commit. If you deleted that commit, it shows the usual tombstone. The web inbox loads
commit.quotedCommitthrough a newNotificationGroupsQuery::withQuotedCommits(), with trashed rows and limited to the recipient's own commits. A quote notification always quotes the recipient, and the limit means a reply that quotes someone else never sends that commit to the page. The API's notifications don't load it, so their response is unchanged.The Follow button on follow notifications is now an icon styled like save and report, with a tooltip naming who it follows back. A group of several followers no longer has one on its summary row. It could only follow the newest of them back, and its state didn't match that person's row once the group was expanded. Each follower still gets their own in the expanded list.
For review:
notification/index.tsxis the old summary header re-indented inside a new condition. It reads much smaller with whitespace hidden..tsxunit tests now render insideTooltipProvider, asCommitStarButton.test.tsxdoes.An expanded group of followers, each with their own follow-back icon:
I checked it with Playwright at 1440×900, 1366×650 and 390×844 in light and dark. Layout shift stayed at 0 on load, when expanding a group and when following back.
NotificationInboxTesthas a new test for the quoted commit, covering the tombstone and a reply that quotes someone else. The unit tests cover the quote and the group without a button. I ran the notification tests, lint, format and types locally, not the full suite.🤖 Generated with Claude Code