feat(ExecutionRow): use createdAt instead of updatedAt

This commit is contained in:
Ali BARIN
2023-10-26 15:39:38 +00:00
parent 2cfa64c2a3
commit 3549fef71c
2 changed files with 7 additions and 5 deletions

View File

@@ -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 (
<Link to={URLS.EXECUTION(execution.id)} data-test="execution-row">
@@ -41,8 +43,8 @@ export default function ExecutionRow(
</Typography>
<Typography variant="caption" noWrap>
{formatMessage('execution.updatedAt', {
datetime: relativeUpdatedAt,
{formatMessage('execution.createdAt', {
datetime: relativeCreatedAt,
})}
</Typography>
</Title>

View File

@@ -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",