Skip to content

Extend Slack channel auto-add to all committee types#615

Merged
bokelley merged 2 commits into
mainfrom
bokelley/slack-channel-join-sync
Jan 5, 2026
Merged

Extend Slack channel auto-add to all committee types#615
bokelley merged 2 commits into
mainfrom
bokelley/slack-channel-join-sync

Conversation

@bokelley

@bokelley bokelley commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When users join a Slack channel linked to any committee (working group, council, chapter, or industry gathering), they are now auto-added as a member if they have a WorkOS account mapping
  • Previously this only worked for chapters and industry gatherings
  • Private (invite-only) groups are explicitly excluded from auto-add to preserve access control

Test plan

  • TypeScript compiles without errors
  • All 179 existing tests pass
  • App starts and serves pages correctly
  • Manual test: Join a Slack channel linked to a working group and verify user is added as member
  • Manual test: Verify private groups are NOT auto-added

🤖 Generated with Claude Code

bokelley and others added 2 commits January 4, 2026 20:19
When users join a Slack channel linked to any committee (working group,
council, chapter, or industry gathering), they are now auto-added as a
member if they have a WorkOS account mapping.

Previously, this only worked for chapters and industry gatherings.

Security: Private (invite-only) groups are explicitly excluded from
auto-add to preserve the intended access control.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
For the real-time member_joined_channel event, we now check if the Slack
channel is private (channel_type 'G'). If a private committee is linked
to a private Slack channel, we allow auto-add since Slack already
enforces access control.

For the sync function (when accounts are linked), we only process public
channels since getUserChannels API only fetches public channel
memberships. Private committees remain excluded in this path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 57cfbb6 into main Jan 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant