feat(support): build support tickets module - submit, reply, status tracking#1145
Merged
yusuftomilola merged 2 commits intoJun 26, 2026
Merged
Conversation
…ng, and email notifications - Add SupportTicket entity: uuid PK, userId FK, subject, description (text), category enum (billing/technical/access/booking/general), priority enum (low/medium/high, default medium), status enum (open/in_progress/resolved/closed), assignedToId FK (nullable) - Add TicketReply entity: uuid PK, ticketId FK with CASCADE, userId FK, message (text), isStaffReply boolean - Add CreateTicketDto, CreateReplyDto, UpdateTicketStatusDto, AssignTicketDto, QueryTicketsDto with class-validator decorators - Add SupportService: createTicket (notifies all admins by email on submission), getMyTickets, getTicket (owner or admin only), addReply (owner or admin; emails member on staff reply), updateStatus (admin), assignTicket (admin; sets assignedToId and priority), getAllTickets (admin; filters by status, category, priority, assignedToId via QueryBuilder) - Add SupportController: POST /support, GET /support/my, GET /support/:id, POST /support/:id/reply, PATCH /support/:id/status (admin), PATCH /support/:id/assign (admin), GET /support (admin) with @roles + RolesGuard - Add SupportModule: registers SupportTicket and TicketReply; imports UsersModule for admin lookup - Register SupportModule in AppModule
|
@devwums is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
6 tasks
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
Adds a full support ticketing system to ManageHub, replacing informal WhatsApp/verbal channels with tracked, prioritised, and auditable support requests.
New module: \�ackend/src/support/`n
Entities
DTOs (all with class-validator)
SupportService
SupportController
| Method | Path | Guard |
|--------|------|-------|
| POST | /support | JWT |
| GET | /support/my | JWT |
| GET | /support/:id | JWT (owner or admin in service) |
| POST | /support/:id/reply | JWT (owner or admin in service) |
| PATCH | /support/:id/status | JWT + RolesGuard(ADMIN) |
| PATCH | /support/:id/assign | JWT + RolesGuard(ADMIN) |
| GET | /support | JWT + RolesGuard(ADMIN) |
AppModule
closes #1086