Skip to content

Commit 7d55c63

Browse files
authored
fix(orchestrator): multiple visibility issues (#1016)
1 parent b9be64b commit 7d55c63

6 files changed

Lines changed: 17 additions & 13 deletions

File tree

workspaces/orchestrator/plugins/orchestrator-backend/src/service/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ function setupInternalRoutes(
684684
inputData = Object.keys(inputSchemaProps)
685685
.filter(k => k in workflowData)
686686
.reduce((result, k) => {
687-
if (!workflowData[k]) {
687+
if (workflowData[k] === undefined) {
688688
return result;
689689
}
690690
result[k] = workflowData[k];

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowInputs.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export const WorkflowInputs: React.FC<{
2828
value: any;
2929
loading: any;
3030
responseError: any;
31-
}> = ({ className, value, loading, responseError }) => {
31+
cardClassName: string;
32+
}> = ({ className, value, loading, responseError, cardClassName }) => {
3233
const inputs = value?.data;
3334
return (
3435
<InfoCard
@@ -40,6 +41,7 @@ export const WorkflowInputs: React.FC<{
4041
}
4142
divider={false}
4243
className={className}
44+
cardClassName={cardClassName}
4345
>
4446
{loading ? <Progress /> : null}
4547

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowInstancePageContent.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,19 @@ export const mapProcessInstanceToDetails = (
7070
const useStyles = makeStyles()(() => ({
7171
topRowCard: {
7272
height: '24rem',
73-
overflow: 'auto',
74-
'& > div:nth-child(2)': {
75-
overflow: 'auto',
76-
},
7773
},
7874
bottomRowCard: {
7975
height: '42rem',
80-
overflow: 'auto',
8176
},
8277
recommendedLabelContainer: {
8378
display: 'flex',
8479
alignItems: 'center',
8580
whiteSpace: 'nowrap',
8681
},
8782
recommendedLabel: { margin: '0 0.25rem' },
83+
cardClassName: {
84+
overflow: 'auto',
85+
},
8886
}));
8987

9088
export const WorkflowInstancePageContent: React.FC<{
@@ -164,6 +162,7 @@ export const WorkflowInstancePageContent: React.FC<{
164162
title="Details"
165163
divider={false}
166164
className={classes.topRowCard}
165+
cardClassName={classes.cardClassName}
167166
icon={viewVariables}
168167
>
169168
<WorkflowRunDetails
@@ -176,13 +175,15 @@ export const WorkflowInstancePageContent: React.FC<{
176175
<Grid item xs={6}>
177176
<WorkflowResult
178177
className={classes.topRowCard}
178+
cardClassName={classes.cardClassName}
179179
assessedInstance={assessedInstance}
180180
/>
181181
</Grid>
182182

183183
<Grid item xs={6}>
184184
<WorkflowInputs
185185
className={classes.bottomRowCard}
186+
cardClassName={classes.cardClassName}
186187
value={value}
187188
loading={loading}
188189
responseError={responseError}
@@ -194,6 +195,7 @@ export const WorkflowInstancePageContent: React.FC<{
194195
title="Workflow progress"
195196
divider={false}
196197
className={classes.bottomRowCard}
198+
cardClassName={classes.cardClassName}
197199
>
198200
<WorkflowProgress
199201
workflowError={assessedInstance.instance.error}

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowResult.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export const WorkflowResult: React.FC<{
340340
className={className}
341341
cardClassName={cardClassName}
342342
>
343-
<Grid container alignContent="flex-start">
343+
<Grid container alignContent="flex-start" spacing="1rem">
344344
<NextWorkflows
345345
instanceId={instance.id}
346346
nextWorkflows={result?.nextWorkflows}

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstanceStatusIndicator.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import React from 'react';
1818
import { Link } from '@backstage/core-components';
1919
import { useRouteRef } from '@backstage/core-plugin-api';
2020

21+
import { Box } from '@material-ui/core';
2122
import CheckCircleOutlined from '@mui/icons-material/CheckCircleOutlined';
2223
import ErrorOutlineOutlined from '@mui/icons-material/ErrorOutlineOutlined';
2324
import HourglassEmptyOutlined from '@mui/icons-material/HourglassEmptyOutlined';
@@ -79,17 +80,16 @@ export const WorkflowInstanceStatusIndicator = ({
7980
}
8081

8182
return (
82-
<div
83-
style={{ display: 'inline-flex', alignItems: 'center', gap: '0.25rem' }}
84-
>
83+
<Box display="flex" alignItems="center">
8584
{icon}
85+
&nbsp;{' '}
8686
{lastRunId ? (
8787
<Link to={workflowInstanceLink({ instanceId: lastRunId })}>
8888
{capitalize(title)}
8989
</Link>
9090
) : (
9191
<>{capitalize(title)}</>
9292
)}
93-
</div>
93+
</Box>
9494
);
9595
};

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowRunDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const WorkflowRunDetails: React.FC<WorkflowDetailsCardProps> = ({
5959
const workflowPageLink = useRouteRef(workflowRouteRef);
6060

6161
return (
62-
<Grid container alignContent="flex-start">
62+
<Grid container alignContent="flex-start" spacing="1rem">
6363
<Grid item md={7} key="Workflow">
6464
<AboutField label="Workflow">
6565
<Link to={workflowPageLink({ workflowId: details.workflowId })}>

0 commit comments

Comments
 (0)