Skip to content

Commit 29a9c7e

Browse files
committed
[UI] Query logs using descending and show timestamp per log entry #2892
1 parent 16d9a21 commit 29a9c7e

File tree

1 file changed

+9
-8
lines changed
  • frontend/src/pages/Runs/Details/Logs

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
22
import { useTranslation } from 'react-i18next';
33
import classNames from 'classnames';
44

5-
import { Box, Code, Container, Header, ListEmptyMessage, Loader, TextContent, Toggle } from 'components';
5+
import { Box, Button, Code, Container, Header, ListEmptyMessage, Loader, TextContent } from 'components';
66

7+
import { useLocalStorageState } from 'hooks/useLocalStorageState';
78
import { useLazyGetProjectLogsQuery } from 'services/project';
89

9-
import { useLocalStorageState } from '../../../../hooks/useLocalStorageState';
1010
import { decodeLogs } from './helpers';
1111

1212
import { IProps } from './types';
@@ -152,12 +152,13 @@ export const Logs: React.FC<IProps> = ({ className, projectName, runName, jobSub
152152

153153
<div className={styles.switchers}>
154154
<Box>
155-
<Toggle
156-
onChange={({ detail }) => setIsEnabledDecoding(detail.checked)}
157-
checked={isEnabledDecoding}
158-
>
159-
Decode
160-
</Toggle>
155+
<Button
156+
ariaLabel="Legacy mode"
157+
formAction="none"
158+
iconName="gen-ai"
159+
variant={isEnabledDecoding ? 'primary' : 'icon'}
160+
onClick={() => setIsEnabledDecoding(!isEnabledDecoding)}
161+
/>
161162
</Box>
162163

163164
{/*<Box>*/}

0 commit comments

Comments
 (0)