From 64533dba670a674d5a2ec005040582cead613c61 Mon Sep 17 00:00:00 2001 From: Oleg Vavilov Date: Fri, 1 Aug 2025 01:12:37 +0300 Subject: [PATCH 1/3] Implemented showing timestamp for logs --- .../src/pages/Runs/Details/Logs/index.tsx | 22 +++++++++++++------ .../Runs/Details/Logs/styles.module.scss | 6 ++++- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/Runs/Details/Logs/index.tsx b/frontend/src/pages/Runs/Details/Logs/index.tsx index f2e81d7b8f..eabeea64b0 100644 --- a/frontend/src/pages/Runs/Details/Logs/index.tsx +++ b/frontend/src/pages/Runs/Details/Logs/index.tsx @@ -26,7 +26,7 @@ export const Logs: React.FC = ({ className, projectName, runName, jobSub const [isLoading, setIsLoading] = useState(false); const [getProjectLogs] = useLazyGetProjectLogsQuery(); const [isEnabledDecoding, setIsEnabledDecoding] = useLocalStorageState('enable-encode-logs', false); - // const [isShowTimestamp, setIsShowTimestamp] = useLocalStorageState('enable-showing-timestamp-logs', false); + const [isShowTimestamp, setIsShowTimestamp] = useLocalStorageState('enable-showing-timestamp-logs', false); const logsForView = useMemo(() => { if (isEnabledDecoding) { @@ -103,6 +103,10 @@ export const Logs: React.FC = ({ className, projectName, runName, jobSub setIsEnabledDecoding(!isEnabledDecoding); }; + const toggleShowingTimestamp = () => { + setIsShowTimestamp(!isShowTimestamp); + }; + useEffect(() => { getLogItems(); }, []); @@ -172,11 +176,15 @@ export const Logs: React.FC = ({ className, projectName, runName, jobSub /> - {/**/} - {/* setIsShowTimestamp(detail.checked)} checked={isShowTimestamp}>*/} - {/* Show timestamp*/} - {/* */} - {/**/} + +