@orchestrator-ui/orchestrator-ui-components 8.7.3 → 8.8.1

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 (40) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +16 -14
  4. package/CHANGELOG.md +22 -0
  5. package/dist/index.d.ts +23 -18
  6. package/dist/index.js +389 -267
  7. package/dist/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/components/WfoBadges/WfoWorkflowTargetBadge/WfoWorkflowTargetBadge.tsx +2 -2
  10. package/src/components/WfoContentHeader/WfoContentHeader.tsx +1 -1
  11. package/src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx +35 -0
  12. package/src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.tsx +7 -9
  13. package/src/components/WfoProcessList/WfoProcessListDeltaPopover.tsx +1 -1
  14. package/src/components/WfoProcessList/WfoProcessesList.tsx +7 -5
  15. package/src/components/WfoSubscription/WfoProcessesTimeline.tsx +21 -7
  16. package/src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx +25 -9
  17. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx +1 -1
  18. package/src/components/WfoSubscription/styles.ts +6 -0
  19. package/src/components/WfoSubscription/utils/utils.ts +2 -4
  20. package/src/components/WfoTable/WfoStructuredSearchTable/WfoExpandingSearchRow.tsx +0 -1
  21. package/src/components/WfoTable/WfoStructuredSearchTable/WfoStructuredSearchTable.tsx +40 -1
  22. package/src/components/WfoTable/WfoStructuredSearchTable/styles.ts +8 -9
  23. package/src/components/WfoTable/WfoTable/WfoTable.tsx +5 -1
  24. package/src/components/WfoTable/WfoTable/WfoTableDataRows.tsx +11 -2
  25. package/src/components/WfoTable/WfoTable/WfoTableExpandedRowReveal.spec.tsx +120 -0
  26. package/src/components/WfoTable/WfoTable/styles.ts +6 -0
  27. package/src/components/WfoTable/utils/tableConfigPersistence.ts +1 -0
  28. package/src/components/WfoTimeline/styles.ts +1 -1
  29. package/src/components/WfoWorkflowUserGuide/WfoPageWithUserGuide.tsx +8 -2
  30. package/src/components/WfoWorkflowUserGuide/WfoWorkflowGuideExpandablePanel.tsx +39 -30
  31. package/src/components/WfoWorkflowUserGuide/styles.ts +55 -7
  32. package/src/configuration/constants.ts +1 -1
  33. package/src/configuration/version.ts +1 -1
  34. package/src/hooks/useStoredTableConfig.ts +1 -0
  35. package/src/messages/en-GB.json +3 -1
  36. package/src/messages/nl-NL.json +4 -2
  37. package/src/pages/WfoSearchPocPage.tsx +1 -1
  38. package/src/pages/tasks/WfoTasksListPage.tsx +1 -0
  39. package/src/types/types.ts +11 -11
  40. package/src/utils/getDefaultTableConfig.ts +2 -0
@@ -1,8 +1,8 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.7.3 build
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.8.1 build
2
2
  npm notice run npm run generate-version && tsup src/index.ts
3
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.7.3 generate-version
3
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.8.1 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 52ms
5
+ src/configuration/version.ts 43ms
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 52ms
10
10
  CLI Target: es2022
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
- ESM dist/index.js 882.48 KB
14
- ESM dist/index.js.map 1.52 MB
15
- ESM ⚡️ Build success in 335ms
13
+ ESM dist/index.js 886.65 KB
14
+ ESM dist/index.js.map 1.53 MB
15
+ ESM ⚡️ Build success in 294ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 22335ms
18
- DTS dist/index.d.ts 1.55 MB
17
+ DTS ⚡️ Build success in 20664ms
18
+ DTS dist/index.d.ts 1.56 MB
@@ -1,2 +1,2 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.7.3 lint
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.8.1 lint
2
2
  npm notice run eslint
@@ -1,51 +1,53 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.7.3 test
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.8.1 test
2
2
  npm notice run jest
3
3
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
4
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
5
4
  PASS Wfo-UI Tests src/utils/date.spec.ts
5
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
6
6
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
7
7
  PASS Wfo-UI Tests src/utils/string.spec.ts
