feat: add tag filter to coding agent slack tags endpoint

Closed
SW
1mo ago
+242-4

Summary

  • Adds optional tag query param to GET /api/admins/coding/slack to filter mentions by Slack user_id
  • Creates new GET /api/admins/coding-agent/slack-tags endpoint returning distinct Slack users as filter options
  • Adds tests for the new getSlackTagOptionsHandler

Test plan

  • Run pnpm test lib/admins/coding-agent — all 5 tests pass
  • Verify GET /api/admins/coding/slack?tag=U123 returns only mentions from that user
  • Verify GET /api/admins/coding-agent/slack-tags returns deduplicated, alphabetically sorted users

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added API endpoint to retrieve distinct Slack users who have tagged the Coding Agent bot, with automatic deduplication and alphabetical sorting.
    • Added filtering capability to view Slack tags for a specific user.