Skip to content

Commit

Permalink
DEVPROD-1134: Add project link to configure patch page (evergreen-ci#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad authored Dec 15, 2023
1 parent 3ab4a87 commit 7a26e85
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
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

0 comments on commit 7a26e85

Please sign in to comment.