Merge pull request #699 from automatisch/issue-694
feat(web): add status in execution row
This commit is contained in:
1
packages/types/index.d.ts
vendored
1
packages/types/index.d.ts
vendored
@@ -40,6 +40,7 @@ export interface IExecution {
|
||||
flowId: string;
|
||||
flow: IFlow;
|
||||
testRun: boolean;
|
||||
status: 'success' | 'failure';
|
||||
executionSteps: IExecutionStep[];
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
|
@@ -57,6 +57,16 @@ export default function ExecutionRow(
|
||||
/>
|
||||
)}
|
||||
|
||||
<Chip
|
||||
size="small"
|
||||
color={execution.status === 'success' ? 'success' : 'error'}
|
||||
label={formatMessage(
|
||||
execution.status === 'success'
|
||||
? 'execution.statusSuccess'
|
||||
: 'execution.statusFailure'
|
||||
)}
|
||||
/>
|
||||
|
||||
<ArrowForwardIosIcon
|
||||
sx={{ color: (theme) => theme.palette.primary.main }}
|
||||
/>
|
||||
|
@@ -13,6 +13,7 @@ export const GET_EXECUTIONS = gql`
|
||||
testRun
|
||||
createdAt
|
||||
updatedAt
|
||||
status
|
||||
flow {
|
||||
id
|
||||
name
|
||||
|
@@ -74,6 +74,8 @@
|
||||
"executions.noExecutions": "There is no execution data point to show.",
|
||||
"execution.executedAt": "executed {datetime}",
|
||||
"execution.test": "Test run",
|
||||
"execution.statusSuccess": "Success",
|
||||
"execution.statusFailure": "Failure",
|
||||
"execution.noDataTitle": "No data",
|
||||
"execution.noDataMessage": "We successfully ran the execution, but there was no new data to process.",
|
||||
"profileSettings.title": "My Profile",
|
||||
@@ -86,4 +88,4 @@
|
||||
"profileSettings.updatePassword": "Update password",
|
||||
"notifications.title": "Notifications",
|
||||
"notification.releasedAt": "Released {relativeDate}"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user