@orchestrator-ui/orchestrator-ui-components 8.9.2 → 9.0.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.
Files changed (63) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +262 -19
  4. package/CHANGELOG.md +28 -0
  5. package/dist/index.d.ts +2082 -2505
  6. package/dist/index.js +2045 -2190
  7. package/dist/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/components/WfoError/WfoError.tsx +2 -2
  10. package/src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx +4 -8
  11. package/src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx +6 -7
  12. package/src/components/WfoKeyValueTable/styles.ts +24 -0
  13. package/src/components/WfoPageTemplate/paths.ts +0 -1
  14. package/src/components/WfoPydanticForm/fields/WfoLabel.tsx +5 -1
  15. package/src/components/WfoPydanticForm/fields/styles.ts +12 -3
  16. package/src/components/WfoSettingsModal/WfoInformationModal.tsx +3 -2
  17. package/src/components/WfoSubscriptionsList/index.ts +1 -2
  18. package/src/components/WfoSubscriptionsList/subscriptionListItem.ts +14 -0
  19. package/src/components/WfoSubscriptionsList/subscriptionListTabs.ts +1 -20
  20. package/src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx +17 -13
  21. package/src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx +28 -15
  22. package/src/components/WfoTable/WfoAdvancedTable/WfoAdvancedTable.tsx +5 -1
  23. package/src/components/WfoTable/WfoStructuredSearchTable/WfoApplyFilterButton.tsx +37 -0
  24. package/src/components/WfoTable/WfoStructuredSearchTable/WfoDebounceCountdown.tsx +58 -0
  25. package/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.spec.tsx +180 -0
  26. package/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx +66 -51
  27. package/src/components/WfoTable/WfoStructuredSearchTable/WfoFilterBuilder.tsx +33 -98
  28. package/src/components/WfoTable/WfoStructuredSearchTable/WfoRangeEditor.tsx +0 -1
  29. package/src/components/WfoTable/WfoStructuredSearchTable/WfoRestoreLoop.spec.tsx +2 -2
  30. package/src/components/WfoTable/WfoStructuredSearchTable/WfoStructuredSearchTable.tsx +5 -7
  31. package/src/components/WfoTable/WfoStructuredSearchTable/WfoValueEditor.tsx +9 -13
  32. package/src/components/WfoTable/WfoStructuredSearchTable/styles.ts +7 -0
  33. package/src/components/WfoTable/WfoStructuredSearchTable/useSearchWithDebouncedCallback.spec.tsx +147 -0
  34. package/src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts +60 -1
  35. package/src/components/WfoTable/WfoStructuredSearchTable/utils.ts +133 -1
  36. package/src/configuration/version.ts +1 -1
  37. package/src/hooks/index.ts +1 -0
  38. package/src/hooks/useDebouncedCallback.ts +48 -0
  39. package/src/hooks/usePathAutoComplete.spec.tsx +94 -9
  40. package/src/hooks/usePathAutoComplete.ts +10 -15
  41. package/src/hooks/useSearchPagination.ts +1 -1
  42. package/src/messages/en-GB.json +4 -2
  43. package/src/messages/nl-NL.json +4 -2
  44. package/src/pages/index.ts +0 -1
  45. package/src/pages/startPage/index.ts +1 -0
  46. package/src/pages/startPage/mappers.ts +15 -8
  47. package/src/pages/startPage/queryVariables.ts +0 -29
  48. package/src/pages/startPage/searchPayloads.ts +22 -0
  49. package/src/pages/subscriptions/WfoSubscriptionsListPage.tsx +511 -39
  50. package/src/rtk/endpoints/index.ts +0 -1
  51. package/src/rtk/endpoints/search.ts +3 -0
  52. package/src/rtk/endpoints/subscriptionListMutation.spec.ts +80 -0
  53. package/src/rtk/endpoints/subscriptionListMutation.ts +71 -52
  54. package/src/rtk/utils.spec.ts +30 -1
  55. package/src/rtk/utils.ts +2 -1
  56. package/src/types/search.ts +1 -3
  57. package/src/types/types.ts +0 -2
  58. package/src/utils/getDefaultTableConfig.ts +1 -6
  59. package/src/utils/getQueryParams.ts +1 -0
  60. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +0 -243
  61. package/src/components/WfoSubscriptionsList/subscriptionResultMappers.ts +0 -49
  62. package/src/pages/WfoSearchPocPage.tsx +0 -575
  63. package/src/rtk/endpoints/subscriptionListSummary.ts +0 -66
@@ -1,8 +1,8 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.2 build
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@9.0.0 build
2
2
  npm notice run npm run generate-version && tsup src/index.ts
