@patternfly/quickstarts 2.4.1 → 5.0.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -23
- package/dist/ConsoleInternal/components/markdown-view.d.ts +19 -19
- package/dist/ConsoleInternal/components/utils/camel-case-wrap.d.ts +6 -6
- package/dist/ConsoleInternal/components/utils/index.d.ts +3 -3
- package/dist/ConsoleInternal/components/utils/router.d.ts +9 -9
- package/dist/ConsoleInternal/components/utils/status-box.d.ts +20 -20
- package/dist/ConsoleInternal/module/k8s/types.d.ts +42 -42
- package/dist/ConsoleShared/index.d.ts +1 -1
- package/dist/ConsoleShared/src/components/index.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.d.ts +13 -13
- package/dist/ConsoleShared/src/components/markdown-extensions/accordion-extension.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.d.ts +6 -6
- package/dist/ConsoleShared/src/components/markdown-extensions/admonition-extension.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/code-extension.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/const.d.ts +5 -5
- package/dist/ConsoleShared/src/components/markdown-extensions/index.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-extensions/utils.d.ts +1 -1
- package/dist/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.d.ts +7 -7
- package/dist/ConsoleShared/src/components/markdown-highlight-extension/highlight-consts.d.ts +4 -4
- package/dist/ConsoleShared/src/components/markdown-highlight-extension/index.d.ts +1 -1
- package/dist/ConsoleShared/src/components/modal/Modal.d.ts +9 -9
- package/dist/ConsoleShared/src/components/modal/index.d.ts +1 -1
- package/dist/ConsoleShared/src/components/popper/Portal.d.ts +8 -7
- package/dist/ConsoleShared/src/components/popper/SimplePopper.d.ts +6 -3
- package/dist/ConsoleShared/src/components/popper/index.d.ts +2 -2
- package/dist/ConsoleShared/src/components/spotlight/InteractiveSpotlight.d.ts +7 -7
- package/dist/ConsoleShared/src/components/spotlight/Spotlight.d.ts +7 -7
- package/dist/ConsoleShared/src/components/spotlight/StaticSpotlight.d.ts +7 -7
- package/dist/ConsoleShared/src/components/spotlight/index.d.ts +1 -1
- package/dist/ConsoleShared/src/components/status/GenericStatus.d.ts +12 -11
- package/dist/ConsoleShared/src/components/status/NotStartedIcon.d.ts +3 -2
- package/dist/ConsoleShared/src/components/status/PopoverStatus.d.ts +13 -12
- package/dist/ConsoleShared/src/components/status/Status.d.ts +11 -11
- package/dist/ConsoleShared/src/components/status/StatusIconAndText.d.ts +8 -8
- package/dist/ConsoleShared/src/components/status/icons.d.ts +9 -9
- package/dist/ConsoleShared/src/components/status/index.d.ts +1 -1
- package/dist/ConsoleShared/src/components/status/statuses.d.ts +5 -5
- package/dist/ConsoleShared/src/components/status/types.d.ts +9 -7
- package/dist/ConsoleShared/src/components/utils/FallbackImg.d.ts +9 -9
- package/dist/ConsoleShared/src/components/utils/index.d.ts +1 -1
- package/dist/ConsoleShared/src/constants/index.d.ts +1 -1
- package/dist/ConsoleShared/src/constants/ui.d.ts +1 -1
- package/dist/ConsoleShared/src/hooks/index.d.ts +6 -6
- package/dist/ConsoleShared/src/hooks/scroll.d.ts +8 -8
- package/dist/ConsoleShared/src/hooks/useBoundingClientRect.d.ts +3 -1
- package/dist/ConsoleShared/src/hooks/useEventListener.d.ts +1 -1
- package/dist/ConsoleShared/src/hooks/useForceRender.d.ts +4 -4
- package/dist/ConsoleShared/src/hooks/useResizeObserver.d.ts +1 -1
- package/dist/ConsoleShared/src/hooks/useScrollShadows.d.ts +7 -7
- package/dist/ConsoleShared/src/index.d.ts +4 -4
- package/dist/ConsoleShared/src/utils/index.d.ts +1 -1
- package/dist/ConsoleShared/src/utils/useCombineRefs.d.ts +2 -2
- package/dist/HelpTopicDrawer.d.ts +33 -32
- package/dist/HelpTopicPanelContent.d.ts +11 -11
- package/dist/QuickStartCatalogPage.d.ts +14 -14
- package/dist/QuickStartCloseModal.d.ts +8 -8
- package/dist/QuickStartController.d.ts +10 -10
- package/dist/QuickStartDrawer.d.ts +62 -62
- package/dist/QuickStartMarkdownView.d.ts +9 -9
- package/dist/QuickStartPanelContent.d.ts +15 -15
- package/dist/catalog/Catalog/QuickStartCatalogHeader.d.ts +6 -6
- package/dist/catalog/Catalog/QuickStartCatalogSection.d.ts +5 -5
- package/dist/catalog/Catalog/QuickStartCatalogToolbar.d.ts +5 -5
- package/dist/catalog/Catalog/index.d.ts +3 -3
- package/dist/catalog/QuickStartCatalog.d.ts +8 -8
- package/dist/catalog/QuickStartTile.d.ts +11 -11
- package/dist/catalog/QuickStartTileDescription.d.ts +8 -8
- package/dist/catalog/QuickStartTileFooter.d.ts +8 -8
- package/dist/catalog/QuickStartTileFooterExternal.d.ts +8 -8
- package/dist/catalog/QuickStartTileHeader.d.ts +12 -12
- package/dist/catalog/Toolbar/QuickStartCatalogFilter.d.ts +10 -10
- package/dist/catalog/Toolbar/QuickStartCatalogFilterItems.d.ts +31 -31
- package/dist/catalog/index.d.ts +9 -9
- package/dist/controller/QuickStartConclusion.d.ts +12 -12
- package/dist/controller/QuickStartContent.d.ts +14 -14
- package/dist/controller/QuickStartFooter.d.ts +14 -14
- package/dist/controller/QuickStartIntroduction.d.ts +12 -12
- package/dist/controller/QuickStartTaskHeader.d.ts +15 -15
- package/dist/controller/QuickStartTaskHeaderList.d.ts +10 -10
- package/dist/controller/QuickStartTaskReview.d.ts +10 -10
- package/dist/controller/QuickStartTasks.d.ts +12 -12
- package/dist/data/mocks/json/explore-pipeline-quickstart.d.ts +2 -2
- package/dist/data/mocks/json/explore-serverless-quickstart.d.ts +2 -2
- package/dist/data/mocks/json/monitor-sampleapp-quickstart.d.ts +2 -2
- package/dist/data/mocks/json/tour-icons.d.ts +2 -2
- package/dist/data/quick-start-test-data.d.ts +2 -2
- package/dist/data/test-utils.d.ts +8 -7
- package/dist/index.d.ts +16 -16
- package/dist/index.es.js +2346 -2391
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2346 -2390
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +1 -1
- package/dist/patternfly-docs/quick-starts/examples/Basic.jsx +1 -1
- package/dist/patternfly-docs/quick-starts/examples/HelpTopic.jsx +2 -4
- package/dist/patternfly-global.css +752 -1110
- package/dist/patternfly-nested.css +8784 -9605
- package/dist/quickstarts-base.css +188 -188
- package/dist/quickstarts-full.es.js +19627 -10887
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +216 -219
- package/dist/quickstarts-standalone.min.css +4 -4
- package/dist/quickstarts-vendor.css +71 -71
- package/dist/quickstarts.css +259 -259
- package/dist/quickstarts.min.css +1 -1
- package/dist/styles/patternfly-global-entry.d.ts +1 -1
- package/dist/styles/patternfly-nested-entry.d.ts +1 -1
- package/dist/styles/quickstarts-standalone-entry.d.ts +1 -1
- package/dist/styles/vendor-entry.d.ts +1 -1
- package/dist/utils/PluralResolver.d.ts +16 -10
- package/dist/utils/asciidoc-procedure-parser.d.ts +12 -12
- package/dist/utils/const.d.ts +6 -6
- package/dist/utils/help-topic-context.d.ts +23 -23
- package/dist/utils/help-topic-types.d.ts +13 -13
- package/dist/utils/quick-start-context.d.ts +81 -81
- package/dist/utils/quick-start-types.d.ts +60 -58
- package/dist/utils/quick-start-utils.d.ts +10 -10
- package/dist/utils/useLocalStorage.d.ts +1 -1
- package/package.json +17 -13
- package/src/ConsoleInternal/components/_icon-and-text.scss +2 -2
- package/src/ConsoleInternal/components/catalog/_catalog.scss +20 -20
- package/src/ConsoleInternal/components/markdown-view.tsx +23 -52
- package/src/ConsoleInternal/components/utils/_status-box.scss +1 -1
- package/src/ConsoleInternal/components/utils/camel-case-wrap.tsx +3 -3
- package/src/ConsoleInternal/components/utils/router.ts +0 -2
- package/src/ConsoleInternal/components/utils/status-box.tsx +8 -46
- package/src/ConsoleInternal/module/k8s/types.ts +6 -6
- package/src/ConsoleShared/src/components/layout/PageLayout.scss +10 -10
- package/src/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.tsx +13 -11
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +3 -4
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +7 -7
- package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +4 -4
- package/src/ConsoleShared/src/components/markdown-extensions/code-extension.tsx +1 -3
- package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +5 -5
- package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +8 -8
- package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +5 -5
- package/src/ConsoleShared/src/components/markdown-extensions/utils.ts +1 -3
- package/src/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.tsx +7 -6
- package/src/ConsoleShared/src/components/popper/Portal.tsx +6 -4
- package/src/ConsoleShared/src/components/popper/SimplePopper.tsx +7 -5
- package/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx +2 -2
- package/src/ConsoleShared/src/components/spotlight/Spotlight.tsx +2 -2
- package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +3 -3
- package/src/ConsoleShared/src/components/spotlight/spotlight.scss +4 -4
- package/src/ConsoleShared/src/components/status/GenericStatus.tsx +1 -0
- package/src/ConsoleShared/src/components/status/PopoverStatus.tsx +20 -23
- package/src/ConsoleShared/src/components/status/Status.tsx +2 -2
- package/src/ConsoleShared/src/components/status/icons.tsx +17 -55
- package/src/ConsoleShared/src/components/status/statuses.tsx +1 -17
- package/src/ConsoleShared/src/components/status/types.ts +3 -2
- package/src/ConsoleShared/src/components/utils/FallbackImg.tsx +2 -2
- package/src/ConsoleShared/src/hooks/useResizeObserver.ts +5 -6
- package/src/ConsoleShared/src/utils/useCombineRefs.ts +2 -3
- package/src/HelpTopicDrawer.tsx +6 -14
- package/src/HelpTopicPanelContent.tsx +57 -49
- package/src/QuickStartCatalogPage.tsx +19 -14
- package/src/QuickStartCloseModal.tsx +2 -2
- package/src/QuickStartController.tsx +3 -5
- package/src/QuickStartDrawer.scss +1 -1
- package/src/QuickStartDrawer.tsx +2 -2
- package/src/QuickStartMarkdownView.tsx +4 -4
- package/src/QuickStartPanelContent.scss +8 -8
- package/src/QuickStartPanelContent.tsx +8 -9
- package/src/catalog/Catalog/QuickStartCatalogHeader.tsx +2 -2
- package/src/catalog/Catalog/QuickStartCatalogSection.tsx +2 -2
- package/src/catalog/Catalog/QuickStartCatalogToolbar.tsx +2 -2
- package/src/catalog/QuickStartCatalog.scss +1 -1
- package/src/catalog/QuickStartCatalog.tsx +2 -2
- package/src/catalog/QuickStartTile.tsx +20 -15
- package/src/catalog/QuickStartTileDescription.scss +4 -4
- package/src/catalog/QuickStartTileDescription.tsx +2 -2
- package/src/catalog/QuickStartTileFooter.tsx +2 -2
- package/src/catalog/QuickStartTileFooterExternal.tsx +2 -2
- package/src/catalog/QuickStartTileHeader.scss +5 -5
- package/src/catalog/QuickStartTileHeader.tsx +2 -2
- package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +9 -9
- package/src/catalog/Toolbar/QuickStartCatalogFilter.tsx +1 -3
- package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +49 -30
- package/src/controller/QuickStartConclusion.tsx +3 -3
- package/src/controller/QuickStartContent.scss +2 -2
- package/src/controller/QuickStartContent.tsx +2 -2
- package/src/controller/QuickStartFooter.scss +3 -3
- package/src/controller/QuickStartFooter.tsx +6 -10
- package/src/controller/QuickStartIntroduction.scss +7 -7
- package/src/controller/QuickStartIntroduction.tsx +5 -7
- package/src/controller/QuickStartTaskHeader.scss +15 -15
- package/src/controller/QuickStartTaskHeader.tsx +14 -12
- package/src/controller/QuickStartTaskHeaderList.scss +1 -1
- package/src/controller/QuickStartTaskHeaderList.tsx +3 -5
- package/src/controller/QuickStartTaskReview.scss +7 -7
- package/src/controller/QuickStartTaskReview.tsx +2 -2
- package/src/controller/QuickStartTasks.scss +13 -13
- package/src/controller/QuickStartTasks.tsx +2 -2
- package/src/controller/__tests__/QuickStartTaskHeader.spec.tsx +4 -17
- package/src/styles/_base.scss +5 -5
- package/src/styles/_dark-custom-override.scss +28 -28
- package/src/styles/legacy-bootstrap/_variables.scss +7 -7
- package/src/styles/patternfly-global.scss +6 -6
- package/src/styles/patternfly-nested.scss +1 -1
- package/src/utils/PluralResolver.ts +29 -23
- package/src/utils/asciidoc-procedure-parser.ts +2 -4
- package/src/utils/help-topic-context.tsx +3 -5
- package/src/utils/help-topic-types.ts +4 -4
- package/src/utils/quick-start-context.tsx +8 -12
- package/src/utils/quick-start-types.ts +15 -14
- package/src/utils/quick-start-utils.ts +2 -6
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
&__count {
|
|
8
|
-
font-weight: var(--pf-global--FontWeight--bold);
|
|
8
|
+
font-weight: var(--pf-v5-global--FontWeight--bold);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.pf-c-toolbar.pf-m-page-insets.pfext-quick-start-catalog-filter__flex {
|
|
13
|
-
--pf-c-toolbar--PaddingBottom: var(--pf-global--spacer--sm);
|
|
14
|
-
--pf-c-toolbar--PaddingTop: var(--pf-global--spacer--sm);
|
|
15
|
-
--pf-c-toolbar--RowGap: 0;
|
|
12
|
+
.pf-v5-c-toolbar.pf-m-page-insets.pfext-quick-start-catalog-filter__flex {
|
|
13
|
+
--pf-v5-c-toolbar--PaddingBottom: var(--pf-v5-global--spacer--sm);
|
|
14
|
+
--pf-v5-c-toolbar--PaddingTop: var(--pf-v5-global--spacer--sm);
|
|
15
|
+
--pf-v5-c-toolbar--RowGap: 0;
|
|
16
16
|
font-size: 14px;
|
|
17
17
|
|
|
18
|
-
.pf-c-select {
|
|
19
|
-
--pf-c-select__toggle--FontSize: 14px;
|
|
18
|
+
.pf-v5-c-select {
|
|
19
|
+
--pf-v5-c-select__toggle--FontSize: 14px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.pf-c-check {
|
|
23
|
-
--pf-c-check__label--FontSize: 14px;
|
|
22
|
+
.pf-v5-c-check {
|
|
23
|
+
--pf-v5-c-check__label--FontSize: 14px;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -19,8 +19,7 @@ const QuickStartCatalogFilter: React.FC<QuickStartCatalogFilterProps> = ({
|
|
|
19
19
|
onSearchInputChange = () => {},
|
|
20
20
|
onStatusChange = () => {},
|
|
21
21
|
...props
|
|
22
|
-
}) =>
|
|
23
|
-
return (
|
|
22
|
+
}) => (
|
|
24
23
|
<Toolbar usePageInsets className="pfext-quick-start-catalog-filter__flex" {...props}>
|
|
25
24
|
<ToolbarContent>
|
|
26
25
|
<QuickStartCatalogFilterSearchWrapper onSearchInputChange={onSearchInputChange} />
|
|
@@ -29,6 +28,5 @@ const QuickStartCatalogFilter: React.FC<QuickStartCatalogFilterProps> = ({
|
|
|
29
28
|
</ToolbarContent>
|
|
30
29
|
</Toolbar>
|
|
31
30
|
);
|
|
32
|
-
};
|
|
33
31
|
|
|
34
32
|
export default QuickStartCatalogFilter;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
|
+
Badge,
|
|
4
|
+
MenuToggle,
|
|
5
|
+
MenuToggleElement,
|
|
3
6
|
SearchInput,
|
|
4
7
|
Select,
|
|
8
|
+
SelectList,
|
|
5
9
|
SelectOption,
|
|
6
|
-
SelectVariant,
|
|
7
10
|
ToolbarItem,
|
|
8
11
|
} from '@patternfly/react-core';
|
|
9
12
|
import { removeQueryArgument, setQueryArgument } from '@console/internal/components/utils';
|
|
@@ -18,7 +21,7 @@ export const QuickStartCatalogFilterSearch = ({ searchInputText, handleTextChang
|
|
|
18
21
|
<SearchInput
|
|
19
22
|
placeholder={getResource('Filter by keyword...')}
|
|
20
23
|
value={searchInputText}
|
|
21
|
-
onChange={handleTextChange}
|
|
24
|
+
onChange={(_ev, value) => handleTextChange(value)}
|
|
22
25
|
onClear={() => handleTextChange('')}
|
|
23
26
|
{...props}
|
|
24
27
|
/>
|
|
@@ -35,19 +38,31 @@ export const QuickStartCatalogFilterSelect = ({
|
|
|
35
38
|
...props
|
|
36
39
|
}) => {
|
|
37
40
|
const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
41
|
+
|
|
42
|
+
const toggle = (toggleRef: React.Ref<MenuToggleElement>) => (
|
|
43
|
+
<MenuToggle
|
|
44
|
+
isFullWidth
|
|
45
|
+
ref={toggleRef}
|
|
46
|
+
onClick={() => setIsDropdownOpen(!isDropdownOpen)}
|
|
47
|
+
isExpanded={isDropdownOpen}
|
|
48
|
+
>
|
|
49
|
+
{getResource('Status')}
|
|
50
|
+
{selectedFilters.length > 0 && <Badge isRead>{selectedFilters.length}</Badge>}
|
|
51
|
+
</MenuToggle>
|
|
52
|
+
);
|
|
53
|
+
|
|
38
54
|
return (
|
|
39
55
|
<ToolbarItem>
|
|
40
56
|
<Select
|
|
41
|
-
variant={SelectVariant.checkbox}
|
|
42
57
|
aria-label={getResource('Select filter')}
|
|
43
58
|
isOpen={isDropdownOpen}
|
|
44
|
-
|
|
45
|
-
placeholderText={getResource('Status')}
|
|
59
|
+
selected={selectedFilters}
|
|
46
60
|
onSelect={onRowfilterSelect}
|
|
47
|
-
|
|
61
|
+
onOpenChange={(isOpen) => setIsDropdownOpen(isOpen)}
|
|
62
|
+
toggle={toggle}
|
|
48
63
|
{...props}
|
|
49
64
|
>
|
|
50
|
-
{dropdownItems}
|
|
65
|
+
<SelectList>{dropdownItems}</SelectList>
|
|
51
66
|
</Select>
|
|
52
67
|
</ToolbarItem>
|
|
53
68
|
);
|
|
@@ -58,7 +73,7 @@ export const QuickStartCatalogFilterCount = ({ quickStartsCount }) => {
|
|
|
58
73
|
return (
|
|
59
74
|
<ToolbarItem
|
|
60
75
|
className="pfext-quick-start-catalog-filter__count"
|
|
61
|
-
|
|
76
|
+
align={{ default: 'alignRight' }}
|
|
62
77
|
>
|
|
63
78
|
{getResource('{{count, number}} item', quickStartsCount).replace(
|
|
64
79
|
'{{count, number}}',
|
|
@@ -71,12 +86,11 @@ export const QuickStartCatalogFilterCount = ({ quickStartsCount }) => {
|
|
|
71
86
|
interface QuickStartCatalogFilterSearchWrapperProps {
|
|
72
87
|
onSearchInputChange: any;
|
|
73
88
|
}
|
|
74
|
-
export const QuickStartCatalogFilterSearchWrapper: React.FC<
|
|
75
|
-
|
|
76
|
-
}) => {
|
|
77
|
-
const { useQueryParams, filter, setFilter } =
|
|
78
|
-
QuickStartContext
|
|
79
|
-
);
|
|
89
|
+
export const QuickStartCatalogFilterSearchWrapper: React.FC<
|
|
90
|
+
QuickStartCatalogFilterSearchWrapperProps
|
|
91
|
+
> = ({ onSearchInputChange = () => {} }) => {
|
|
92
|
+
const { useQueryParams, filter, setFilter } =
|
|
93
|
+
React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
80
94
|
React.useEffect(() => {
|
|
81
95
|
// use this effect to clear the search when a `clear all` action is performed higher up
|
|
82
96
|
const unlisten = history.listen(({ location }) => {
|
|
@@ -130,12 +144,11 @@ export const equalsIgnoreOrder = (a: any[], b: any[]) => {
|
|
|
130
144
|
interface QuickStartCatalogFilterStatusWrapperProps {
|
|
131
145
|
onStatusChange: any;
|
|
132
146
|
}
|
|
133
|
-
export const QuickStartCatalogFilterStatusWrapper: React.FC<
|
|
134
|
-
|
|
135
|
-
}) => {
|
|
136
|
-
const { useQueryParams, filter, setFilter } =
|
|
137
|
-
QuickStartContext
|
|
138
|
-
);
|
|
147
|
+
export const QuickStartCatalogFilterStatusWrapper: React.FC<
|
|
148
|
+
QuickStartCatalogFilterStatusWrapperProps
|
|
149
|
+
> = ({ onStatusChange = () => {} }) => {
|
|
150
|
+
const { useQueryParams, filter, setFilter } =
|
|
151
|
+
React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
139
152
|
React.useEffect(() => {
|
|
140
153
|
// use this effect to clear the status when a `clear all` action is performed higher up
|
|
141
154
|
const unlisten = history.listen(({ location }) => {
|
|
@@ -153,9 +166,11 @@ export const QuickStartCatalogFilterStatusWrapper: React.FC<QuickStartCatalogFil
|
|
|
153
166
|
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
|
|
154
167
|
|
|
155
168
|
const onRowfilterSelect = React.useCallback(
|
|
156
|
-
(
|
|
169
|
+
(_e, selectedValue) => {
|
|
157
170
|
setIsDropdownOpen(false);
|
|
158
|
-
const selection =
|
|
171
|
+
const selection = Object.entries(filter.status.statusTypes).find(
|
|
172
|
+
([_key, value]) => value === selectedValue,
|
|
173
|
+
)[0];
|
|
159
174
|
const selectedFiltersList = filter.status.statusFilters.includes(selection)
|
|
160
175
|
? filter.status.statusFilters.filter((status) => status !== selection)
|
|
161
176
|
: [...filter.status.statusFilters, selection];
|
|
@@ -172,9 +187,15 @@ export const QuickStartCatalogFilterStatusWrapper: React.FC<QuickStartCatalogFil
|
|
|
172
187
|
[filter.status.statusFilters, onStatusChange, setFilter, useQueryParams],
|
|
173
188
|
);
|
|
174
189
|
|
|
175
|
-
const dropdownItems = Object.entries(filter.status.statusTypes).map(([key,
|
|
176
|
-
<SelectOption
|
|
177
|
-
{
|
|
190
|
+
const dropdownItems = Object.entries(filter.status.statusTypes).map(([key, value]) => (
|
|
191
|
+
<SelectOption
|
|
192
|
+
key={key}
|
|
193
|
+
data-key={key}
|
|
194
|
+
value={value}
|
|
195
|
+
hasCheckbox
|
|
196
|
+
isSelected={filter.status.statusFilters.includes(key)}
|
|
197
|
+
>
|
|
198
|
+
<>{value}</>
|
|
178
199
|
</SelectOption>
|
|
179
200
|
));
|
|
180
201
|
|
|
@@ -192,8 +213,6 @@ export const QuickStartCatalogFilterStatusWrapper: React.FC<QuickStartCatalogFil
|
|
|
192
213
|
interface QuickStartCatalogFilterCountWrapperProps {
|
|
193
214
|
quickStartsCount: number;
|
|
194
215
|
}
|
|
195
|
-
export const QuickStartCatalogFilterCountWrapper: React.FC<
|
|
196
|
-
|
|
197
|
-
}) => {
|
|
198
|
-
return <QuickStartCatalogFilterCount quickStartsCount={quickStartsCount} />;
|
|
199
|
-
};
|
|
216
|
+
export const QuickStartCatalogFilterCountWrapper: React.FC<
|
|
217
|
+
QuickStartCatalogFilterCountWrapperProps
|
|
218
|
+
> = ({ quickStartsCount }) => <QuickStartCatalogFilterCount quickStartsCount={quickStartsCount} />;
|
|
@@ -6,14 +6,14 @@ import { QuickStartContext, QuickStartContextValues } from '../utils/quick-start
|
|
|
6
6
|
import { QuickStart, QuickStartTask, QuickStartTaskStatus } from '../utils/quick-start-types';
|
|
7
7
|
import TaskHeaderList from './QuickStartTaskHeaderList';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
interface QuickStartConclusionProps {
|
|
10
10
|
tasks: QuickStartTask[];
|
|
11
11
|
conclusion: string;
|
|
12
12
|
allTaskStatuses: QuickStartTaskStatus[];
|
|
13
13
|
nextQuickStarts?: QuickStart[];
|
|
14
14
|
onQuickStartChange: (quickStartid: string) => void;
|
|
15
15
|
onTaskSelect: (selectedTaskNumber: number) => void;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
18
|
const QuickStartConclusion: React.FC<QuickStartConclusionProps> = ({
|
|
19
19
|
tasks,
|
|
@@ -53,7 +53,7 @@ const QuickStartConclusion: React.FC<QuickStartConclusionProps> = ({
|
|
|
53
53
|
nextQuickStart?.spec?.displayName,
|
|
54
54
|
)}{' '}
|
|
55
55
|
<ArrowRightIcon
|
|
56
|
-
style={{ marginLeft: 'var(--pf-global--spacer--xs)', verticalAlign: 'middle' }}
|
|
56
|
+
style={{ marginLeft: 'var(--pf-v5-global--spacer--xs)', verticalAlign: 'middle' }}
|
|
57
57
|
/>
|
|
58
58
|
</Button>
|
|
59
59
|
))}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.pfext-quick-start-content {
|
|
2
2
|
flex: 1 1 0;
|
|
3
3
|
overflow: auto;
|
|
4
|
-
padding: var(--pf-global--spacer--lg);
|
|
4
|
+
padding: var(--pf-v5-global--spacer--lg);
|
|
5
5
|
font-size: 16px;
|
|
6
6
|
|
|
7
|
-
.pf-c-alert__description {
|
|
7
|
+
.pf-v5-c-alert__description {
|
|
8
8
|
p {
|
|
9
9
|
font-size: 13px;
|
|
10
10
|
}
|
|
@@ -6,7 +6,7 @@ import QuickStartTasks from './QuickStartTasks';
|
|
|
6
6
|
|
|
7
7
|
import './QuickStartContent.scss';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
interface QuickStartContentProps {
|
|
10
10
|
quickStart: QuickStart;
|
|
11
11
|
nextQuickStarts?: QuickStart[];
|
|
12
12
|
taskNumber: number;
|
|
@@ -14,7 +14,7 @@ type QuickStartContentProps = {
|
|
|
14
14
|
onTaskSelect: (selectedTaskNumber: number) => void;
|
|
15
15
|
onTaskReview: (taskStatus: QuickStartTaskStatus) => void;
|
|
16
16
|
onQuickStartChange?: (quickStartId: string) => void;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
|
|
19
19
|
const QuickStartContent = React.forwardRef<HTMLDivElement, QuickStartContentProps>(
|
|
20
20
|
(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.pfext-quick-start-footer {
|
|
2
|
-
background-color: var(--pf-global--BackgroundColor--100); // this is an example about how we should use PF variables
|
|
2
|
+
background-color: var(--pf-v5-global--BackgroundColor--100); // this is an example about how we should use PF variables
|
|
3
3
|
flex: 0 0 auto;
|
|
4
|
-
padding: var(--pf-global--spacer--md) var(--pf-global--spacer--lg);
|
|
4
|
+
padding: var(--pf-v5-global--spacer--md) var(--pf-v5-global--spacer--lg);
|
|
5
5
|
|
|
6
6
|
&__actionbtn {
|
|
7
|
-
margin-right: var(--pf-global--spacer--md);
|
|
7
|
+
margin-right: var(--pf-v5-global--spacer--md);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__restartbtn {
|
|
@@ -6,7 +6,7 @@ import { camelize } from '../utils/quick-start-utils';
|
|
|
6
6
|
|
|
7
7
|
import './QuickStartFooter.scss';
|
|
8
8
|
|
|
9
|
-
export
|
|
9
|
+
export interface QuickStartFooterProps {
|
|
10
10
|
status: QuickStartStatus;
|
|
11
11
|
footerClass: string;
|
|
12
12
|
taskNumber: number;
|
|
@@ -14,7 +14,7 @@ export type QuickStartFooterProps = {
|
|
|
14
14
|
onNext: () => void;
|
|
15
15
|
onBack: () => void;
|
|
16
16
|
quickStartId: string;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
|
|
19
19
|
const QuickStartFooter: React.FC<QuickStartFooterProps> = ({
|
|
20
20
|
status,
|
|
@@ -29,21 +29,17 @@ const QuickStartFooter: React.FC<QuickStartFooterProps> = ({
|
|
|
29
29
|
QuickStartContext,
|
|
30
30
|
);
|
|
31
31
|
|
|
32
|
-
const PrimaryButtonText = React.useMemo(() => {
|
|
33
|
-
return {
|
|
32
|
+
const PrimaryButtonText = React.useMemo(() => ({
|
|
34
33
|
START: getResource('Start'),
|
|
35
34
|
CONTINUE: getResource('Continue'),
|
|
36
35
|
NEXT: getResource('Next'),
|
|
37
36
|
CLOSE: getResource('Close'),
|
|
38
|
-
};
|
|
39
|
-
}, [getResource]);
|
|
37
|
+
}), [getResource]);
|
|
40
38
|
|
|
41
|
-
const SecondaryButtonText = React.useMemo(() => {
|
|
42
|
-
return {
|
|
39
|
+
const SecondaryButtonText = React.useMemo(() => ({
|
|
43
40
|
BACK: getResource('Back'),
|
|
44
41
|
RESTART: getResource('Restart'),
|
|
45
|
-
};
|
|
46
|
-
}, [getResource]);
|
|
42
|
+
}), [getResource]);
|
|
47
43
|
|
|
48
44
|
const onRestart = React.useCallback(
|
|
49
45
|
(e: React.SyntheticEvent) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.pfext-quick-start-intro {
|
|
2
2
|
&__prereq {
|
|
3
|
-
margin-bottom: var(--pf-global--spacer--md);
|
|
4
|
-
.pf-c-expandable-section__content {
|
|
5
|
-
margin-top: var(--pf-global--spacer--sm);
|
|
3
|
+
margin-bottom: var(--pf-v5-global--spacer--md);
|
|
4
|
+
.pf-v5-c-expandable-section__content {
|
|
5
|
+
margin-top: var(--pf-v5-global--spacer--sm);
|
|
6
6
|
}
|
|
7
|
-
.pf-c-expandable-section__toggle {
|
|
7
|
+
.pf-v5-c-expandable-section__toggle {
|
|
8
8
|
padding-top: 0;
|
|
9
9
|
padding-bottom: 0;
|
|
10
10
|
&-text {
|
|
11
|
-
margin-left: var(--pf-global--spacer--sm);
|
|
11
|
+
margin-left: var(--pf-v5-global--spacer--sm);
|
|
12
12
|
}
|
|
13
13
|
&-icon {
|
|
14
|
-
color: var(--pf-c-expandable-section__toggle--Color);
|
|
14
|
+
color: var(--pf-v5-c-expandable-section__toggle--Color);
|
|
15
15
|
&:focus, &:hover {
|
|
16
|
-
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--focus--Color);
|
|
16
|
+
--pf-v5-c-expandable-section__toggle--Color: var(--pf-v5-c-expandable-section__toggle--focus--Color);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -7,13 +7,13 @@ import TaskHeaderList from './QuickStartTaskHeaderList';
|
|
|
7
7
|
|
|
8
8
|
import './QuickStartIntroduction.scss';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
interface QuickStartIntroductionProps {
|
|
11
11
|
introduction: string;
|
|
12
12
|
tasks: QuickStartTask[];
|
|
13
13
|
allTaskStatuses: QuickStartTaskStatus[];
|
|
14
14
|
prerequisites?: string[];
|
|
15
15
|
onTaskSelect: (selectedTaskNumber: number) => void;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
18
|
const QuickStartIntroduction: React.FC<QuickStartIntroductionProps> = ({
|
|
19
19
|
tasks,
|
|
@@ -35,15 +35,13 @@ const QuickStartIntroduction: React.FC<QuickStartIntroductionProps> = ({
|
|
|
35
35
|
className="pfext-quick-start-intro__prereq"
|
|
36
36
|
>
|
|
37
37
|
<List className="pfext-quick-start-intro__prereq-list">
|
|
38
|
-
{prereqs.map((pr) =>
|
|
39
|
-
return (
|
|
38
|
+
{prereqs.map((pr) => (
|
|
40
39
|
<ListItem key={pr} className="pfext-quick-start-intro__prereq-list__item">
|
|
41
40
|
<span className="pfext-quick-start-intro__prereq-list__item-content">
|
|
42
41
|
<QuickStartMarkdownView content={pr} />
|
|
43
42
|
</span>
|
|
44
43
|
</ListItem>
|
|
45
|
-
)
|
|
46
|
-
})}
|
|
44
|
+
))}
|
|
47
45
|
</List>
|
|
48
46
|
</ExpandableSection>
|
|
49
47
|
);
|
|
@@ -51,7 +49,7 @@ const QuickStartIntroduction: React.FC<QuickStartIntroductionProps> = ({
|
|
|
51
49
|
<>
|
|
52
50
|
<QuickStartMarkdownView content={introduction} />
|
|
53
51
|
{prereqList}
|
|
54
|
-
<p style={{ marginBottom: 'var(--pf-global--spacer--md)' }}>
|
|
52
|
+
<p style={{ marginBottom: 'var(--pf-v5-global--spacer--md)' }}>
|
|
55
53
|
{getResource(
|
|
56
54
|
'In this quick start, you will complete {{count, number}} task',
|
|
57
55
|
tasks.length,
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
.pfext-quick-start-task-header {
|
|
2
|
-
margin-bottom: var(--pf-global--spacer--sm);
|
|
2
|
+
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-columns: min-content auto;
|
|
5
|
-
font-size: var(--pf-global--FontSize--md);
|
|
5
|
+
font-size: var(--pf-v5-global--FontSize--md);
|
|
6
6
|
button::before {
|
|
7
7
|
content: none;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__title {
|
|
11
|
-
color: var(--pf-global--primary-color--100) !important;
|
|
12
|
-
margin-right: var(--pf-global--spacer--md) !important;
|
|
11
|
+
color: var(--pf-v5-global--primary-color--100) !important;
|
|
12
|
+
margin-right: var(--pf-v5-global--spacer--md) !important;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&__subtitle {
|
|
16
|
-
font-size: var(--pf-global--FontSize--sm);
|
|
17
|
-
color: var(--pf-global--Color--dark-200) !important;
|
|
16
|
+
font-size: var(--pf-v5-global--FontSize--sm);
|
|
17
|
+
color: var(--pf-v5-global--Color--dark-200) !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__tryagain {
|
|
21
21
|
display: block;
|
|
22
|
-
font-size: var(--pf-global--FontSize--md);
|
|
23
|
-
color: var(--pf-global--Color--300) !important;
|
|
22
|
+
font-size: var(--pf-v5-global--FontSize--md);
|
|
23
|
+
color: var(--pf-v5-global--Color--300) !important;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&__title-success {
|
|
27
|
-
color: var(--pf-global--success-color--100) !important;
|
|
27
|
+
color: var(--pf-v5-global--success-color--100) !important;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__title-failed {
|
|
31
|
-
color: var(--pf-global--danger-color--100) !important;
|
|
31
|
+
color: var(--pf-v5-global--danger-color--100) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&__task-icon {
|
|
35
35
|
&-init {
|
|
36
|
-
background-color: var(--pf-global--primary-color--100);
|
|
37
|
-
border-radius: var(--pf-global--BorderRadius--lg);
|
|
38
|
-
color: var(--pf-global--Color--light-100);
|
|
36
|
+
background-color: var(--pf-v5-global--primary-color--100);
|
|
37
|
+
border-radius: var(--pf-v5-global--BorderRadius--lg);
|
|
38
|
+
color: var(--pf-v5-global--Color--light-100);
|
|
39
39
|
display: inline-flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
height: 1.5em;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&-success {
|
|
51
|
-
color: var(--pf-global--success-color--100) !important;
|
|
51
|
+
color: var(--pf-v5-global--success-color--100) !important;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&-failed {
|
|
55
|
-
color: var(--pf-global--danger-color--100) !important;
|
|
55
|
+
color: var(--pf-v5-global--danger-color--100) !important;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Title, WizardNavItem } from '@patternfly/react-core';
|
|
2
|
+
import { Icon, Title, WizardNavItem } from '@patternfly/react-core';
|
|
3
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
4
4
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
5
5
|
import { css } from '@patternfly/react-styles';
|
|
@@ -10,7 +10,7 @@ import { QuickStartTaskStatus } from '../utils/quick-start-types';
|
|
|
10
10
|
|
|
11
11
|
import './QuickStartTaskHeader.scss';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
interface QuickStartTaskHeaderProps {
|
|
14
14
|
title: string;
|
|
15
15
|
taskIndex: number;
|
|
16
16
|
subtitle?: string;
|
|
@@ -19,7 +19,7 @@ type QuickStartTaskHeaderProps = {
|
|
|
19
19
|
isActiveTask?: boolean;
|
|
20
20
|
onTaskSelect: (index: number) => void;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
|
|
24
24
|
const TaskIcon: React.FC<{
|
|
25
25
|
taskIndex: number;
|
|
@@ -32,17 +32,19 @@ const TaskIcon: React.FC<{
|
|
|
32
32
|
const classNames = css('pfext-icon-and-text__icon', {
|
|
33
33
|
'pfext-quick-start-task-header__task-icon-init': !failed && !success,
|
|
34
34
|
});
|
|
35
|
-
let content:
|
|
35
|
+
let content: React.ReactNode;
|
|
36
|
+
|
|
36
37
|
if (success) {
|
|
37
38
|
content = (
|
|
38
|
-
<
|
|
39
|
+
<Icon size="md">
|
|
40
|
+
<CheckCircleIcon className="pfext-quick-start-task-header__task-icon-success" />{' '}
|
|
41
|
+
</Icon>
|
|
39
42
|
);
|
|
40
43
|
} else if (failed) {
|
|
41
44
|
content = (
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/>
|
|
45
|
+
<Icon size="md">
|
|
46
|
+
<ExclamationCircleIcon className="pfext-quick-start-task-header__task-icon-failed" />
|
|
47
|
+
</Icon>
|
|
46
48
|
);
|
|
47
49
|
} else {
|
|
48
50
|
content = getResource('{{taskIndex, number}}', taskIndex).replace(
|
|
@@ -110,9 +112,9 @@ const QuickStartTaskHeader: React.FC<QuickStartTaskHeaderProps> = ({
|
|
|
110
112
|
return (
|
|
111
113
|
<WizardNavItem
|
|
112
114
|
content={content}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
stepIndex={taskIndex}
|
|
116
|
+
onClick={() => onTaskSelect(taskIndex - 1)}
|
|
117
|
+
component="button"
|
|
116
118
|
isCurrent={isActiveTask}
|
|
117
119
|
>
|
|
118
120
|
{children}
|
|
@@ -5,18 +5,17 @@ import TaskHeader from './QuickStartTaskHeader';
|
|
|
5
5
|
|
|
6
6
|
import './QuickStartTaskHeaderList.scss';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
interface QuickStartTaskHeaderListProps {
|
|
9
9
|
tasks: QuickStartTask[];
|
|
10
10
|
allTaskStatuses: QuickStartTaskStatus[];
|
|
11
11
|
onTaskSelect: (selectedTaskNumber: number) => void;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
|
|
14
14
|
const QuickStartTaskHeaderList: React.FC<QuickStartTaskHeaderListProps> = ({
|
|
15
15
|
tasks,
|
|
16
16
|
allTaskStatuses,
|
|
17
17
|
onTaskSelect,
|
|
18
|
-
}) =>
|
|
19
|
-
return tasks.length > 0 ? (
|
|
18
|
+
}) => tasks.length > 0 ? (
|
|
20
19
|
<List className="pfext-quick-start-task-header__list">
|
|
21
20
|
{tasks.map((task, index) => (
|
|
22
21
|
<TaskHeader
|
|
@@ -30,6 +29,5 @@ const QuickStartTaskHeaderList: React.FC<QuickStartTaskHeaderListProps> = ({
|
|
|
30
29
|
))}
|
|
31
30
|
</List>
|
|
32
31
|
) : null;
|
|
33
|
-
};
|
|
34
32
|
|
|
35
33
|
export default QuickStartTaskHeaderList;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.pfext-quick-start-task-review-alert {
|
|
2
|
-
margin: var(--pf-global--spacer--lg) 0;
|
|
2
|
+
margin: var(--pf-v5-global--spacer--lg) 0;
|
|
3
3
|
}
|
|
4
4
|
.pfext-quick-start-task-review {
|
|
5
|
-
font-size: var(--pf-global--FontSize--md);
|
|
6
|
-
line-height: var(--pf-global--FontSize--xl);
|
|
7
|
-
font-family: var(--pf-global--FontFamily--heading--sans-serif);
|
|
5
|
+
font-size: var(--pf-v5-global--FontSize--md);
|
|
6
|
+
line-height: var(--pf-v5-global--FontSize--xl);
|
|
7
|
+
font-family: var(--pf-v5-global--FontFamily--heading--sans-serif);
|
|
8
8
|
|
|
9
9
|
&__actions {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-start;
|
|
12
|
-
margin-bottom: var(--pf-global--spacer--sm);
|
|
12
|
+
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
13
13
|
input[type='radio'] {
|
|
14
14
|
margin-top: 0;
|
|
15
15
|
margin-right: 0;
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&__radio {
|
|
20
|
-
margin-right: var(--pf-global--spacer--xl) !important;
|
|
20
|
+
margin-right: var(--pf-v5-global--spacer--xl) !important;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&--success {
|
|
24
|
-
color: var(--pf-global--success-color--100) !important;
|
|
24
|
+
color: var(--pf-v5-global--success-color--100) !important;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&--failed {
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import './QuickStartTaskReview.scss';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
interface QuickStartTaskReviewProps {
|
|
14
14
|
review: QuickStartTaskReviewType;
|
|
15
15
|
taskStatus: QuickStartTaskStatus;
|
|
16
16
|
onTaskReview: (status: QuickStartTaskStatus) => void;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
|
|
19
19
|
const getAlertVariant = (status) => {
|
|
20
20
|
switch (status) {
|