Skip to content

feat(invitations): implement group invitation functionality with email notifications and management routes - #61

Merged
MohamedRamadanSaudi merged 1 commit into
devfrom
feat/invitations
Mar 8, 2026
Merged

feat(invitations): implement group invitation functionality with email notifications and management routes#61
MohamedRamadanSaudi merged 1 commit into
devfrom
feat/invitations

Conversation

@MohamedRamadanSaudi

Copy link
Copy Markdown
Owner

This pull request introduces a complete invitation system for group management, enabling admins and moderators to invite users to groups via email, manage invitations, and handle acceptance workflows. The implementation covers models, repositories, services, handlers, routes, and email notifications.

Invitation system implementation:

  • Added the GroupInvitation model with invitation statuses and relations to groups and users. (backend/internal/models/group_invitation.go)
  • Implemented the InvitationRepository with methods to create, query, and update invitations in the database. (backend/internal/repositories/invitation_repository.go)
  • Developed the InvitationService with business logic for sending, accepting, listing, canceling, and retrieving invitation info, including role checks and email notification triggers. (backend/internal/services/invitation_service.go)

API and handler integration:

  • Created InvitationHandler with endpoints for sending invitations, listing/canceling invitations, getting invitation info, and accepting invitations, along with error handling. (backend/internal/handlers/invitation_handler.go)
  • Defined DTOs for request/response types and converters for invitation data. (backend/internal/handlers/dto/invitation.go)

Routing and application wiring:

  • Added invitation routes to the API, including group-scoped and top-level endpoints, and integrated them into the main application setup. (backend/internal/routes/invitation.go, backend/internal/routes/routes.go, backend/cmd/server/main.go) [1] [2] [3] [4] [5] [6] [7]

Email notification enhancements:

  • Implemented SendGroupInvitationEmail in EmailService to send styled invitation emails with CTA links and expiration info. (backend/internal/services/email_service.go)

Related to #30, #31, #32, #33

@vercel

vercel Bot commented Mar 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mini-meeting Ready Ready Preview, Comment Mar 8, 2026 10:59pm

@MohamedRamadanSaudi
MohamedRamadanSaudi merged commit b3de7f0 into dev Mar 8, 2026
3 checks passed
@MohamedRamadanSaudi
MohamedRamadanSaudi deleted the feat/invitations branch March 8, 2026 23:37
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