feat: show error in execution step

This commit is contained in:
Ali BARIN
2022-09-10 20:30:21 +02:00
committed by Faruk AYDIN
parent 9429031a61
commit d0bcf997fb
4 changed files with 8 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ type ExecutionStep {
status: String status: String
dataIn: JSONObject dataIn: JSONObject
dataOut: JSONObject dataOut: JSONObject
errorDetails: JSONObject
createdAt: String createdAt: String
updatedAt: String updatedAt: String
} }

View File

@@ -26,6 +26,7 @@ export interface IExecutionStep {
step: IStep; step: IStep;
dataIn: IJSONObject; dataIn: IJSONObject;
dataOut: IJSONObject; dataOut: IJSONObject;
errorDetails: IJSONObject;
status: string; status: string;
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;

View File

@@ -73,6 +73,7 @@ export default function ExecutionStep(props: ExecutionStepProps): React.ReactEle
<Tabs value={activeTabIndex} onChange={(event, tabIndex) => setActiveTabIndex(tabIndex)}> <Tabs value={activeTabIndex} onChange={(event, tabIndex) => setActiveTabIndex(tabIndex)}>
<Tab label="Data in" /> <Tab label="Data in" />
<Tab label="Data out" /> <Tab label="Data out" />
<Tab label="Error" />
<Tab label="Execution step" /> <Tab label="Execution step" />
</Tabs> </Tabs>
</Box> </Box>
@@ -86,6 +87,10 @@ export default function ExecutionStep(props: ExecutionStepProps): React.ReactEle
</TabPanel> </TabPanel>
<TabPanel value={activeTabIndex} index={2}> <TabPanel value={activeTabIndex} index={2}>
<JSONViewer data={executionStep.errorDetails} />
</TabPanel>
<TabPanel value={activeTabIndex} index={3}>
<JSONViewer data={(executionStep as unknown) as IJSONObject} /> <JSONViewer data={(executionStep as unknown) as IJSONObject} />
</TabPanel> </TabPanel>
</Content> </Content>

View File

@@ -14,6 +14,7 @@ export const GET_EXECUTION_STEPS = gql`
status status
dataIn dataIn
dataOut dataOut
errorDetails
createdAt createdAt
updatedAt updatedAt
step { step {