@orchestrator-ui/orchestrator-ui-components 8.4.3 → 8.4.4
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/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoStartButton/WfoStartButtonComboBox.tsx +7 -3
- package/src/configuration/version.ts +1 -1
- package/src/types/types.ts +3 -3
package/package.json
CHANGED
|
@@ -20,6 +20,10 @@ export type WfoStartButtonComboBoxProps = {
|
|
|
20
20
|
setSelectedProductStatus?: (status: ProductLifecycleStatus | string) => void;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
const formatProductStatusLabel = (productStatus: string) => {
|
|
24
|
+
return capitalize(productStatus.replace(/_/g, ' '));
|
|
25
|
+
};
|
|
26
|
+
|
|
23
27
|
export const WfoStartButtonComboBox = ({
|
|
24
28
|
buttonText,
|
|
25
29
|
options,
|
|
@@ -63,7 +67,7 @@ export const WfoStartButtonComboBox = ({
|
|
|
63
67
|
iconType={() => <WfoChevronDown height={18} width={18} color="currentColor" />}
|
|
64
68
|
onClick={() => setFilterPopoverOpen((v) => !v)}
|
|
65
69
|
>
|
|
66
|
-
<b>{
|
|
70
|
+
<b>{formatProductStatusLabel(selectedProductStatus ?? ProductLifecycleStatus.ACTIVE)}</b>
|
|
67
71
|
</EuiButtonEmpty>
|
|
68
72
|
}
|
|
69
73
|
isOpen={isFilterPopoverOpen}
|
|
@@ -76,11 +80,11 @@ export const WfoStartButtonComboBox = ({
|
|
|
76
80
|
key={productStatus}
|
|
77
81
|
size="xs"
|
|
78
82
|
onClick={() => {
|
|
79
|
-
setSelectedProductStatus(productStatus);
|
|
83
|
+
setSelectedProductStatus(productStatus.toUpperCase());
|
|
80
84
|
setFilterPopoverOpen(false);
|
|
81
85
|
}}
|
|
82
86
|
>
|
|
83
|
-
{
|
|
87
|
+
{formatProductStatusLabel(productStatus ?? ProductLifecycleStatus.ACTIVE)}
|
|
84
88
|
</EuiButtonEmpty>
|
|
85
89
|
</div>
|
|
86
90
|
))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '8.4.
|
|
1
|
+
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '8.4.4';
|
package/src/types/types.ts
CHANGED
|
@@ -83,9 +83,9 @@ export interface ProductBlockDefinition {
|
|
|
83
83
|
|
|
84
84
|
export enum ProductLifecycleStatus {
|
|
85
85
|
ACTIVE = 'active',
|
|
86
|
-
PRE_PRODUCTION = '
|
|
87
|
-
PHASE_OUT = '
|
|
88
|
-
END_OF_LIFE = '
|
|
86
|
+
PRE_PRODUCTION = 'pre_production',
|
|
87
|
+
PHASE_OUT = 'phase_out',
|
|
88
|
+
END_OF_LIFE = 'end_of_life',
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export enum BadgeType {
|