feat(ExecutionStep): show step name in execution history
This commit is contained in:
@@ -9,6 +9,7 @@ import Tab from '@mui/material/Tab';
|
|||||||
import Typography from '@mui/material/Typography';
|
import Typography from '@mui/material/Typography';
|
||||||
import Tooltip from '@mui/material/Tooltip';
|
import Tooltip from '@mui/material/Tooltip';
|
||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
|
import Chip from '@mui/material/Chip';
|
||||||
|
|
||||||
import TabPanel from 'components/TabPanel';
|
import TabPanel from 'components/TabPanel';
|
||||||
import SearchableJSONViewer from 'components/SearchableJSONViewer';
|
import SearchableJSONViewer from 'components/SearchableJSONViewer';
|
||||||
@@ -100,6 +101,10 @@ function ExecutionStep(props) {
|
|||||||
|
|
||||||
const hasError = !!executionStep.errorDetails;
|
const hasError = !!executionStep.errorDetails;
|
||||||
|
|
||||||
|
const stepTypeName = isTrigger
|
||||||
|
? formatMessage('flowStep.triggerType')
|
||||||
|
: formatMessage('flowStep.actionType');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper elevation={1} data-test="execution-step">
|
<Wrapper elevation={1} data-test="execution-step">
|
||||||
<Header>
|
<Header>
|
||||||
@@ -119,13 +124,20 @@ function ExecutionStep(props) {
|
|||||||
<ExecutionStepId id={executionStep.step.id} />
|
<ExecutionStepId id={executionStep.step.id} />
|
||||||
|
|
||||||
<Box flex="1" gridArea="step">
|
<Box flex="1" gridArea="step">
|
||||||
<Typography variant="caption">
|
<Typography
|
||||||
{isTrigger && formatMessage('flowStep.triggerType')}
|
component={Stack}
|
||||||
{isAction && formatMessage('flowStep.actionType')}
|
direction="row"
|
||||||
|
variant="stepApp"
|
||||||
|
alignItems="center"
|
||||||
|
gap={0.5}
|
||||||
|
>
|
||||||
|
<Chip label={stepTypeName} variant="stepType" size="small" />
|
||||||
|
|
||||||
|
{app?.name}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="body2">
|
<Typography variant="body2">
|
||||||
{step.position}. {app?.name}
|
{step.position}. {step.name}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user