feat: team admin commands with role-based management#16
Merged
Conversation
Implement slash commands for team CRUD and configuration by main admin and team leads, with automatic team resolution for lead-owned teams. - Team create/delete/set-lead: admin-only commands to manage teams - Team add/remove/members: team-lead commands for roster management - Team set schedule/channel/questions/timezone: per-team configuration - Automatic team context resolution for team leads (single-team focus) - UserProvider interface for Rocket.Chat user lookup via REST API - Rocket.Client.UserInfo method wrapping rest.UserInfo - 12 new tests covering all command paths and edge cases Closes #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements slash commands for team CRUD and configuration, enabling main admin and team leads to manage teams through Rocket.Chat.
Changes
internal/commands/teams.go— All team management commandsteam create,team delete,team set-leadteam add,team remove,team membersteam set schedule|channel|questions|timezoneinternal/commands/registry.go— AddedUserProviderinterface for user lookupinternal/rocket/client.go— AddedUserInfomethod wrapping REST APIcmd/bot/main.go— WiredUserProvideradapter, registered team commandsinternal/commands/teams_test.go— 12 tests, all passingCloses #6