fix(ui): hide report badge for non-admin users #147

Merged
hodlbod merged 2 commits from userAdityaa/flotilla:branch-fix into dev 2026-04-03 23:54:21 +00:00
Collaborator

Problem

Report badges were shown as a red badge next to chat messages for all users. While helpful for admins to identify problem content, this visibility was not actionable for regular users and could lead to confrontations.

Solution

Gate the report badge rendering behind the deriveUserIsSpaceAdmin(url) store, ensuring only space admins can see reports on messages.
Fixes #139

Testing

  • Non-admin users: Report badges will not appear on any messages
  • Admin users: Report badges will continue to display normally with report count

Impact

  • Reduces potential user friction by hiding non-actionable information
  • Reporting system still functions normally for admins
  • No security implications (reports remain in the data layer)
### Problem Report badges were shown as a red badge next to chat messages for all users. While helpful for admins to identify problem content, this visibility was not actionable for regular users and could lead to confrontations. ### Solution Gate the report badge rendering behind the `deriveUserIsSpaceAdmin(url)` store, ensuring only space admins can see reports on messages. Fixes #139 ### Testing - Non-admin users: Report badges will not appear on any messages - Admin users: Report badges will continue to display normally with report count ### Impact - Reduces potential user friction by hiding non-actionable information - Reporting system still functions normally for admins - No security implications (reports remain in the data layer)
userAdityaa added 1 commit 2026-04-03 20:42:29 +00:00
userAdityaa force-pushed branch-fix from 7d02c08fc7 to a414849668 2026-04-03 20:42:29 +00:00 Compare
hodlbod added 1 commit 2026-04-03 23:54:10 +00:00
hodlbod merged commit fceccf47be into dev 2026-04-03 23:54:21 +00:00
hodlbod deleted branch branch-fix 2026-04-03 23:54:21 +00:00
Sign in to join this conversation.