8
8
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoOperatorSelector.spec.tsx
9
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoRestoreLoop.spec.tsx
9
10
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
10
11
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
11
- PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoRestoreLoop.spec.tsx
12
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.73 s)
12
13
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
14
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoTableExpandedRowReveal.spec.tsx
13
15
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
14
16
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
15
17
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
16
18
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
19
+ PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
17
20
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts
18
- PASS Wfo-UI Tests src/hooks/usePathAutoComplete.spec.tsx
19
21
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
20
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (6.233 s)
22
+ PASS Wfo-UI Tests src/hooks/usePathAutoComplete.spec.tsx
21
23
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
22
- PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
24
+ PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoValueEditor.spec.tsx
23
25
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
24
26
  PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
27
+ PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
25
28
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
26
- PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoValueEditor.spec.tsx
27
29
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
30
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
28
31
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
29
32
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
30
33
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
31
- PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
32
34
  PASS Wfo-UI Tests src/utils/filterData.spec.ts
35
+ PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
33
36
  PASS Wfo-UI Tests src/utils/toObjectWithSerializedValues.spec.ts
34
37
  PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
35
- PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
36
38
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
37
- PASS Wfo-UI Tests src/utils/integer.spec.ts
38
39
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
40
+ PASS Wfo-UI Tests src/utils/integer.spec.ts
39
41
  PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
40
42
  PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
41
43
  PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
42
44
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
43
- PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
44
45
  PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
46
+ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
45
47
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
46
48
 
47
- Test Suites: 43 passed, 43 total
48
- Tests: 274 passed, 274 total
49
+ Test Suites: 45 passed, 45 total
50
+ Tests: 279 passed, 279 total
49
51
  Snapshots: 0 total
50
- Time: 11.248 s
52
+ Time: 11.117 s
51
53
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 8.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 074dce3: Adjust publish to npm action
8
+ - e6a276d: 176 Fix styling issues with worfklow guide panel- #2673
9
+ - 8bc73e4: Fix the workflow guide panel button sliding under the sticky timeline when the page is scrolled to the end on shorter viewports: its fixed minimum height could exceed the available viewport space, so the sticky bottom clamp pushed its top out of view. The minimum height is now capped by the same space the maximum height already uses
10
+
11
+ ## 8.8.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 1ef8034: Adds toggle to show/hide validate tasks on subscription details processes tab
16
+
17
+ ### Patch Changes
18
+
19
+ - 3b413e5: PR-2677: Change hardcoded colors WfoSearch to theme colors
20
+ - b84f608: add notes column to task list page
21
+ - b8aaed7: Fix scheduled task create/delete requests to use the canonical /api/schedules/ endpoint with a trailing slash, avoiding unnecessary HTTP redirects
22
+ - 67e77eb: 205 Add toggle to show match details for rows in search page. With the toggle off, a row's match details are revealed while hovering the row, without the flickering that occurred when the cursor sat on the row edge
23
+ - 2558ed2: Fix the note column on the workflows and tasks lists keeping the previous page's note when paginating to a row without a note. EuiInlineEditText only follows its value prop while the value is truthy, so empty notes are now passed as the invisible character, the same way the subscription note edits already do
24
+
3
25
  ## 8.7.3
4
26
 
5
27
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -19332,6 +19332,7 @@ declare const SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY = "subscriptionsTable";
19332
19332
  type StoredTableConfig<T> = {
19333
19333
  hiddenColumns: TableColumnKeys<T>;
19334
19334
  selectedPageSize: number;
19335
+ showMatchDetails?: boolean;
19335
19336
  };
19336
19337
  declare const isValidLocalStorageTableConfig: <T>(object: StoredTableConfig<T>) => object is StoredTableConfig<T>;
19337
19338
  declare const getTableConfigFromLocalStorage: <T>(key: string) => StoredTableConfig<T> | undefined;
