Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-1134: Add project link to configure patch page #2194

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/gql/mocks/taskData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const taskQuery: TaskQuery = {
details: {
description:
"Long description that requirese use of the inline definition component. This would include details about where the task failed.",
diskDevices: [],
oomTracker: {
detected: false,
},
Expand Down
16 changes: 14 additions & 2 deletions src/pages/configurePatch/configurePatchCore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ import {
MetadataItem,
MetadataTitle,
} from "components/MetadataCard";
import { PageContent, PageLayout, PageSider } from "components/styles";
import {
StyledRouterLink,
PageContent,
PageLayout,
PageSider,
} from "components/styles";
import { StyledTabs } from "components/styles/StyledTabs";
import { getVersionRoute } from "constants/routes";
import { getProjectPatchesRoute, getVersionRoute } from "constants/routes";
import { fontSize, size } from "constants/tokens";
import { useToastContext } from "context/toast";
import {
Expand Down Expand Up @@ -53,6 +58,7 @@ const ConfigurePatchCore: React.FC<ConfigurePatchCoreProps> = ({ patch }) => {
id,
patchTriggerAliases,
project,
projectIdentifier,
time,
variantsTasks,
} = patch;
Expand Down Expand Up @@ -183,6 +189,12 @@ const ConfigurePatchCore: React.FC<ConfigurePatchCoreProps> = ({ patch }) => {
<MetadataTitle>Patch Metadata</MetadataTitle>
<MetadataItem>Submitted by: {author}</MetadataItem>
<MetadataItem>Submitted at: {time.submittedAt}</MetadataItem>
<MetadataItem>
Project:{" "}
<StyledRouterLink to={getProjectPatchesRoute(projectIdentifier)}>
{projectIdentifier}
</StyledRouterLink>
</MetadataItem>
</MetadataCard>
<ConfigureBuildVariants
variants={getVariantEntries(variants, selectedBuildVariantTasks)}
Expand Down