From 2bf4bf579c52d5c4f0d1f798c5a785c5e76ca779 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 14 Aug 2025 13:38:48 +0000 Subject: [PATCH] Improve SAV ticket display with better French translations and layout Update the UI for the SAV Tickets page to use improved French translations for product, problem, and client information sections. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 31f9bd88-0285-4787-81b3-31ceeea5a08b Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/31f9bd88-0285-4787-81b3-31ceeea5a08b/kdjV7Um --- client/src/pages/SavTickets.tsx | 126 ++++++++++++++++++++++++-------- 1 file changed, 97 insertions(+), 29 deletions(-) diff --git a/client/src/pages/SavTickets.tsx b/client/src/pages/SavTickets.tsx index 8cb766d..540eb53 100644 --- a/client/src/pages/SavTickets.tsx +++ b/client/src/pages/SavTickets.tsx @@ -822,26 +822,27 @@ export default function SavTickets() {
{/* Product Info */}
-

Informations produit

-
-
- Code-barres: -

{selectedTicket.productGencode}

-
-
- Référence: -

{selectedTicket.productReference || "Non renseignée"}

-
-
- Désignation: -

{selectedTicket.productDesignation}

+

Informations produit

+
+
+ Code-barres: +

{selectedTicket.productGencode}

+
+
+ Référence: +

{selectedTicket.productReference || "Non renseignée"}

+
+
+ Désignation: +

{selectedTicket.productDesignation}

+
{/* Problem Info */}
-

Problème

-
+

Problème

+
Type:

{selectedTicket.problemType}

@@ -852,32 +853,34 @@ export default function SavTickets() { {priorityConfig[selectedTicket.priority as keyof typeof priorityConfig]?.label}
-
- Description: -

{selectedTicket.problemDescription}

+
+ Description: +

{selectedTicket.problemDescription}

+
{/* Client Info */} {(selectedTicket.clientName || selectedTicket.clientPhone) && (
-

Client

-
-
- Nom: -

{selectedTicket.clientName || "Non renseigné"}

-
-
- Téléphone: -

{selectedTicket.clientPhone || "Non renseigné"}

+

Client

+
+
+ Nom: +

{selectedTicket.clientName || "Non renseigné"}

+
+
+ Téléphone: +

{selectedTicket.clientPhone || "Non renseigné"}

+
)} {/* Ticket Info */}
-

Informations ticket

-
+

Informations ticket

+
Statut: @@ -1015,6 +1018,71 @@ export default function SavTickets() {
)}
+ + {/* Colonne de droite - Commentaires et Suivi */} +
+

Historique et commentaires

+ + {/* Affichage de l'historique existant */} + {ticketDetails?.history && ticketDetails.history.length > 0 ? ( +
+ {ticketDetails.history.map((entry: any, index: number) => ( +
+
+ + {entry.action === 'comment' ? 'Commentaire' : entry.action} + + + {safeFormat(entry.createdAt, 'dd/MM/yyyy HH:mm')} + +
+

{entry.description}

+ {entry.creator && ( +

Par: {entry.creator.username}

+ )} +
+ ))} +
+ ) : ( +
+ Aucun commentaire pour le moment +
+ )} + + {/* Champ d'ajout de commentaire */} + {canModify && ( +
+ +