3
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.2 generate-version
3
+ npm notice run @orchestrator-ui/orchestrator-ui-components@9.0.0 generate-version
4
4
  npm notice run node -p "'export const ORCHESTRATOR_UI_LIBRARY_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/configuration/version.ts && prettier --write src/configuration/version.ts
5
- src/configuration/version.ts 38ms
5
+ src/configuration/version.ts 28ms
6
6
  CLI Building entry: src/index.ts
7
7
  CLI Using tsconfig: tsconfig.json
8
8
  CLI tsup v8.5.1
@@ -10,9 +10,9 @@ src/configuration/version.ts 38ms
10
10
  CLI Target: es2022
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
- ESM dist/index.js 899.38 KB
13
+ ESM dist/index.js 896.30 KB
14
14
  ESM dist/index.js.map 1.55 MB
15
- ESM ⚡️ Build success in 301ms
15
+ ESM ⚡️ Build success in 251ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 22069ms
18
- DTS dist/index.d.ts 1.56 MB
17
+ DTS ⚡️ Build success in 17196ms
18
+ DTS dist/index.d.ts 1.54 MB
@@ -1,2 +1,2 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.2 lint
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@9.0.0 lint
2
2
  npm notice run eslint
@@ -1,54 +1,297 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.2 test
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@9.0.0 test
2
2
  npm notice run jest
3
- PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
4
3
  PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
5
4
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
5
+ PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
6
6
  PASS Wfo-UI Tests src/utils/date.spec.ts
7
- PASS Wfo-UI Tests src/utils/string.spec.ts
8
7
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoOperatorSelector.spec.tsx
8
+ PASS Wfo-UI Tests src/utils/string.spec.ts
9
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.spec.tsx
10
+ ● Console
11
+
12
+ console.error
13
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
14
+
15
+ When testing, code that causes React state updates should be wrapped into act(...):
16
+
17
+ act(() => {
18
+ /* fire events that update state */
19
+ });
20
+ /* assert on the output */
21
+
22
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
23
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
24
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
25
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
26
+ at div
27
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
28
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
29
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
30
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
31
+
32
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
33
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
34
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
35
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
36
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
37
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
38
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
39
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
40
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
41
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
42
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
43
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
44
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
45
+
46
+ console.error
47
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
48
+
49
+ When testing, code that causes React state updates should be wrapped into act(...):
50
+
51
+ act(() => {
52
+ /* fire events that update state */
53
+ });
54
+ /* assert on the output */
55
+
56
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
57
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
58
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
59
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
60
+ at div
61
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
62
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
63
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
64
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
65
+
66
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
67
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
68
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
69
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
70
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
71
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
72
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
73
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
74
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
75
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
76
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
77
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
78
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
79
+
80
+ console.error
81
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
82
+
83
+ When testing, code that causes React state updates should be wrapped into act(...):
84
+
85
+ act(() => {
86
+ /* fire events that update state */
87
+ });
88
+ /* assert on the output */
89
+
90
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
91
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
92
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
93
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
94
+ at div
95
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
96
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
97
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
98
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
99
+
100
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
101
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
102
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
103
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
104
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
105
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
106
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
107
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
108
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
109
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
110
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
111
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
112
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
113
+
114
+ console.error
115
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
116
+
117
+ When testing, code that causes React state updates should be wrapped into act(...):
118
+
119
+ act(() => {
120
+ /* fire events that update state */
121
+ });
122
+ /* assert on the output */
123
+
124
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
125
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
126
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
127
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
128
+ at div
129
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
130
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
131
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
132
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
133
+
134
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
135
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
136
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
137
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
138
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
139
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
140
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
141
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
142
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
143
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
144
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
145
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
146
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
147
+
148
+ console.error
149
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
150
+
151
+ When testing, code that causes React state updates should be wrapped into act(...):
152
+
153
+ act(() => {
154
+ /* fire events that update state */
155
+ });
156
+ /* assert on the output */
157
+
158
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
159
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
160
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
161
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
162
+ at div
163
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
164
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
165
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
166
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
167
+
168
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
169
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
170
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
171
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
172
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
173
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
174
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
175
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
176
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
177
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
178
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
179
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
180
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
181
+
182
+ console.error
183
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
184
+
185
+ When testing, code that causes React state updates should be wrapped into act(...):
186
+
187
+ act(() => {
188
+ /* fire events that update state */
189
+ });
190
+ /* assert on the output */
191
+
192
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
193
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
194
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
195
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
196
+ at div
197
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
198
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
199
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
200
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
201
+
202
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
203
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
204
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
205
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
206
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
207
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
208
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
209
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
210
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
211
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
212
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
213
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
214
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
215
+
216
+ console.error
217
+ Warning: An update to EuiPopover inside a test was not wrapped in act(...).
218
+
219
+ When testing, code that causes React state updates should be wrapped into act(...):
220
+
221
+ act(() => {
222
+ /* fire events that update state */
223
+ });
224
+ /* assert on the output */
225
+
226
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
227
+ at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
228
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
229
+ at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
230
+ at div
231
+ at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
232
+ at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
233
+ at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
234
+ at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
235
+
236
+ at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
237
+ at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
238
+ at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
239
+ at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
240
+ at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
241
+ at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
242
+ at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
243
+ at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
244
+ at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
245
+ at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
246
+ at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
247
+ at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
248
+ at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
249
+
9
250
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoRestoreLoop.spec.tsx
251
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts
252
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/useSearchWithDebouncedCallback.spec.tsx
253
+ PASS Wfo-UI Tests src/hooks/usePathAutoComplete.spec.tsx
10
254
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
11
255
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
12
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (6.366 s)
13
256
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoTableExpandedRowReveal.spec.tsx
257
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts
14
258
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
15
259
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
16
260
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
17
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
18
- PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
19
- PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts
20
- PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
21
261
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
22
- PASS Wfo-UI Tests src/hooks/usePathAutoComplete.spec.tsx
262
+ PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
23
263
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
264
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
265
+ PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
24
266
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoValueEditor.spec.tsx
25
- PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
26
- PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
267
+ PASS Wfo-UI Tests src/rtk/endpoints/subscriptionListMutation.spec.ts
268
+ PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
27
269
  PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
