Skip to content

Commit b99970e

Browse files
committed
[UI] Query logs using descending and show timestamp per log entry #2892
1 parent 58180de commit b99970e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • frontend/src/pages/Runs/Details/Logs

frontend/src/pages/Runs/Details/Logs/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export const Logs: React.FC<IProps> = ({ className, projectName, runName, jobSub
9292
}
9393
};
9494

95+
const toggleDecodeLogs = () => {
96+
saveScrollPositionByBottom();
97+
setIsEnabledDecoding(!isEnabledDecoding);
98+
};
99+
95100
useEffect(() => {
96101
getLogItems();
97102
}, []);
@@ -157,7 +162,7 @@ export const Logs: React.FC<IProps> = ({ className, projectName, runName, jobSub
157162
formAction="none"
158163
iconName="gen-ai"
159164
variant={isEnabledDecoding ? 'primary' : 'icon'}
160-
onClick={() => setIsEnabledDecoding(!isEnabledDecoding)}
165+
onClick={toggleDecodeLogs}
161166
/>
162167
</Box>
163168

0 commit comments

Comments
 (0)