From 417ef08f58aa0b0a4afa4b0a4d98b0dabf7cc884 Mon Sep 17 00:00:00 2001 From: louispaulb Date: Tue, 7 Jul 2026 07:42:39 -0400 Subject: [PATCH] =?UTF-8?q?ticket:=20aller-retour=20courriel=20(envoi=20+?= =?UTF-8?q?=20r=C3=A9ponse=20revient=20au=20fil)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hub (conversation.js) : getOrCreateConvForIssue (lie une Issue à une conv email) + emailTicket (envoie dans un fil Gmail, sujet [Ticket #ISS-…] + lien direct, journalise Sent Communication). Route POST /conversations/ticket-email (gaté Authentik). La réponse du client re-thread par le tag sujet (TICKET_REF_RX) OU le threadId → logToLinkedTicket (déjà en place) → Communication Received sur l'Issue → visible au panneau. notifyCustomer mémorise désormais conv.threadId au 1er envoi. UI (IssueDetail) : bouton « Envoyer par courriel » + dialogue (À/Cc/message), « Répondre » scindé en « Note interne » (Communication) vs courriel. Lien direct = URL du ticket. Testé : envoi réel à louis@targo.ca sur ISS-0000250013 (channel:email, Sent Communication OK). Co-Authored-By: Claude Opus 4.8 --- .../shared/detail-sections/IssueDetail.vue | 80 +++++++++++++++++-- services/targo-hub/lib/conversation.js | 49 ++++++++++++ 2 files changed, 124 insertions(+), 5 deletions(-) diff --git a/apps/ops/src/components/shared/detail-sections/IssueDetail.vue b/apps/ops/src/components/shared/detail-sections/IssueDetail.vue index 26fb457..0e25c6f 100644 --- a/apps/ops/src/components/shared/detail-sections/IssueDetail.vue +++ b/apps/ops/src/components/shared/detail-sections/IssueDetail.vue @@ -249,17 +249,44 @@
-
Repondre
+
Répondre
-
- +
+ + Ajoute une note au fil — non envoyée au client + + + Envoyer par courriel ; la réponse du destinataire reviendra dans ce ticket +
+ + + + + +
Envoyer par courriel
+ +
+ + + + +
Un lien vers le ticket est ajouté. La réponse du destinataire s'ajoutera automatiquement à ce ticket.
+
+ + + + +
+
+