28
270
  PASS Wfo-UI Tests src/utils/getProductLifecycleStatus.spec.ts
29
- PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
30
271
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
31
- PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
32
272
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
273
+ PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
274
+ PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
33
275
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
34
276
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
35
277
  PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
36
278
  PASS Wfo-UI Tests src/utils/filterData.spec.ts
37
- PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
38
279
  PASS Wfo-UI Tests src/utils/toObjectWithSerializedValues.spec.ts
280
+ PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
39
281
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
40
282
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
41
283
  PASS Wfo-UI Tests src/utils/integer.spec.ts
284
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
42
285
  PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
43
286
  PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
44
287
  PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
45
- PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
46
288
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
47
- PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
289
+ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
48
290
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
291
+ PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
49
292
 
50
- Test Suites: 46 passed, 46 total
51
- Tests: 288 passed, 288 total
293
+ Test Suites: 49 passed, 49 total
294
+ Tests: 320 passed, 320 total
52
295
  Snapshots: 0 total
53
- Time: 11.928 s
296
+ Time: 10.714 s
54
297
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - c175742: Introduces new search on the subscription list page. The search now offers filtering and searching with an optional embedding to support semantic search.
8
+
9
+ Breaking changes: `WfoSearchPocPage`, `PATH_SUBSCRIPTIONS_BETA`, the GraphQL based `WfoSubscriptionsList` component and the `mapGraphQlSubscriptionsResultToSubscriptionListItems`/`mapGraphQlSubscriptionsResultToPageInfo` mappers are removed. `SubscriptionListItem` no longer has a `customerId` field. Links to the subscriptions list page should use the `activeTab`, `queryString` and `filterString` (CEL) URL parameters; `sortBy`, `page` and `pageSize` are no longer read.
10
+
11
+ ### Minor Changes
12
+
13
+ - 2013c19: `WfoLatestActiveSubscriptionsSummaryCard` and `WfoLatestOutOfSyncSubscriptionSummaryCard` now fetch their data through the search endpoint with an Elasticsearch filter instead of the GraphQL subscriptions summary query, so their counts match the subscriptions list page they link to. Adds `getSubscriptionSummarySearchPayload` and `mapSubscriptionSearchResultToSummaryCardListItem` for building similar cards.
14
+
15
+ Removed: the `useGetSubscriptionSummaryListQuery` hook with its `subscriptionListSummaryQuery` document and `SubscriptionListSummaryResponse` type, the `SubscriptionSummary` type, the `mapSubscriptionSummaryToSummaryCardListItem` mapper, and the `subscriptionsListSummaryQueryVariables` / `outOfSyncSubscriptionsListSummaryQueryVariables` query variables.
16
+
17
+ ### Patch Changes
18
+
19
+ - f2d84a5: 210 Don't allow empty values in value editor to set the debounce timer for search page
20
+ - 2a69be5: Show an error in search page or the filter builder in case of a backend error message
21
+
22
+ ## 8.9.3
23
+
24
+ ### Patch Changes
25
+
26
+ - 6728684: 239 Fix layout issues with modal. Fix inline note edit inside modal.
27
+ - 6dc59e1: 221 Show Load More button even if cursor is null
28
+ - 9443cc8: 240 Update CSS of Pydantic form labels to blue font and bigger size
29
+ - 33a8fa4: 210 Add submit with return key search page + add debouncer on input
30
+
3
31
  ## 8.9.2
4
32
 
5
33
  ### Patch Changes