From ffeeafa3182d2687fd2ed926541aa113542f5453 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 24 Nov 2025 07:32:00 +0000 Subject: [PATCH] fix: Add missing debug tab rendering in Admin page The debug tab was defined in the tabs array and had all the state and functions set up, but was missing the actual JSX rendering block. This caused the debug dumps to not be displayed in the admin interface. --- frontend/src/pages/Admin.jsx | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/frontend/src/pages/Admin.jsx b/frontend/src/pages/Admin.jsx index 2ffe8d8..abb631b 100644 --- a/frontend/src/pages/Admin.jsx +++ b/frontend/src/pages/Admin.jsx @@ -1018,6 +1018,54 @@ export default function Admin() { )} + + {/* Debug Tab */} + {activeTab === 'debug' && ( + + +
+
+ Debug HTML Dumps + Fichiers HTML sauvegardés lors des recherches sans résultats. +
+ +
+
+ + {loadingDebugFiles ? ( +
Chargement...
+ ) : debugFiles.length === 0 ? ( +
+ Aucun fichier de debug disponible. +
+ ) : ( +
+ {debugFiles.map(file => ( +
+
+

{file.filename}

+

+ {(file.size / 1024).toFixed(1)} KB • {file.created_at_formatted} +

+
+
+ + +
+
+ ))} +
+ )} +
+
+ )} ); }