Skip to content

Commit eb7d085

Browse files
Merge pull request #211 from openshift/migrate-to-pf6
COO-1683: feat: upgrade to PF6
2 parents f53c4a5 + 8f1b2e8 commit eb7d085

7 files changed

Lines changed: 117 additions & 191 deletions

File tree

web/package-lock.json

Lines changed: 32 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"@cypress/webpack-preprocessor": "^7.0.1",
2727
"@openshift-console/dynamic-plugin-sdk": "^4.19.0",
2828
"@openshift-console/dynamic-plugin-sdk-webpack": "^4.19.0",
29-
"@patternfly/react-core": "^5.1.1",
30-
"@patternfly/react-icons": "^5.1.1",
31-
"@patternfly/react-topology": "^6.2.0",
29+
"@patternfly/react-core": "^6.4.1",
30+
"@patternfly/react-icons": "^6.4.0",
31+
"@patternfly/react-topology": "^6.3.0",
3232
"@types/jest": "^29.5.12",
3333
"@types/node": "^18.0.0",
3434
"@types/react": "^17.0.37",

web/src/components/AdvancedSearchForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const AdvancedSearchForm: React.FC<AdvancedSearchFormProps> = ({
130130
label={t('Start Query')}
131131
labelInfo={t('Select starting data')}
132132
hasNoPaddingTop={true}
133-
labelIcon={
133+
labelHelp={
134134
<HelpPopover>
135135
<Trans t={t}>
136136
<p>Query to select the starting data for the search.</p>
@@ -177,7 +177,7 @@ export const AdvancedSearchForm: React.FC<AdvancedSearchFormProps> = ({
177177
label={t('Search Type')}
178178
labelInfo={t('Neighbours or Goal search')}
179179
hasNoPaddingTop={true}
180-
labelIcon={
180+
labelHelp={
181181
<HelpPopover>
182182
<Trans t={t}>
183183
<p>There are two types of correlation search:</p>

web/src/components/Korrel8rPanel.tsx

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import {
33
Divider,
44
EmptyState,
55
EmptyStateBody,
6-
EmptyStateHeader,
7-
EmptyStateIcon,
86
EmptyStateVariant,
97
ExpandableSection,
108
ExpandableSectionToggle,
@@ -272,13 +270,12 @@ const Searching: React.FC = () => {
272270
const { t } = useTranslation('plugin__troubleshooting-panel-console-plugin');
273271
return (
274272
<div className="tp-plugin__panel-topology-info">
275-
<EmptyState variant={EmptyStateVariant.sm}>
276-
<EmptyStateHeader
277-
titleText={t('Searching')}
278-
headingLevel="h4"
279-
icon={<EmptyStateIcon icon={Spinner} />}
280-
/>
281-
</EmptyState>
273+
<EmptyState
274+
variant={EmptyStateVariant.sm}
275+
titleText={t('Searching')}
276+
headingLevel="h4"
277+
icon={Spinner}
278+
/>
282279
</div>
283280
);
284281
};
@@ -292,17 +289,13 @@ interface TopologyInfoStateProps {
292289
const TopologyInfoState: React.FC<TopologyInfoStateProps> = ({ titleText, text, isError }) => {
293290
return (
294291
<div className="tp-plugin__panel-topology-info">
295-
<EmptyState variant={EmptyStateVariant.sm}>
296-
<EmptyStateHeader
297-
titleText={titleText}
298-
headingLevel="h4"
299-
icon={
300-
<EmptyStateIcon
301-
icon={isError ? ExclamationCircleIcon : CubesIcon}
302-
color={isError ? 'var(--pf-v5-global--danger-color--100)' : ''}
303-
/>
304-
}
305-
/>
292+
<EmptyState
293+
variant={EmptyStateVariant.sm}
294+
titleText={titleText}
295+
headingLevel="h4"
296+
icon={isError ? ExclamationCircleIcon : CubesIcon}
297+
status={isError ? 'danger' : undefined}
298+
>
306299
<EmptyStateBody>{text}</EmptyStateBody>
307300
</EmptyState>
308301
</div>

0 commit comments

Comments
 (0)