From 3549fef71c0d1ff37ac12fd9d6d48dbf441b7bef Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 26 Oct 2023 15:39:38 +0000 Subject: [PATCH] feat(ExecutionRow): use createdAt instead of updatedAt --- packages/web/src/components/ExecutionRow/index.tsx | 10 ++++++---- packages/web/src/locales/en.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/web/src/components/ExecutionRow/index.tsx b/packages/web/src/components/ExecutionRow/index.tsx index 1baa49a3..31cef9b6 100644 --- a/packages/web/src/components/ExecutionRow/index.tsx +++ b/packages/web/src/components/ExecutionRow/index.tsx @@ -23,8 +23,10 @@ export default function ExecutionRow( const { execution } = props; const { flow } = execution; - const updatedAt = DateTime.fromMillis(parseInt(execution.updatedAt, 10)); - const relativeUpdatedAt = updatedAt.toRelative(); + const createdAt = DateTime.fromMillis( + parseInt(execution.createdAt as string, 10) + ); + const relativeCreatedAt = createdAt.toRelative(); return ( @@ -41,8 +43,8 @@ export default function ExecutionRow( - {formatMessage('execution.updatedAt', { - datetime: relativeUpdatedAt, + {formatMessage('execution.createdAt', { + datetime: relativeCreatedAt, })} diff --git a/packages/web/src/locales/en.json b/packages/web/src/locales/en.json index 0931fe67..4c082efb 100644 --- a/packages/web/src/locales/en.json +++ b/packages/web/src/locales/en.json @@ -89,7 +89,7 @@ "executions.title": "Executions", "executions.noExecutions": "There is no execution data point to show.", "execution.id": "Execution ID: {id}", - "execution.updatedAt": "updated {datetime}", + "execution.createdAt": "created {datetime}", "execution.test": "Test run", "execution.statusSuccess": "Success", "execution.statusFailure": "Failure",