From 196bd7103d6952b73d46685592ddbd8680cd2e3d Mon Sep 17 00:00:00 2001 From: Manus Date: Fri, 13 Feb 2026 04:07:35 -0500 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Modernisation=20de=20l'ergonomie?= =?UTF-8?q?=20des=20pages=20Administration=20des=20listes=20et=20Param?= =?UTF-8?q?=C3=A8tres=20d'import=20avec=20ic=C3=B4nes=20color=C3=A9es,=20d?= =?UTF-8?q?=C3=A9grad=C3=A9s,=20badges=20de=20statut,=20et=20animations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/ImportSettings.tsx | 460 ++++++++++++++-------------- client/src/pages/ListsAdmin.tsx | 215 +++++++++---- todo.md | 10 + 3 files changed, 400 insertions(+), 285 deletions(-) diff --git a/client/src/pages/ImportSettings.tsx b/client/src/pages/ImportSettings.tsx index b585c68..7c6e955 100644 --- a/client/src/pages/ImportSettings.tsx +++ b/client/src/pages/ImportSettings.tsx @@ -5,8 +5,9 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/com import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Switch } from "@/components/ui/switch"; +import { Badge } from "@/components/ui/badge"; import { toast } from "sonner"; -import { Loader2, Save, Upload, FolderOpen, Mail, Play, Square } from "lucide-react"; +import { Loader2, Save, Upload, FolderOpen, Mail, Play, Square, Download, Inbox, CheckCircle2 } from "lucide-react"; import DashboardLayout from "@/components/DashboardLayout"; export default function ImportSettings() { @@ -73,53 +74,66 @@ export default function ImportSettings() { exportFolder: exportFolder || null, }); - toast.success("Paramètres enregistrés", { - description: "Vos paramètres de réception ont été mis à jour avec succès.", - }); + toast.success("Paramètres enregistrés avec succès"); } catch (error) { - toast.error("Erreur", { - description: "Impossible d'enregistrer les paramètres. Veuillez réessayer.", - }); + toast.error("Impossible d'enregistrer les paramètres"); } }; if (isLoading) { return ( -
- -
+ +
+ +

Chargement des paramètres...

+
+
); } return ( -
-
-

Paramètres de réception

-

- Configurez les différentes méthodes d'importation de factures -

-
+
+ {/* Header */} +
+
+
+ +
+
+

+ Paramètres de réception +

+

+ Configurez les différentes méthodes d'importation de factures +

+
+
+
-
{/* Manual Import */} - - -
-
- -
-
- Import manuel - - Autoriser l'upload manuel de fichiers PDF via l'interface - + + +
+
+
+ +
+
+ Import manuel + + Autoriser l'upload manuel de fichiers PDF via l'interface + +
+ + {manualImportEnabled ? "Activé" : "Désactivé"} +
- -
-