Comment menu: full web-parity moderation
Adds the moderator actions the web widget supports to the React Native comment menu, reachable through the typed SDK's ModerationApi (SSO-authenticated):
- Approve / unapprove and mark spam / not-spam
- Ban user - options sub-modal (ban vs shadow, via email / email-domain / IP, duration, reason, delete-all-comments)
- Give / remove badge - badge picker
- View all from IP - in-app paginated list with a link to the full web moderation dashboard
Visual parity
- Spam comments show a red border; unapproved (awaiting moderation) show an orange border (new
warningtheme token); the awaiting-approval notice renders. - Locked comments now display the padlock indicator.
- The comment-menu loading shimmer sweeps the selected row instead of a bar at the bottom.
Notes
- Moderation actions are admin-only (
isSiteAdmin); all mutating calls carrytenantId+ a broadcast id so the live echo is filtered and the comment stays in place. - Requires
fastcomments-sdk@^5.0.2.
Full changelog: v5.1.0...v5.2.0