Skip to content

Commit

Permalink
feat: Add preheat newPreheat and showPreheat page (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-Zhao authored Sep 15, 2023
1 parent 35dedfd commit d050a56
Show file tree
Hide file tree
Showing 32 changed files with 2,075 additions and 17 deletions.
1 change: 1 addition & 0 deletions public/icons/job/preheat/created-at.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/job/preheat/description.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/icons/job/preheat/error-log.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/icons/job/preheat/failure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/job/preheat/filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/icons/job/preheat/headers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/job/preheat/id.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/job/preheat/job.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/icons/job/preheat/pending.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/job/preheat/status-failure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/icons/job/preheat/status-pending.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/icons/job/preheat/status-success.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/job/preheat/status.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/icons/job/preheat/success.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/job/preheat/tag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/job/preheat/url.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/clusters/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ export default function ShowCluster() {
<Box width="100%">
<Divider />
<Table sx={{ minWidth: 650 }} aria-label="a dense table">
<TableHead>
<TableHead sx={{ backgroundColor: 'var(--table-title-color)' }}>
<TableRow>
<TableCell align="center">
<Typography variant="subtitle1" fontFamily="mabry-bold">
Expand Down Expand Up @@ -913,7 +913,7 @@ export default function ShowCluster() {
<Box width="100%">
<Divider />
<Table sx={{ minWidth: 650 }} aria-label="a dense table">
<TableHead>
<TableHead sx={{ backgroundColor: 'var(--table-title-color)' }}>
<TableRow>
<TableCell align="center">
<Typography variant="subtitle1" fontFamily="mabry-bold">
Expand Down
3 changes: 1 addition & 2 deletions src/components/developer/tokens/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export default function UpdateTokens() {
<TextField
margin="normal"
color="success"
required
size="small"
key={item.formProps.name}
{...item.formProps}
Expand All @@ -257,7 +256,7 @@ export default function UpdateTokens() {
</Tooltip>
</Box>
<FormControl size="small" error={expiredTimeError}>
<InputLabel color="secondary" id="demo-simple-select-label">
<InputLabel color="secondary" required id="demo-simple-select-label">
Expiration
</InputLabel>
<Box display="flex" alignItems="center">
Expand Down
7 changes: 2 additions & 5 deletions src/components/developer/tokens/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export default function PersonalAccessTokens() {
</Alert>
</Snackbar>
<Breadcrumbs aria-label="breadcrumb" sx={{ mb: '1rem' }}>
<Typography>Developer</Typography>
<Typography color="text.primary">Personal access tokens</Typography>
<Typography>developer</Typography>
<Typography color="text.primary">personal access tokens</Typography>
</Breadcrumbs>
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start' }}>
<Typography variant="h5">Personal access tokens</Typography>
Expand Down Expand Up @@ -246,7 +246,6 @@ export default function PersonalAccessTokens() {
) : (
<></>
)}

{tokens.length === 0 ? (
<Paper
variant="outlined"
Expand Down Expand Up @@ -383,7 +382,6 @@ export default function PersonalAccessTokens() {
</Paper>
</>
)}

{tokensTotalPages > 1 ? (
<Box display="flex" justifyContent="flex-end" sx={{ marginTop: theme.spacing(2) }}>
<Pagination
Expand All @@ -399,7 +397,6 @@ export default function PersonalAccessTokens() {
) : (
<></>
)}

<Dialog
open={openDeletToken}
onClose={() => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/developer/tokens/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function CreateTokens() {
id: 'name',
label: 'Name',
name: 'name',
required: true,
autoComplete: 'family-name',
placeholder: 'Enter your token name',
helperText: nameError ? 'Fill in the characters, the length is 1-100.' : '',
Expand Down Expand Up @@ -236,7 +237,6 @@ export default function CreateTokens() {
<TextField
margin="normal"
color="success"
required
size="small"
key={item.formProps.name}
{...item.formProps}
Expand All @@ -255,7 +255,7 @@ export default function CreateTokens() {
</Tooltip>
</Box>
<FormControl size="small">
<InputLabel color="secondary" id="demo-simple-select-label">
<InputLabel color="secondary" required id="demo-simple-select-label">
Expiration
</InputLabel>
<Box display="flex" alignItems="center">
Expand Down
Loading

0 comments on commit d050a56

Please sign in to comment.