feat: Add badge earned info to user profile badges API response #159
Loadingβ¦
Reference in New Issue
Block a user
No description provided.
Delete Branch "typosaurus/157-add-badge-earned-info-to-user-profile-badges-api-response"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What was built
Summary
The user profile badges API response is missing information about how each badge was earned. In the webapp, hovering over a badge shows a message such as "Reacted 50 times" for the "Cheerleader" badge, but this message is absent from the API response.
Example current API response:
Steps to Reproduce
Not provided.
Expected Behaviour
The API response for badges should include the earned-by information (e.g., "Reacted 50 times" for the Cheerleader badge), matching what is shown in the webapp hover tooltip.
Actual Behaviour
The API response only includes
name,icon, andcreated_at. The message describing how the badge was earned is missing.Environment
Not provided.
Reported by Lensflare via DevPlace.
Acceptance criteria
Commits
3a0f6820525a-68c403747c16b827a89016b5f72f2edf6b32974d049e1b1e4bd420f38b5d527d1bad2be4Run
Cost: 0.1444 USD Β· Nodes: 10 Β· Verification: make test
Closes #157