diff --git a/packages/console/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx b/packages/console/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx index 84c8f214c..70895f035 100644 --- a/packages/console/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx +++ b/packages/console/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx @@ -63,7 +63,7 @@ export const ExecutionMetadata: React.FC<{}> = () => { const { execution } = React.useContext(ExecutionContext); const { domain } = execution.id; - const { abortMetadata, duration, error, startedAt, workflowId } = + const { abortMetadata, duration, error, startedAt, createdAt, workflowId } = execution.closure; const { referenceExecution, systemMetadata } = execution.spec.metadata; const cluster = systemMetadata?.executionCluster ?? dashedValueString; @@ -80,11 +80,17 @@ export const ExecutionMetadata: React.FC<{}> = () => { value: cluster, }, { - label: ExecutionMetadataLabels.time, + label: ExecutionMetadataLabels.startedAt, value: startedAt ? formatDateUTC(timestampToDate(startedAt)) : dashedValueString, }, + { + label: ExecutionMetadataLabels.createdAt, + value: createdAt + ? formatDateUTC(timestampToDate(createdAt)) + : dashedValueString, + }, { label: ExecutionMetadataLabels.duration, value: duration ? protobufDurationToHMS(duration) : dashedValueString, diff --git a/packages/console/src/components/Executions/ExecutionDetails/constants.ts b/packages/console/src/components/Executions/ExecutionDetails/constants.ts index 67238889d..c1d07b3a3 100644 --- a/packages/console/src/components/Executions/ExecutionDetails/constants.ts +++ b/packages/console/src/components/Executions/ExecutionDetails/constants.ts @@ -2,7 +2,8 @@ export enum ExecutionMetadataLabels { cluster = 'Cluster', domain = 'Domain', duration = 'Duration', - time = 'Time', + startedAt = 'Start time', + createdAt = 'Create time', relatedTo = 'Related to', version = 'Version', serviceAccount = 'Service Account', diff --git a/packages/console/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx b/packages/console/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx index ead3b180d..bfbb421c4 100644 --- a/packages/console/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx +++ b/packages/console/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx @@ -11,7 +11,7 @@ import { ExecutionMetadataLabels } from '../constants'; import { ExecutionMetadata } from '../ExecutionMetadata'; const clusterTestId = `metadata-${ExecutionMetadataLabels.cluster}`; -const startTimeTestId = `metadata-${ExecutionMetadataLabels.time}`; +const startTimeTestId = `metadata-${ExecutionMetadataLabels.startedAt}`; const durationTestId = `metadata-${ExecutionMetadataLabels.duration}`; const interruptibleTestId = `metadata-${ExecutionMetadataLabels.interruptible}`; const overwriteCacheTestId = `metadata-${ExecutionMetadataLabels.overwriteCache}`;