Skip to content

RM-65: Ability to change the close reason#90

Merged
BenHall-1 merged 9 commits intomasterfrom
RM-65
Mar 6, 2026
Merged

RM-65: Ability to change the close reason#90
BenHall-1 merged 9 commits intomasterfrom
RM-65

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Feb 18, 2026

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

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.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 24, 2026

Deploying tickets-v2-dashboard with  Cloudflare Pages  Cloudflare Pages

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

View logs

@BenHall-1
Copy link
Copy Markdown
Member

database merged, please bump

@biast12
Copy link
Copy Markdown
Contributor Author

biast12 commented Mar 6, 2026

Database bumped!

Comment thread frontend/src/views/Transcripts.svelte Outdated
@BenHall-1 BenHall-1 merged commit 920ffdb into master Mar 6, 2026
1 check passed
@BenHall-1 BenHall-1 deleted the RM-65 branch March 6, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants