-
Notifications
You must be signed in to change notification settings - Fork 2
feat(support): Enhance support ticket email notifications and workflows #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add comprehensive email notification system for support tickets - Implement user confirmation emails for bug reports and contact requests - Add support team notification emails for new tickets - Extend ticket status update email notifications - Improve error handling and logging for email sending processes - Utilize new support email utility functions for consistent communication - Add dynamic email generation based on ticket type and status Enhances user communication and provides better transparency in the support ticket lifecycle by implementing robust email notification mechanisms.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughA new email notification system is implemented for support tickets. User confirmation emails, support team notifications, and status update emails are now sent via dedicated utilities. These are integrated into bug report, contact form, and admin ticket status update endpoints. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Client
participant API as Endpoint<br/>(bug-report/contact)
participant DB as Database
participant Email as Email Service
User->>Client: Submit form
Client->>API: POST request
rect rgba(200, 220, 255, 0.3)
note over API,DB: Ticket Creation
API->>DB: Fetch user profile
API->>DB: Insert ticket, capture result
DB-->>API: ticket data
end
rect rgba(220, 255, 220, 0.3)
note over API,Email: Email Operations
API->>Email: Send user confirmation email
Email-->>API: success/error
API->>Email: Send support team notification<br/>(if SUPPORT_EMAIL set)
Email-->>API: success/error
end
API-->>Client: 200 OK + message
Client-->>User: Confirmation displayed
sequenceDiagram
participant Admin
participant Client
participant API as Admin Endpoint<br/>[id]/route.ts
participant DB as Database
participant Email as Email Service
Admin->>Client: Update ticket status
Client->>API: PATCH request
rect rgba(200, 220, 255, 0.3)
note over API,DB: Status Update
API->>DB: Fetch current ticket + user
DB-->>API: ticket, user data
alt Ticket not found
API-->>Client: 404
else Status changed
API->>DB: Update ticket status
DB-->>API: updated ticket
end
end
rect rgba(255, 240, 200, 0.3)
note over API,Email: Conditional Email
alt oldStatus ≠ newStatus<br/>AND user data exists
API->>Email: Send status update email
Email-->>API: success/error
end
end
API-->>Client: 200 OK
Client-->>Admin: Updated
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit