From bf009ae13b08b5d50f4ea46c2ac9f465370a626b Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Tue, 8 Nov 2022 21:04:23 +0100 Subject: [PATCH 1/2] chore(types): add status in Execution --- packages/types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index 0685adf4..6701a7c5 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -40,6 +40,7 @@ export interface IExecution { flowId: string; flow: IFlow; testRun: boolean; + status: 'success' | 'failure'; executionSteps: IExecutionStep[]; updatedAt: string; createdAt: string; From 608038cbcc6df1656be6376e489ffa6a31acc24b Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Tue, 8 Nov 2022 21:04:56 +0100 Subject: [PATCH 2/2] feat(web): add status in execution row --- packages/web/src/components/ExecutionRow/index.tsx | 10 ++++++++++ packages/web/src/graphql/queries/get-executions.ts | 1 + packages/web/src/locales/en.json | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/web/src/components/ExecutionRow/index.tsx b/packages/web/src/components/ExecutionRow/index.tsx index f56abcd1..114162cd 100644 --- a/packages/web/src/components/ExecutionRow/index.tsx +++ b/packages/web/src/components/ExecutionRow/index.tsx @@ -57,6 +57,16 @@ export default function ExecutionRow( /> )} + + theme.palette.primary.main }} /> diff --git a/packages/web/src/graphql/queries/get-executions.ts b/packages/web/src/graphql/queries/get-executions.ts index 1c015677..653426a9 100644 --- a/packages/web/src/graphql/queries/get-executions.ts +++ b/packages/web/src/graphql/queries/get-executions.ts @@ -13,6 +13,7 @@ export const GET_EXECUTIONS = gql` testRun createdAt updatedAt + status flow { id name diff --git a/packages/web/src/locales/en.json b/packages/web/src/locales/en.json index a18afad8..4d79ee2b 100644 --- a/packages/web/src/locales/en.json +++ b/packages/web/src/locales/en.json @@ -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}" -} +} \ No newline at end of file