workign comments strucuture

This commit is contained in:
Mark Gregory
2026-06-17 09:47:24 +01:00
parent 2df11f9f58
commit 878f383f7a
7 changed files with 222 additions and 70 deletions
+5 -5
View File
@@ -205,11 +205,11 @@ versions:
- Replaced browser-test Livewire internals with real UI interactions for settings sections, Select2 controls and HTML editors.
- Kept module.json version in sync with changelog.yaml.
"1.3.12":
changed:
- Fixed ticket comment submission by adding a CSRF-protected native POST endpoint that stores comments through TicketService when Livewire or Flux submit handling does not call addComment.
- Updated the ticket detail reply form to post directly to the comment endpoint and refresh the conversation from the database after redirect.
- Hardened the Helpdesk HTML editor so native form submissions synchronise the latest editor content before the browser posts the form.
- Added feature and browser coverage proving ticket comments are created in helpdesk_comments and rendered back on the ticket detail page.
- Replaced fragile Livewire/Flux ticket comment and reply submits with CSRF-protected normal POST comment storage.
- Restored canned-response insertion by writing the selected response into the real ticket comment textarea before submit.
- Restored nested comment replies through per-comment POST reply forms that persist parent_id and refresh the conversation thread.
- Made Helpdesk settings section navigation use normal query-string links so Dusk and browsers do not depend on fragile Livewire tab clicks.
- Updated browser tests to cover canned-response insertion, parent comment persistence, nested reply persistence and settings tab navigation.
- Kept module.json version in sync with changelog.yaml.