-
Notifications
You must be signed in to change notification settings - Fork 2
feat(support): Add admin reply functionality to support ticket detail page #288
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
… page - Implement comprehensive reply system for support tickets - Add new API endpoint for sending ticket replies - Enable automatic status update from "open" to "in_progress" when replying - Create UI components for sending replies with character limit and validation - Add error handling and toast notifications for reply process - Include tip message about status change when sending first reply - Enhance ticket management workflow with direct communication feature
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request adds a "Reply to User" feature for support ticket management. A new POST API endpoint accepts admin replies, validates input, sends templated emails to users, and handles ticket status transitions. The client UI includes a reply form with character limits. Existing GET and PATCH endpoints are refactored to enforce admin authentication consistently and return normalized ticket data structures. Changes
Sequence DiagramsequenceDiagram
participant Admin as Admin (Browser)
participant Client as Page Component
participant API as POST /reply
participant DB as Database
participant Email as Email Service
Admin->>Client: Fill reply form & click Send
Client->>Client: Validate message (non-empty, ≤2000 chars)
Client->>API: POST { message }
rect rgb(220, 240, 255)
Note over API: Authorization & Validation
API->>API: Verify admin auth
API->>API: Validate message
end
rect rgb(220, 240, 255)
Note over API: Fetch & Compose
API->>DB: Get ticket & user profile
API->>API: Build email template
end
rect rgb(220, 240, 255)
Note over API: Send & Update
API->>Email: Send templated reply to user
API->>DB: Update ticket status (open → in_progress)
end
API-->>Client: Success response
Client->>Client: Clear reply, show toast
Client->>DB: Refresh ticket data
Client->>Admin: Show updated ticket with status change
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
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
New Features
Improvements