From 2672584ae17d2fa1c702f8dc8d7c781822c3c5da Mon Sep 17 00:00:00 2001 From: PouyaKhajavi Date: Sun, 9 Aug 2026 10:20:18 +0330 Subject: [PATCH] feat(frontend): add modal dialog to inspect full run error logs --- frontend/src/App.jsx | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index c0d72cf..4b3f594 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -24,6 +24,7 @@ function App() { const [ads, setAds] = useState([]); const [logs, setLogs] = useState([]); const [health, setHealth] = useState({ database: 'loading', redis: 'loading' }); + const [errorLogModalContent, setErrorLogModalContent] = useState(null); // Loading states const [loadingCrawlers, setLoadingCrawlers] = useState(true); @@ -637,9 +638,13 @@ function App() { 0 ? 'text-purple-400 font-bold' : ''}`}> {run.ads_flagged_count} - - {run.error_log || '-'} - + run.error_log && setErrorLogModalContent(run.error_log)} + > + {run.error_log || '-'} + ))} @@ -813,6 +818,31 @@ function App() { + {/* Error Log Modal */} + {errorLogModalContent && ( +
+
+
+

جزئیات خطا و لاگ اجرا

+ +
+
+
+ متن کامل خطا / پیام سیستم: +
+                   {errorLogModalContent}
+                 
+
+
+
+ +
+
+
+ )} + ); }