From 307b2a51353d38e32dbfe508dd49f8535fdc28fa Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 3 Sep 2025 14:28:04 +0000 Subject: [PATCH] Improve BAP file upload modal for clearer user interaction Refactor the BAP modal UI to enhance the PDF file selection experience by implementing a drag-and-drop area and clearer visual cues for file uploads. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cfbfe47c-0c9a-4ebf-8a41-2937407eccff Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cfbfe47c-0c9a-4ebf-8a41-2937407eccff/ECRh2Iu --- .replit | 2 +- client/src/components/Sidebar.tsx | 86 ++++++++++++++++++++++++++----- 2 files changed, 75 insertions(+), 13 deletions(-) diff --git a/.replit b/.replit index e7ed764..baa3edd 100644 --- a/.replit +++ b/.replit @@ -37,4 +37,4 @@ args = "npm run dev" waitForPort = 5000 [agent] -integrations = ["javascript_log_in_with_replit==1.0.0", "javascript_database==1.0.0", "javascript_object_storage==1.0.0"] +integrations = ["javascript_object_storage==1.0.0", "javascript_log_in_with_replit==1.0.0", "javascript_database==1.0.0"] diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx index 839e6bd..6c8547e 100644 --- a/client/src/components/Sidebar.tsx +++ b/client/src/components/Sidebar.tsx @@ -612,23 +612,85 @@ export default function Sidebar() { {/* Modal BAP */} - + - + Envoi BAP -
-
- - +
+ {/* Zone de sélection de fichier améliorée */} +
+ + + {/* Zone de drop et bouton de sélection */} +
+ + +
+ {selectedFile ? ( +
+
+ +
+
+

{selectedFile.name}

+

{(selectedFile.size / 1024 / 1024).toFixed(2)} MB

+
+ +
+ ) : ( +
+
+ +
+
+

Cliquez pour sélectionner un fichier PDF

+

ou glissez-déposez votre fichier ici

+
+
+ +
+
+ )} +
+
+ + {selectedFile && ( +
+ + + + Fichier PDF sélectionné avec succès +
+ )}