@orchestrator-ui/orchestrator-ui-components 8.9.3 → 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 (48) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +17 -50
  4. package/CHANGELOG.md +19 -0
  5. package/dist/index.d.ts +2081 -2517
  6. package/dist/index.js +1247 -1579
  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/WfoPageTemplate/paths.ts +0 -1
  13. package/src/components/WfoSubscriptionsList/index.ts +1 -2
  14. package/src/components/WfoSubscriptionsList/subscriptionListItem.ts +14 -0
  15. package/src/components/WfoSubscriptionsList/subscriptionListTabs.ts +1 -20
  16. package/src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx +17 -13
  17. package/src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx +28 -15
  18. package/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.spec.tsx +0 -16
  19. package/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx +4 -10
  20. package/src/components/WfoTable/WfoStructuredSearchTable/WfoFilterBuilder.tsx +9 -6
  21. package/src/components/WfoTable/WfoStructuredSearchTable/WfoRestoreLoop.spec.tsx +2 -2
  22. package/src/components/WfoTable/WfoStructuredSearchTable/WfoStructuredSearchTable.tsx +3 -5
  23. package/src/components/WfoTable/WfoStructuredSearchTable/useSearchWithDebouncedCallback.spec.tsx +56 -3
  24. package/src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts +60 -1
  25. package/src/components/WfoTable/WfoStructuredSearchTable/utils.ts +27 -3
  26. package/src/configuration/version.ts +1 -1
  27. package/src/messages/en-GB.json +1 -1
  28. package/src/messages/nl-NL.json +1 -1
  29. package/src/pages/index.ts +0 -1
  30. package/src/pages/startPage/index.ts +1 -0
  31. package/src/pages/startPage/mappers.ts +15 -8
  32. package/src/pages/startPage/queryVariables.ts +0 -29
  33. package/src/pages/startPage/searchPayloads.ts +22 -0
  34. package/src/pages/subscriptions/WfoSubscriptionsListPage.tsx +511 -39
  35. package/src/rtk/endpoints/index.ts +0 -1
  36. package/src/rtk/endpoints/search.ts +3 -0
  37. package/src/rtk/endpoints/subscriptionListMutation.spec.ts +80 -0
  38. package/src/rtk/endpoints/subscriptionListMutation.ts +71 -52
  39. package/src/rtk/utils.spec.ts +30 -1
  40. package/src/rtk/utils.ts +2 -1
  41. package/src/types/search.ts +0 -1
  42. package/src/types/types.ts +0 -2
  43. package/src/utils/getDefaultTableConfig.ts +1 -6
  44. package/src/utils/getQueryParams.ts +1 -0
  45. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +0 -243
  46. package/src/components/WfoSubscriptionsList/subscriptionResultMappers.ts +0 -49
  47. package/src/pages/WfoSearchPocPage.tsx +0 -575
  48. package/src/rtk/endpoints/subscriptionListSummary.ts +0 -66
@@ -1,8 +1,8 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.3 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.3 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 49ms
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 49ms
10
10
  CLI Target: es2022
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
- ESM dist/index.js 906.76 KB
14
- ESM dist/index.js.map 1.56 MB
15
- ESM ⚡️ Build success in 327ms
13
+ ESM dist/index.js 896.30 KB
14
+ ESM dist/index.js.map 1.55 MB
15
+ ESM ⚡️ Build success in 251ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 23851ms
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.3 lint
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@9.0.0 lint
2
2
  npm notice run eslint
@@ -1,12 +1,12 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.3 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/components/WfoSubscription/utils/utils.spec.ts
3
4
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
4
5
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
5
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
6
6
  PASS Wfo-UI Tests src/utils/date.spec.ts
7
7
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoOperatorSelector.spec.tsx
8
8
  PASS Wfo-UI Tests src/utils/string.spec.ts
9
- PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.spec.tsx (6.055 s)
9
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.spec.tsx
10
10
  ● Console
11
11
 
12
12
  console.error
