From 73451b3af2c6a7f37da03d4293ecf631b44f36ea Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 8 Sep 2025 16:13:03 +0000 Subject: [PATCH] Update the task management interface to include status changes and editing Add a status field to the task creation form and update the existing data structure to support the new status options, also modify the UI to allow for editing and deletion of tasks. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/L85THka --- client/src/pages/Avoirs.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/pages/Avoirs.tsx b/client/src/pages/Avoirs.tsx index 11eceac..203d13c 100644 --- a/client/src/pages/Avoirs.tsx +++ b/client/src/pages/Avoirs.tsx @@ -74,6 +74,7 @@ const avoirSchema = z.object({ amount: z.number().optional(), comment: z.string().optional(), commercialProcessed: z.boolean().optional(), + status: z.enum(["En attente de demande", "Demandé", "Reçu"]).optional(), }); type AvoirFormData = z.infer; @@ -219,6 +220,7 @@ export default function Avoirs() { amount: undefined, comment: "", commercialProcessed: false, + status: "En attente de demande", }, }); @@ -232,6 +234,7 @@ export default function Avoirs() { amount: undefined, comment: "", commercialProcessed: false, + status: "En attente de demande", }, }); @@ -257,7 +260,7 @@ export default function Avoirs() { amount: avoir.amount, comment: avoir.comment || "", commercialProcessed: avoir.commercialProcessed, - status: avoir.status, + status: avoir.status as "En attente de demande" | "Demandé" | "Reçu", }); setIsEditDialogOpen(true); }; @@ -552,7 +555,7 @@ export default function Avoirs() {

{searchTerm ? "Aucun avoir ne correspond à votre recherche." : "Commencez par créer votre premier avoir."}

- {canCreate && !searchTerm && ( + {!searchTerm && (