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é

) : ( -
- - - - - - - - - - - - - - - - {filteredTickets.map((ticket) => { - const StatusIcon = statusConfig[ticket.status as keyof typeof statusConfig]?.icon || Clock; - return ( - - - - - - - - - - - - ); - })} - -
- 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 ( + + + {/* Header avec numéro de ticket et statut */} +
- - {ticket.ticketNumber} - +
{ticket.ticketNumber}
{hasRecentComments(ticket) && ( - + Nouveau )}
-
-
-
- {ticket.clientName || 'N/A'} -
- {ticket.clientPhone && ( -
- {ticket.clientPhone} -
- )} -
-
-
- {ticket.productDesignation && ( -
- {ticket.productDesignation} -
- )} - {ticket.productGencode && ( -
- {ticket.productGencode} -
- )} -
-
-
- {ticket.problemDescription} -
-
- - + + {statusConfig[ticket.status as keyof typeof statusConfig]?.label}
-
- + + + {/* Client */} +
+
+ {ticket.clientName || 'N/A'} +
+ {ticket.clientPhone && ( +
+ 📞 {ticket.clientPhone} +
+ )} +
+ + {/* Produit */} +
+ {ticket.productDesignation && ( +
+ {ticket.productDesignation} +
+ )} + {ticket.productGencode && ( +
+ 📦 {ticket.productGencode} +
+ )} +
+ + {/* Problème */} + {ticket.problemDescription && ( +
+

+ {ticket.problemDescription} +

+
+ )} + + {/* Priorité et fournisseur */} +
+ {priorityConfig[ticket.priority as keyof typeof priorityConfig]?.label} -
-
- - - {ticket.supplier?.name} - + +
+ + {ticket.supplier?.name}
-
-
- - {safeFormat(ticket.createdAt, 'dd/MM/yyyy')} -
-
-
+
+ + {/* Date */} +
+ + {safeFormat(ticket.createdAt, 'dd/MM/yyyy')} +
+ + {/* Actions */} +
+ + {canModify && ( - {canModify && ( - - )} - {canDelete && ( - - )} -
-
+ )} + {canDelete && ( + + )} +
+ + + ); + })} + )} From af2a7fc93fc86815908efdd0d7a00e027817d659 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 11 Sep 2025 11:47:42 +0000 Subject: [PATCH 2/4] Align the support module design with the tasks module Update the UI components for the support module to match the styling and layout of the tasks module. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 818c4995-85cc-4d53-8067-b67dcee52c2d Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/818c4995-85cc-4d53-8067-b67dcee52c2d/KSH1Irn --- .replit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.replit b/.replit index f9b73f0..57ea09b 100644 --- a/.replit +++ b/.replit @@ -23,6 +23,10 @@ externalPort = 3002 localPort = 41343 externalPort = 3001 +[[ports]] +localPort = 45797 +externalPort = 3000 + [workflows] runButton = "Project" From 9fc9e3baccec693acded81c3959553a4c5c4f05b Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 11 Sep 2025 11:53:50 +0000 Subject: [PATCH 3/4] Improve the appearance and layout of the after-sales service tickets page Update the styling and structure of the SAV tickets page, including header and spacing adjustments, and introduce a new Wrench icon for the page title. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 818c4995-85cc-4d53-8067-b67dcee52c2d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/818c4995-85cc-4d53-8067-b67dcee52c2d/mXNPs8U --- .replit | 8 +++---- client/src/pages/SavTickets.tsx | 39 ++++++++++++++++++++------------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.replit b/.replit index 57ea09b..a9cbb23 100644 --- a/.replit +++ b/.replit @@ -15,6 +15,10 @@ run = ["npm", "run", "start"] localPort = 5000 externalPort = 80 +[[ports]] +localPort = 34895 +externalPort = 3000 + [[ports]] localPort = 38451 externalPort = 3002 @@ -23,10 +27,6 @@ externalPort = 3002 localPort = 41343 externalPort = 3001 -[[ports]] -localPort = 45797 -externalPort = 3000 - [workflows] runButton = "Project" diff --git a/client/src/pages/SavTickets.tsx b/client/src/pages/SavTickets.tsx index 84dfa32..bee4db0 100644 --- a/client/src/pages/SavTickets.tsx +++ b/client/src/pages/SavTickets.tsx @@ -455,22 +455,29 @@ export default function SavTickets() { }); return ( -
+
{/* Header */} -
-
-

Service Après-Vente

-

Gestion des tickets SAV et suivi des réparations

-
- {canCreate && ( - - - - - +
+
+
+

+ + Service Après-Vente +

+

+ Gestion des tickets SAV et suivi des réparations +

+
+
+ {canCreate && ( + + + + + Créer un nouveau ticket SAV @@ -689,6 +696,8 @@ export default function SavTickets() { )}
+
+
{/* Stats Cards */} {statsData && ( From e9e843055fe1396d45c13298292c92e24607e8ca Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 11 Sep 2025 11:53:56 +0000 Subject: [PATCH 4/4] Add improved verification for sensitive enterprise processes Introduce enhanced verification workflows and type-safety checks for critical enterprise processes within the task management platform. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 818c4995-85cc-4d53-8067-b67dcee52c2d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/818c4995-85cc-4d53-8067-b67dcee52c2d/mXNPs8U