From ed02deb509f53a0cf19df8e3128f6bb38edb17f7 Mon Sep 17 00:00:00 2001 From: phix Date: Wed, 17 Apr 2024 09:06:48 -0700 Subject: [PATCH] Minor style changes. --- .../components/datasets/DatasetDetailPage.tsx | 28 +++-- web/src/components/datasets/DatasetInfo.tsx | 2 +- web/src/components/jobs/JobDetailPage.tsx | 108 +++++++++--------- 3 files changed, 77 insertions(+), 61 deletions(-) diff --git a/web/src/components/datasets/DatasetDetailPage.tsx b/web/src/components/datasets/DatasetDetailPage.tsx index 5ca73c1b7d..a239d0c6a0 100644 --- a/web/src/components/datasets/DatasetDetailPage.tsx +++ b/web/src/components/datasets/DatasetDetailPage.tsx @@ -2,7 +2,17 @@ // SPDX-License-Identifier: Apache-2.0 import * as Redux from 'redux' -import { Box, Button, Divider, Grid, Switch, Tab, Tabs, createTheme } from '@mui/material' +import { + Box, + Button, + Divider, + FormControlLabel, + Grid, + Switch, + Tab, + Tabs, + createTheme, +} from '@mui/material' import { CalendarIcon } from '@mui/x-date-pickers' import { CircularProgress } from '@mui/material' import { DatasetVersion } from '../../types/api' @@ -202,12 +212,16 @@ const DatasetDetailPage: FunctionComponent = (props) => { {tabIndex === 0 && ( - {i18next.t('datasets.show_field_tags')} - setShowTags(!showTags)} - inputProps={{ 'aria-label': 'toggle show tags' }} + setShowTags(!showTags)} + inputProps={{ 'aria-label': 'toggle show tags' }} + /> + } + label={i18next.t('datasets.show_field_tags')} /> )} diff --git a/web/src/components/datasets/DatasetInfo.tsx b/web/src/components/datasets/DatasetInfo.tsx index 9e30a84459..9de16a6513 100644 --- a/web/src/components/datasets/DatasetInfo.tsx +++ b/web/src/components/datasets/DatasetInfo.tsx @@ -101,7 +101,7 @@ const DatasetInfo: FunctionComponent = (props) => { {datasetFields.map((field) => { return ( - + {field.name} {!showTags && ( diff --git a/web/src/components/jobs/JobDetailPage.tsx b/web/src/components/jobs/JobDetailPage.tsx index e1b7f21e2c..2a786d2b6b 100644 --- a/web/src/components/jobs/JobDetailPage.tsx +++ b/web/src/components/jobs/JobDetailPage.tsx @@ -7,7 +7,7 @@ import '../../i18n/config' import * as Redux from 'redux' import { Box, Button, CircularProgress, Divider, Grid, Tab, Tabs } from '@mui/material' import { CalendarIcon } from '@mui/x-date-pickers' -import { DirectionsRun, Pause, Start } from '@mui/icons-material' +import { DirectionsRun, SportsScore, Start } from '@mui/icons-material' import { IState } from '../../store/reducers' import { LineageJob } from '../lineage/types' import { MqInfo } from '../core/info/MqInfo' @@ -115,15 +115,62 @@ const JobDetailPage: FunctionComponent = (props) => { padding: theme.spacing(2), }} > - + {job.name} + + + + { + deleteJob(job.name, job.namespace) + props.dialogToggle('') + }} + /> + + + + + setSearchParams({})} size='small'> + + + - - {job.description} - - + {job.description && ( + + {job.description} + + )} + = (props) => { } + icon={} label={'Last Finished'} value={job.latestRun ? formatUpdatedAt(job.latestRun.endedAt) : 'N/A'} /> @@ -163,7 +210,7 @@ const JobDetailPage: FunctionComponent = (props) => { } - label={'State'} + label={'Running Status'} value={} /> @@ -180,51 +227,6 @@ const JobDetailPage: FunctionComponent = (props) => { - - - - { - deleteJob(job.name, job.namespace) - props.dialogToggle('') - }} - /> - - - - - setSearchParams({})} size='large'> - - - {tabIndex === 0 ? ( job.latestRun ? (