feat(ExecutionRow): use createdAt instead of updatedAt
This commit is contained in:
@@ -23,8 +23,10 @@ export default function ExecutionRow(
|
|||||||
const { execution } = props;
|
const { execution } = props;
|
||||||
const { flow } = execution;
|
const { flow } = execution;
|
||||||
|
|
||||||
const updatedAt = DateTime.fromMillis(parseInt(execution.updatedAt, 10));
|
const createdAt = DateTime.fromMillis(
|
||||||
const relativeUpdatedAt = updatedAt.toRelative();
|
parseInt(execution.createdAt as string, 10)
|
||||||
|
);
|
||||||
|
const relativeCreatedAt = createdAt.toRelative();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link to={URLS.EXECUTION(execution.id)} data-test="execution-row">
|
<Link to={URLS.EXECUTION(execution.id)} data-test="execution-row">
|
||||||
@@ -41,8 +43,8 @@ export default function ExecutionRow(
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="caption" noWrap>
|
<Typography variant="caption" noWrap>
|
||||||
{formatMessage('execution.updatedAt', {
|
{formatMessage('execution.createdAt', {
|
||||||
datetime: relativeUpdatedAt,
|
datetime: relativeCreatedAt,
|
||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Title>
|
</Title>
|
||||||
|
@@ -89,7 +89,7 @@
|
|||||||
"executions.title": "Executions",
|
"executions.title": "Executions",
|
||||||
"executions.noExecutions": "There is no execution data point to show.",
|
"executions.noExecutions": "There is no execution data point to show.",
|
||||||
"execution.id": "Execution ID: {id}",
|
"execution.id": "Execution ID: {id}",
|
||||||
"execution.updatedAt": "updated {datetime}",
|
"execution.createdAt": "created {datetime}",
|
||||||
"execution.test": "Test run",
|
"execution.test": "Test run",
|
||||||
"execution.statusSuccess": "Success",
|
"execution.statusSuccess": "Success",
|
||||||
"execution.statusFailure": "Failure",
|
"execution.statusFailure": "Failure",
|
||||||
|
Reference in New Issue
Block a user