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 && ( +
+ +