@@ -19613,8 +19614,8 @@ type WfoTableProps<T extends object> = {
19613
19614
  rowExpandingConfiguration?: {
19614
19615
  uniqueRowId: keyof WfoTableColumnConfig<T>;
19615
19616
  uniqueRowIdToExpandedRowMap: Record<string, ReactNode>;
19616
- shouldOnlyShowOnHover?: boolean;
19617
19617
  };
19618
+ showExpandedRows?: boolean;
19618
19619
  pagination?: Pagination;
19619
19620
  overrideHeader?: (tableHeaderEntries: Array<[string, WfoTableControlColumnConfigItem<T> | WfoTableDataColumnConfigItem<T, keyof T>]>) => ReactNode;
19620
19621
  onRowClick?: (row: T) => void;
@@ -19625,7 +19626,7 @@ type WfoTableProps<T extends object> = {
19625
19626
  isVirtualized?: boolean;
19626
19627
  height?: number;
19627
19628
  };
19628
- declare const WfoTable: <T extends object>({ data, columnConfig, hiddenColumns, columnOrder, isLoading, dataSorting, rowExpandingConfiguration, pagination, overrideHeader, onUpdateDataSorting, onUpdateDataSearch, onRowClick, appendFillerColumn, className, isVirtualized, height, }: WfoTableProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
19629
+ declare const WfoTable: <T extends object>({ data, columnConfig, hiddenColumns, columnOrder, isLoading, dataSorting, rowExpandingConfiguration, showExpandedRows, pagination, overrideHeader, onUpdateDataSorting, onUpdateDataSearch, onRowClick, appendFillerColumn, className, isVirtualized, height, }: WfoTableProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
19629
19630
 
19630
19631
  declare const TABLE_ROW_HEIGHT = "40px";
19631
19632
 
@@ -19646,6 +19647,7 @@ declare const getWfoTableStyles: ({ theme, isDarkModeActive }: WfoThemeHelpers)
19646
19647
  dragAndDropStyle: _emotion_react.SerializedStyles;
19647
19648
  paginationStyle: _emotion_react.SerializedStyles;
19648
19649
  setWidth: (width?: CSSProperties["width"]) => false | _emotion_react.SerializedStyles;
19650
+ showExpandedRowStyle: _emotion_react.SerializedStyles;
19649
19651
  toggleExpandedRowOnHoverStyle: _emotion_react.SerializedStyles;
19650
19652
  };
19651
19653
 
@@ -19694,11 +19696,11 @@ type WfoTableHeaderCellProps = {
19694
19696
  };
19695
19697
  declare const WfoTableHeaderCell: FC<WfoTableHeaderCellProps>;
19696
19698
 
19697
- type WfoTableDataRowsProps<T extends object> = Pick<WfoTableProps<T>, 'data' | 'columnConfig' | 'hiddenColumns' | 'columnOrder' | 'rowExpandingConfiguration' | 'onRowClick' | 'className'>;
19699
+ type WfoTableDataRowsProps<T extends object> = Pick<WfoTableProps<T>, 'data' | 'columnConfig' | 'hiddenColumns' | 'columnOrder' | 'rowExpandingConfiguration' | 'showExpandedRows' | 'onRowClick' | 'className'>;
19698
19700
  declare const DATA_ROW_CLASS = "data-row";
19699
19701
  declare const CONTROL_CELL_CLASS = "control-cell";
19700
19702
  declare const DATA_CELL_CLASS = "data-cell";
19701
- declare const WfoTableDataRows: <T extends object>({ data, columnConfig, hiddenColumns, columnOrder, rowExpandingConfiguration, onRowClick, className, }: WfoTableDataRowsProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
19703
+ declare const WfoTableDataRows: <T extends object>({ data, columnConfig, hiddenColumns, columnOrder, rowExpandingConfiguration, showExpandedRows, onRowClick, className, }: WfoTableDataRowsProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
19702
19704
 
19703
19705
  type WfoTruncateCellProps = {
19704
19706
  children?: ReactElement | string | null;
@@ -19777,6 +19779,7 @@ type WfoStructuredSearchTableProps<T extends object> = Omit<WfoTableProps<T>, 'c
19777
19779
  tableColumnConfig: WfoStructuredSearchTableColumnConfig<T>;
19778
19780
  rowExpandingConfiguration: WfoTableProps<T>['rowExpandingConfiguration'];
19779
19781
  defaultHiddenColumns?: TableColumnKeys<T>;
19782
+ defaultShowMatchDetails?: boolean;
19780
19783
  queryText?: string;
19781
19784
  localStorageKey: string;
19782
19785
  exportDataIsLoading?: boolean;
@@ -19801,7 +19804,7 @@ type WfoStructuredSearchTableProps<T extends object> = Omit<WfoTableProps<T>, 'c
19801
19804
  hasNextPage: boolean;
19802
19805
  prefilledFieldOptions: FieldToOperatorMap;
19803
19806
  };
19804
- declare const WfoStructuredSearchTable: <T extends object>({ tableColumnConfig, defaultHiddenColumns, queryText, localStorageKey, exportDataIsLoading, error, onChangeQueryText, onSearchQueryText, onShowMore, onExportData, retrieverType, onUpdateRetrieverType, filterString, onUpdateFilterString, isValidFilterString, queryBuilderRuleGroup, onUpdateQueryBuilder, onUpdateDataSorting, getColumnSearchFieldName, handleSearch, pageSize, setPageSize, totalItems, rowExpandingConfiguration, dataSorting, hasNextPage, data, isLoading, prefilledFieldOptions, ...tableProps }: WfoStructuredSearchTableProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
19807
+ declare const WfoStructuredSearchTable: <T extends object>({ tableColumnConfig, defaultHiddenColumns, defaultShowMatchDetails, queryText, localStorageKey, exportDataIsLoading, error, onChangeQueryText, onSearchQueryText, onShowMore, onExportData, retrieverType, onUpdateRetrieverType, filterString, onUpdateFilterString, isValidFilterString, queryBuilderRuleGroup, onUpdateQueryBuilder, onUpdateDataSorting, getColumnSearchFieldName, handleSearch, pageSize, setPageSize, totalItems, rowExpandingConfiguration, dataSorting, hasNextPage, data, isLoading, prefilledFieldOptions, ...tableProps }: WfoStructuredSearchTableProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
19805
19808
 
19806
19809
  interface WfoExpandingSearchRowProps {
19807
19810
  score?: number;
@@ -25414,12 +25417,12 @@ interface ProductDefinition {
25414
25417
  }
25415
25418
  type ProductsSummary = Pick<ProductDefinition, 'name'> & SubscriptionsResult<never>;
25416
25419
  declare enum WorkflowTarget {
25417
- CREATE = "create",
25418
- MODIFY = "modify",
25419
- TERMINATE = "terminate",
25420
- SYSTEM = "system",
25421
- VALIDATE = "validate",
25422
- RECONCILE = "reconcile"
25420
+ CREATE = "CREATE",
25421
+ MODIFY = "MODIFY",
25422
+ TERMINATE = "TERMINATE",
25423
+ SYSTEM = "SYSTEM",
25424
+ VALIDATE = "VALIDATE",
25425
+ RECONCILE = "RECONCILE"
25423
25426
  }
25424
25427
  type Process = {
25425
25428
  workflowName: string;
@@ -25826,11 +25829,11 @@ type SubscriptionActions = {
25826
25829
  reason?: string;
25827
25830
  locked_relations?: string[];
25828
25831
  locked_relations_detail?: SubscriptionRelation[];
25829
- modify: SubscriptionAction[];
25830
- terminate: SubscriptionAction[];
25831
- system: SubscriptionAction[];
25832
- validate: SubscriptionAction[];
25833
- reconcile: SubscriptionAction[];
25832
+ [WorkflowTarget.MODIFY]: SubscriptionAction[];
25833
+ [WorkflowTarget.TERMINATE]: SubscriptionAction[];
25834
+ [WorkflowTarget.SYSTEM]: SubscriptionAction[];
25835
+ [WorkflowTarget.VALIDATE]: SubscriptionAction[];
25836
+ [WorkflowTarget.RECONCILE]: SubscriptionAction[];
25834
25837
  };
25835
25838
  declare enum CacheTagType {
25836
25839
  workerStatus = "workerStatus",
@@ -29361,10 +29364,10 @@ declare const METADATA_PRODUCT_ENDPOINT = "products";
29361
29364
  declare const METADATA_PRODUCT_BLOCK_ENDPOINT = "product_blocks";
29362
29365
  declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
29363
29366
  declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
29364
- declare const METADATA_SCHEDULES_ENDPOINT = "schedules";
29367
+ declare const METADATA_SCHEDULES_ENDPOINT = "schedules/";
29365
29368
  declare const SEARCH_QUERY_RESULTS_ENDPOINT = "search/queries";
29366
29369
 
29367
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "8.7.3";
29370
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "8.8.1";
29368
29371
 
29369
29372
  declare const useGetTranslationMessages: (locale: string | undefined) => {
29370
29373
  pydanticForms: {
@@ -29485,6 +29488,7 @@ declare const useGetTranslationMessages: (locale: string | undefined) => {
29485
29488
  searchModalText: string;
29486
29489
  searchModalTitle: string;
29487
29490
  showAllColumnsInDetailView: string;
29491
+ showMatchDetails: string;
29488
29492
  tableSettings: string;
29489
29493
  unauthorizedPage: string;
29490
29494
  unknownError: string;
@@ -29890,6 +29894,7 @@ declare const useGetTranslationMessages: (locale: string | undefined) => {
29890
29894
  workflowsTab: {
29891
29895
  startWithNewestLabel: string;
29892
29896
  startWithOldestLabel: string;
29897
+ hideValidateTasks: string;
29893
29898
  };
29894
29899
  };
29895
29900
  index: {