From 7c29e8b0e16a266f739c6608601742426f00e8ea Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 11 Sep 2025 11:42:31 +0000 Subject: [PATCH 1/4] Update the SAV ticket design to match the tasks module layout Refactors the client/src/pages/SavTickets.tsx file to implement a card-based layout for SAV tickets, aligning its visual design with the existing tasks module. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 818c4995-85cc-4d53-8067-b67dcee52c2d Replit-Commit-Checkpoint-Type: intermediate_checkpoint --- client/src/pages/SavTickets.tsx | 219 +++++++++++++++----------------- 1 file changed, 101 insertions(+), 118 deletions(-) diff --git a/client/src/pages/SavTickets.tsx b/client/src/pages/SavTickets.tsx index 1c0508f..84dfa32 100644 --- a/client/src/pages/SavTickets.tsx +++ b/client/src/pages/SavTickets.tsx @@ -826,143 +826,126 @@ export default function SavTickets() {
Aucun ticket trouvé
) : ( -| - Ticket - | -- Client - | -- Produit - | -- Problème - | -- Statut - | -- Priorité - | -- Fournisseur - | -- Date - | -- Actions - | -
|---|---|---|---|---|---|---|---|---|
|
+
+
+ {filteredTickets.map((ticket) => {
+ const StatusIcon = statusConfig[ticket.status as keyof typeof statusConfig]?.icon || Clock;
+ const priorityColor = priorityConfig[ticket.priority as keyof typeof priorityConfig]?.color || "bg-gray-100 text-gray-800";
+ const statusColor = statusConfig[ticket.status as keyof typeof statusConfig]?.color || "bg-gray-100 text-gray-800";
+
+ return (
+ {ticket.ticketNumber}{hasRecentComments(ticket) && ( - |
-
-
-
-
- {ticket.clientName || 'N/A'}
-
- {ticket.clientPhone && (
-
- {ticket.clientPhone}
-
- )}
- |
-
-
- {ticket.productDesignation && (
-
-
- {ticket.productDesignation}
-
- )}
- {ticket.productGencode && (
-
- {ticket.productGencode}
-
- )}
- |
-
-
- {ticket.problemDescription}
-
- |
-
-
- |
-
-
+
+
+ {/* Produit */}
+
+ {ticket.clientName || 'N/A'}
+
+ {ticket.clientPhone && (
+
+ 📞 {ticket.clientPhone}
+
+ )}
+
+ {ticket.productDesignation && (
+
+
+ {/* Problème */}
+ {ticket.problemDescription && (
+
+ {ticket.productDesignation}
+
+ )}
+ {ticket.productGencode && (
+
+ 📦 {ticket.productGencode}
+
+ )}
+
+
+ )}
+
+ {/* Priorité et fournisseur */}
+ + {ticket.problemDescription} + +
+ |
-
-
-
+
- |
-
-
-
- |
-
-
+
+
+ {/* Date */}
+
+
+
+ {/* Actions */}
+
+
+ {canModify && (
- {canModify && (
-
- )}
- {canDelete && (
-
- )}
-
- |
-
Gestion des tickets SAV et suivi des réparations
-