Skip to content
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
9 changes: 9 additions & 0 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ export interface V2RPMs {
nvras: string[];
}

export interface V2Source {
name: string;
url: string;
vendor: string;
license: string;
licenseUrl: string;
}

export interface V2Advisory {
id?: number;
publishedAt?: string;
Expand All @@ -48,6 +56,7 @@ export interface V2Advisory {
rpms?: Record<string, V2RPMs>;
rebootSuggested?: boolean;
buildReferences?: string[];
source?: V2Source | null;
}

export interface V2AdvisoryListResponse {
Expand Down
11 changes: 11 additions & 0 deletions src/components/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ export const Root = () => {
</Box>
<span>RSS</span>
</ChakraLink>
<Text fontSize="xs" my="auto" ml="auto" textAlign="right">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocking change, but this will always show, even if it's an overview page or if the advisory didn't come from Red Hat.

Advisory content derived from Red Hat, used under{" "}
<ChakraLink
href="https://creativecommons.org/licenses/by/4.0/"
isExternal
textDecoration="underline"
>
CC BY 4.0
</ChakraLink>
, with modifications.
</Text>
</Box>
</Box>
);
Expand Down
23 changes: 23 additions & 0 deletions src/components/ShowErrata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,29 @@ export const ShowErrata = () => {
</Text>
</HStack>
<Text fontSize="sm">{errata.synopsis}</Text>
{errata.source && (
<Text fontSize="xs" mt={1} color="gray.500">
Source:{" "}
<Link
href={errata.source.url}
isExternal
color={linkBlue}
_visited={{ color: linkPurple }}
>
{errata.source.vendor} {errata.source.name}
</Link>
, used under{" "}
<Link
href={errata.source.licenseUrl}
isExternal
color={linkBlue}
_visited={{ color: linkPurple }}
>
{errata.source.license}
</Link>
, with modifications.
</Text>
)}
</VStack>
</HStack>
<Tabs backgroundColor={cardBg} p="2">
Expand Down