feat: show error in execution step
This commit is contained in:
@@ -188,6 +188,7 @@ type ExecutionStep {
|
||||
status: String
|
||||
dataIn: JSONObject
|
||||
dataOut: JSONObject
|
||||
errorDetails: JSONObject
|
||||
createdAt: String
|
||||
updatedAt: String
|
||||
}
|
||||
|
1
packages/types/index.d.ts
vendored
1
packages/types/index.d.ts
vendored
@@ -26,6 +26,7 @@ export interface IExecutionStep {
|
||||
step: IStep;
|
||||
dataIn: IJSONObject;
|
||||
dataOut: IJSONObject;
|
||||
errorDetails: IJSONObject;
|
||||
status: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
|
@@ -73,6 +73,7 @@ export default function ExecutionStep(props: ExecutionStepProps): React.ReactEle
|
||||
<Tabs value={activeTabIndex} onChange={(event, tabIndex) => setActiveTabIndex(tabIndex)}>
|
||||
<Tab label="Data in" />
|
||||
<Tab label="Data out" />
|
||||
<Tab label="Error" />
|
||||
<Tab label="Execution step" />
|
||||
</Tabs>
|
||||
</Box>
|
||||
@@ -86,6 +87,10 @@ export default function ExecutionStep(props: ExecutionStepProps): React.ReactEle
|
||||
</TabPanel>
|
||||
|
||||
<TabPanel value={activeTabIndex} index={2}>
|
||||
<JSONViewer data={executionStep.errorDetails} />
|
||||
</TabPanel>
|
||||
|
||||
<TabPanel value={activeTabIndex} index={3}>
|
||||
<JSONViewer data={(executionStep as unknown) as IJSONObject} />
|
||||
</TabPanel>
|
||||
</Content>
|
||||
|
@@ -14,6 +14,7 @@ export const GET_EXECUTION_STEPS = gql`
|
||||
status
|
||||
dataIn
|
||||
dataOut
|
||||
errorDetails
|
||||
createdAt
|
||||
updatedAt
|
||||
step {
|
||||
|
Reference in New Issue
Block a user