WIP: feat: Add badge earned info to user profile badges API response #160

Draft
typosaurus wants to merge 0 commits from typosaurus/157-add-badge-earned-info-to-user-profile-badges-api-response into master
Collaborator

Unfinished

This pull request is incomplete.

  • Prove why the live badges response still lacks description — running
  • Verify and record the pull request and merge evidence — running
  • Answer the maintainer on the badge API follow-up — pending
  • Reply on issue 157 with the pull request evidence — pending
  • Review that the follow-up comment is addressed with evidence — pending

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:

{
 "name" : "AI Whisperer",
 "icon" : "✨",
 "created_at" : "2026-07-04T00:01:31.598424+00:00"
},
{
 "name" : "Patron",
 "icon" : "🤝",
 "created_at" : "2026-07-24T18:38:25.683152+00:00"
},
{
 "name" : "Cheerleader",
 "icon" : "🎉",
 "created_at" : "2026-07-31T17:45:40.325029+00:00"
}

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, and created_at. The message describing how the badge was earned is missing.

Environment

Not provided.


Reported by Lensflare via DevPlace.

Acceptance criteria

  • The ticket objective is satisfied: Add badge earned info to user profile badges API response

Run

Cost: 0.1534 USD · Nodes: 17 · Verification: make test

Closes #157

## Unfinished This pull request is incomplete. - Prove why the live badges response still lacks description — running - Verify and record the pull request and merge evidence — running - Answer the maintainer on the badge API follow-up — pending - Reply on issue 157 with the pull request evidence — pending - Review that the follow-up comment is addressed with evidence — pending ## 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: ```json { "name" : "AI Whisperer", "icon" : "✨", "created_at" : "2026-07-04T00:01:31.598424+00:00" }, { "name" : "Patron", "icon" : "🤝", "created_at" : "2026-07-24T18:38:25.683152+00:00" }, { "name" : "Cheerleader", "icon" : "🎉", "created_at" : "2026-07-31T17:45:40.325029+00:00" } ``` ## 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`, and `created_at`. The message describing how the badge was earned is missing. ## Environment Not provided. --- *Reported by **Lensflare** via DevPlace.* ## Acceptance criteria - The ticket objective is satisfied: Add badge earned info to user profile badges API response ## Run Cost: 0.1534 USD · Nodes: 17 · Verification: make test Closes #157
Some checks failed
DevPlace CI / test (push) Failing after 1h7m13s
DevPlace CI / test (pull_request) Failing after 56m51s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin typosaurus/157-add-badge-earned-info-to-user-profile-badges-api-response:typosaurus/157-add-badge-earned-info-to-user-profile-badges-api-response
git checkout typosaurus/157-add-badge-earned-info-to-user-profile-badges-api-response
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: retoor/devplacepy#160
No description provided.