Skip to content

Commit a1d2f15

Browse files
feat: ticketing system (#1026)
This is a first pass to the ticketing system. this requires that users are logged in. In the future we would want to accept tickets by people who arent logged in, but this is for a future revision. This PR adds: - ticket view `/ticket/:id`, which is authenticated and can only be viewed by staff and the user that created it <img width="1247" alt="Screenshot 2025-04-02 at 12 09 40" src="https://github.com/user-attachments/assets/25925c00-86e7-4cfa-9ce9-8c2cbfc57246" /> - list of tickets for users to see their tickets `/account/tickets` <img width="1213" alt="Screenshot 2025-04-02 at 12 18 08" src="https://github.com/user-attachments/assets/52f52b3e-b366-4b2b-86fe-5985827f464d" /> - list of tickets for admins `/admin/tickets` <img width="1232" alt="Screenshot 2025-04-02 at 12 10 10" src="https://github.com/user-attachments/assets/f9990fe7-b022-46b9-a14d-2f255559d93d" /> The notifications for tickets for normal users are for their tickets, and for staff its notifications for all tickets. Notifications are: - For users: any message by staff posted after the latest message by the user - For staff: any message by the user that was posted after the latest message by the staff When a non-creator of a ticket sends a message (so a staff member), an email is sent to the user. Tickets can have metadata associated to them (a set of key-value pairs), and are either displayed as-is or are processed for easier intepretation. For the future: - support ticket creation and messaging by non-authenticated users. - support receiving emails for tickets (currently emails and tickets will be managed separately). This will require supporting inbound emails on jsr. --------- Co-authored-by: Luca Casonato <[email protected]>
1 parent 1fbe2ce commit a1d2f15

File tree

63 files changed

+4061
-538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+4061
-538
lines changed

api/.sqlx/query-30d0c1c96fd615e2e318d1795dfff96c509baf89fe1df1d762cc160c2af83de3.json renamed to api/.sqlx/query-0a8710600717bbec9db15beeb719caaaeb068d24f6920a5964f81a659a14559e.json

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.sqlx/query-12e63d98e2f365c8534cc98ecdbe5441217624541e3ae1d5290508eaf5c8e137.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.sqlx/query-25d2f9bc4f677f94f6646937c7e95beb344f56b0536608a120c9d740523110d2.json

Lines changed: 151 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.sqlx/query-2f6e7e603f38e69d37ac66c575553b260c311898e7937bb0c08e0740a76aee88.json

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.sqlx/query-32220872ceb8f8782dcb4a63488c30a8c054f91b595551538b1458375fe927f8.json

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)