Conversation
Introduce server & frontend support for editing ticket close reasons. Backend: add new API handler (app/http/endpoints/api/ticket/updateclosereason.go) to validate permissions, update CloseReason in DB, log an audit entry, and publish a redis message (tickets:close_reason_update). Register PATCH /tickets/:ticketId/close-reason in server.go. Includes input validation and error handling. Frontend: enable editing close reason from Transcripts view — import modal & textarea, add ActionDropdown entry to open an edit modal, implement saveCloseReason() to PATCH the new endpoint and update the UI. Also make Textarea label optional and adjust transcript table last-column styling (narrower, centered). Misc: update go.mod to replace github.com/TicketsBot-cloud/database with ./dashboard-database for local module resolution.
This was referenced Feb 18, 2026
Deploying tickets-v2-dashboard with
|
| Latest commit: |
c29ebd9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9fa2d7ef.tickets-v2-dashboard.pages.dev |
| Branch Preview URL: | https://rm-65.tickets-v2-dashboard.pages.dev |
Member
|
database merged, please bump |
Contributor
Author
|
Database bumped! |
BenHall-1
requested changes
Mar 6, 2026
Co-authored-by: Ben Hall <ben@tickets.bot>
BenHall-1
approved these changes
Mar 6, 2026
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.
Description
Introduce server & frontend support for editing ticket close reasons.
If you also run TicketsBot-cloud/worker#109 then the transcript embed will be updated too
NEEDS: TicketsBot-cloud/database#30
Link: TicketsBot-cloud/worker#109