diff --git a/web/src/components/ExecutionPageHeader/ExecutionPageHeader.tsx b/web/src/components/ExecutionPageHeader/ExecutionPageHeader.tsx index 0a6fcb2f7..0cfed678e 100644 --- a/web/src/components/ExecutionPageHeader/ExecutionPageHeader.tsx +++ b/web/src/components/ExecutionPageHeader/ExecutionPageHeader.tsx @@ -44,6 +44,7 @@ import { getErrorMessage, timeDistance } from 'utils/Utils' import useLiveTimer from 'hooks/useLiveTimeHook' import { CommitActions } from 'components/CommitActions/CommitActions' import type { TypesExecution } from 'services/code' +import { RepoArchivedBanner } from 'components/RepositoryArchivedBanner/RepositoryArchivedBanner' import css from './ExecutionPageHeader.module.scss' interface BreadcrumbLink { @@ -99,119 +100,127 @@ export function ExecutionPageHeader({ } return ( - - {getString('repositories')} - - - {repoMetadata.identifier} - - {extraBreadcrumbLinks.map(link => ( - - - {/* This allows for outer most entities to not necessarily be links */} - {link.url ? ( - {link.label} - ) : ( - - {link.label} - - )} - - ))} - - } - content={ - executionInfo && ( - - - - {executionInfo.message} - - - - - {executionInfo.authorName} - - - - - {executionInfo.source} - - - {executionInfo.hash && ( - - - - )} - - {executionInfo.started && ( - - - - {isActive - ? timeDistance(executionInfo.started, currentTime, true) // Live update time when status is 'RUNNING' - : timeDistance(executionInfo.started, executionInfo.finished, true)} - - {executionInfo.finished && ( - <> - - - - {timeDistance(executionInfo.finished, currentTime, true)} ago - - + <> + + {getString('repositories')} + + + {repoMetadata.identifier} + + {extraBreadcrumbLinks.map(link => ( + + + {/* This allows for outer most entities to not necessarily be links */} + {link.url ? ( + {link.label} + ) : ( + + {link.label} + )} - - )} - <> + + ))} + + } + content={ + executionInfo && ( + + + + {executionInfo.message} + - + - + + + + + {getString('cautionZone')} + + + + + + + {repoState === RepoState.ARCHIVED + ? getString('repoArchive.unarchive') + : getString('repoArchive.archive')} + + + {repoState === RepoState.ARCHIVED + ? getString('repoArchive.unarchiveInfo') + : getString('repoArchive.archiveInfo')} + + +