Repository navigation
fix: include the level and rank of level-up notifications in the API - #836
Open
sulimanbenhalim wants to merge 1 commit into
Open
sulimanbenhalim wants to merge 1 commit into
sulimanbenhalim wants to merge 1 commit into
Conversation
Member
|
@simonhamp does it make sense for you? |
Contributor
|
@nunomaduro yep looks good |
1 task
simonhamp
added a commit
to NativePHP/dev-null-app
that referenced
this pull request
Oct 27, 2026
devnull sends a leveled_up notification when you reach a new level, and the app had no case for it, so it drew one as "Local Dev @you replied to your commit". Now it names nobody, like a moderation update, with a "Lv. 5 · wheel" chip in your lane, "You reached level 5: wheel." and the rank's description underneath. The node uses Lucide's chevrons-up and a tap opens your profile. The level, rank and description come from dev-null-sh/dev-null.sh#836. Until that ships the API sends none of them, so the row says "You reached a new level." without the chip. 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.
the web inbox gets
levelandrankandrank_descriptionfor a level-up throughNotification::toArray()butNotificationResourcelists its fields one by one and never got themso the app receives a
leveled_upnotification with no way to tell which level was reachedthe rank now comes from a
rank()method on the model that both useadded an API test next to the web one and the exact payload test picks up the three new keys