@@ -247,63 +247,30 @@ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelec
247
247
  at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
248
248
  at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
249
249
 
250
- console.error
251
- Warning: An update to EuiPopover inside a test was not wrapped in act(...).
252
-
253
- When testing, code that causes React state updates should be wrapped into act(...):
254
-
255
- act(() => {
256
- /* fire events that update state */
257
- });
258
- /* assert on the output */
259
-
260
- 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
261
- at EuiPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/popover.js:115:5)
262
- at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
263
- at EuiInputPopover (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/popover/input_popover.js:48:23)
264
- at div
265
- at /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js:56:23
266
- at RenderWithEuiTheme (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/services/theme/hooks.js:73:23)
267
- at EuiComboBox (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/node_modules/@elastic/eui/lib/components/combo_box/combo_box.js:69:5)
268
- at handleOnChange (/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoStructuredSearchTable/WfoFieldSelector.tsx:38:63)
269
-
270
- at printWarning (../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
271
- at error (../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
272
- at warnIfUpdatesNotWrappedWithActDEV (../../node_modules/react-dom/cjs/react-dom.development.js:27628:9)
273
- at scheduleUpdateOnFiber (../../node_modules/react-dom/cjs/react-dom.development.js:25547:5)
274
- at Object.enqueueSetState (../../node_modules/react-dom/cjs/react-dom.development.js:17925:7)
275
- at EuiPopover.Component.setState (../../node_modules/react/cjs/react.development.js:354:16)
276
- at EuiPopover.positionPopover (../../node_modules/@elastic/eui/lib/components/popover/popover.js:295:13)
277
- at EuiPopover.positionPopoverFixed (../../node_modules/@elastic/eui/lib/components/popover/popover.js:303:13)
278
- at Object.onMutation (../../node_modules/@elastic/eui/lib/components/popover/popover.js:242:13)
279
- at MutationObserver.<anonymous> (../../node_modules/@elastic/eui/lib/components/observer/mutation_observer/mutation_observer.js:43:19)
280
- at MutationObserver.invokeTheCallbackFunction (../../node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js:19:26)
281
- at notifyMutationObservers (../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:160:22)
282
- at ../../node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js:133:5
283
-
284
- PASS Wfo-UI Tests src/hooks/usePathAutoComplete.spec.tsx
285
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
286
254
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
287
255
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
288
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (6.478 s)
289
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
290
256
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoTableExpandedRowReveal.spec.tsx
257
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts
258
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
291
259
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
292
260
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
261
+ PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
293
262
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
263
+ PASS Wfo-UI Tests src/rtk/utils.spec.ts
294
264
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
295
- PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
296
- PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/useSearchWithDebouncedCallback.spec.tsx
297
265
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
298
- PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts
299
- PASS Wfo-UI Tests src/rtk/utils.spec.ts
300
- PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
301
266
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoValueEditor.spec.tsx
267
+ PASS Wfo-UI Tests src/rtk/endpoints/subscriptionListMutation.spec.ts
302
268
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
303
269
  PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
304
270
  PASS Wfo-UI Tests src/utils/getProductLifecycleStatus.spec.ts
305
271
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
306
272
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
273
+ PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
307
274
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
308
275
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
309
276
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
@@ -314,17 +281,17 @@ PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
314
281
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
315
282
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
316
283
  PASS Wfo-UI Tests src/utils/integer.spec.ts
317
- PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
318
284
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
285
+ PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
319
286
  PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
320
287
  PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
321
288
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
322
289
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
323
- PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
324
290
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
291
+ PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
325
292
 
326
- Test Suites: 48 passed, 48 total
327
- Tests: 305 passed, 305 total
293
+ Test Suites: 49 passed, 49 total
294
+ Tests: 320 passed, 320 total
328
295
  Snapshots: 0 total
329
- Time: 14.365 s
296
+ Time: 10.714 s
330
297
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
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
+
3
22
  ## 8.9.3
4
23
 
5
24
  ### Patch Changes