Add delete button to taste profile tags in Stats

- Backend: DELETE /stats/taste/{tag} removes the row from user_tag_affinity
- API: deleteTasteTag(tag) helper
- Stats UI: × button on each tag chip, faint by default, full opacity on hover;
  invalidates stats query so the tag disappears immediately

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mattias Tall
2026-05-26 11:07:32 +02:00
parent a4cd32da4a
commit d6dd07e0bd
3 changed files with 33 additions and 5 deletions

View File

@@ -129,6 +129,7 @@ export const getCommunityShelf = () => api.get("/discovery/community");
// Stats
export const getStats = () => api.get("/stats");
export const deleteTasteTag = (tag) => api.delete(`/stats/taste/${encodeURIComponent(tag)}`);
// Admin
export const getAdminUsers = () => api.get("/admin/users");