ReviewOS

stacks/wildloop

Wire the kudos button to the backend

#968
Closed glennmichael123 opened this 9 days ago ·
9 days ago

Problem

The feed kudos button has no @click handler, so kudos can't be given from the feed. The Kudos model exists but no endpoint is wired and tb.toggleKudos only mutates the local array (and the activity kudos_count denormalized counter is never recomputed).

Acceptance

  • Kudos give/remove endpoint (with the dedupe constraint from the data-integrity issue).
  • Wire the feed + detail kudos buttons; optimistic UI; recompute activities.kudos_count.
9 days ago

Done: KudosToggleAction (POST /api/activities/{id}/kudos), game-api.toggleKudos, feed button wired with optimistic UI. Commit dc71d02.

Sign in to comment on this issue.