Skip to content

Commit 4230667

Browse files
committed
CONSOLE-4846: add Trusted Software Supply Chain to Getting Started card
1 parent b8fa7f7 commit 4230667

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

frontend/packages/console-app/src/components/quick-starts/QuickStartCatalogPage.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import * as React from 'react';
2-
import { QuickStartCatalogPage as PfQuickStartCatalogPage } from '@patternfly/quickstarts';
2+
import {
3+
QuickStartCatalogPage as PfQuickStartCatalogPage,
4+
QuickStartContext,
5+
QuickStartContextValues,
6+
} from '@patternfly/quickstarts';
37
import { useTranslation } from 'react-i18next';
8+
import { getQueryArgument } from '@console/internal/components/utils/router';
49
import { LoadingBox } from '@console/internal/components/utils/status-box';
510
import { DocumentTitle } from '@console/shared/src/components/document-title/DocumentTitle';
611
import { PageHeading } from '@console/shared/src/components/heading/PageHeading';
@@ -9,6 +14,15 @@ import { QuickStartEmptyState } from './QuickStartEmptyState';
914

1015
const QuickStartCatalogPage: React.FC = () => {
1116
const { t } = useTranslation('console-app');
17+
const { setFilter } = React.useContext<QuickStartContextValues>(QuickStartContext);
18+
19+
React.useEffect(() => {
20+
const keyword = getQueryArgument('keyword');
21+
if (keyword && setFilter) {
22+
setFilter('keyword', keyword);
23+
}
24+
}, [setFilter]);
25+
1226
return (
1327
<>
1428
<DocumentTitle>{t('Quick Starts')}</DocumentTitle>

frontend/public/components/dashboard/dashboards-page/cluster-dashboard/getting-started/explore-admin-features-getting-started-card.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ export const ExploreAdminFeaturesGettingStartedCard: React.FC = () => {
3232
href:
3333
'/catalog?catalogType=operator&keyword=openshift+ai&selectedId=rhods-operator-redhat-operators-openshift-marketplace',
3434
},
35+
{
36+
id: 'trusted-software-supply-chain',
37+
title: t('public~Trusted Software Supply Chain'),
38+
description: t('public~Assess risk, validate integrity, secure artifacts, release safely.'),
39+
href: '/quickstart?keyword=trusted',
40+
},
3541
...(showLightSpeedLink
3642
? [
3743
{

frontend/public/locales/en/public.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@
426426
"Add identity providers": "Add identity providers",
427427
"OpenShift AI": "OpenShift AI",
428428
"Build, deploy, and manage AI-enabled applications.": "Build, deploy, and manage AI-enabled applications.",
429+
"Trusted Software Supply Chain": "Trusted Software Supply Chain",
430+
"Assess risk, validate integrity, secure artifacts, release safely.": "Assess risk, validate integrity, secure artifacts, release safely.",
429431
"OpenShift Lightspeed": "OpenShift Lightspeed",
430432
"Your personal AI helper.": "Your personal AI helper.",
431433
"French and Spanish now available": "French and Spanish now available",

0 commit comments

Comments
 (0)