@orchestrator-ui/orchestrator-ui-components 8.9.0 → 8.9.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.
@@ -1,8 +1,8 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.0 build
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.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.9.0 generate-version
3
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.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 39ms
5
+ src/configuration/version.ts 46ms
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 39ms
10
10
  CLI Target: es2022
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
- ESM dist/index.js 898.17 KB
13
+ ESM dist/index.js 898.84 KB
14
14
  ESM dist/index.js.map 1.55 MB
15
- ESM ⚡️ Build success in 309ms
15
+ ESM ⚡️ Build success in 362ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 22514ms
17
+ DTS ⚡️ Build success in 26313ms
18
18
  DTS dist/index.d.ts 1.56 MB
@@ -1,2 +1,2 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.0 lint
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.1 lint
2
2
  npm notice run eslint
@@ -1,54 +1,54 @@
1
- npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.0 test
1
+ npm notice run @orchestrator-ui/orchestrator-ui-components@8.9.1 test
2
2
  npm notice run jest
3
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
4
- PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
5
3
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
4
  PASS Wfo-UI Tests src/utils/date.spec.ts
5
+ PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
6
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.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
9
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoRestoreLoop.spec.tsx
10
10
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
11
11
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
12
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.627 s)
12
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (7.199 s)
13
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoTableExpandedRowReveal.spec.tsx
13
14
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
14
15
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
15
16
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
16
17
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
17
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoTableExpandedRowReveal.spec.tsx
18
18
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
19
+ PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
19
20
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/utils.spec.ts
20
21
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
21
22
  PASS Wfo-UI Tests src/hooks/usePathAutoComplete.spec.tsx
22
- PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/WfoCron.spec.ts
23
23
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
24
24
  PASS Wfo-UI Tests src/components/WfoTable/WfoStructuredSearchTable/WfoValueEditor.spec.tsx
25
25
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
26
+ PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
26
27
  PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
27
28
  PASS Wfo-UI Tests src/utils/getProductLifecycleStatus.spec.ts
28
29
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
30
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
29
31
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
30
- PASS Wfo-UI Tests src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.spec.tsx
31
32
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
32
- PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
33
33
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
34
- PASS Wfo-UI Tests src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.spec.ts
34
+ PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
35
35
  PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
36
36
  PASS Wfo-UI Tests src/utils/filterData.spec.ts
37
37
  PASS Wfo-UI Tests src/utils/toObjectWithSerializedValues.spec.ts
38
38
  PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
39
39
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
40
- PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
41
40
  PASS Wfo-UI Tests src/utils/integer.spec.ts
41
+ PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
42
42
  PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
43
- PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
44
43
  PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
45
- PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
46
44
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
45
+ PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
46
+ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
47
47
  PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
48
48
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
49
49
 
50
50
  Test Suites: 46 passed, 46 total
51
51
  Tests: 288 passed, 288 total
52
52
  Snapshots: 0 total
53
- Time: 11.918 s
53
+ Time: 14.139 s
54
54
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 8.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0e5b816: Fix query and filter not being applied in certain cases
8
+
3
9
  ## 8.9.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -19773,7 +19773,7 @@ type WfoStructuredSearchTableDataColumnConfig<T extends object> = {
19773
19773
  };
19774
19774
  type WfoStructuredSearchTableColumnConfig<T extends object> = Partial<WfoTableControlColumnConfig<T> | WfoStructuredSearchTableDataColumnConfig<T>>;
19775
19775
  type SearchParams = {
19776
- queryText?: string | false;
19776
+ queryString?: string | false;
19777
19777
  retrieverType?: RetrieverType;
19778
19778
  ruleGroup?: RuleGroupType | false;
19779
19779
  limit?: number;
@@ -19788,12 +19788,12 @@ type WfoStructuredSearchTableProps<T extends object> = Omit<WfoTableProps<T>, 'c
19788
19788
  defaultHiddenColumns?: TableColumnKeys<T>;
19789
19789
  defaultShowMatchDetails?: boolean;
19790
19790
  defaultAdvancedNestedSearch?: boolean;
19791
- queryText?: string;
19791
+ queryString?: string;
19792
19792
  localStorageKey: string;
19793
19793
  exportDataIsLoading?: boolean;
19794
19794
  error?: WfoGraphqlError[];
19795
- onChangeQueryText: (queryString: string) => void;
19796
- onSearchQueryText: (queryString: string) => void;
19795
+ onChangeQueryString: (queryString: string) => void;
19796
+ onSearchQueryString: (queryString: string) => void;
19797
19797
  onShowMore: () => void;
19798
19798
  onUpdateDataSorting: (updateSorting: WfoDataSorting<T>) => void;
19799
19799
  getColumnSearchFieldName?: (field: keyof T) => string;
@@ -19812,7 +19812,7 @@ type WfoStructuredSearchTableProps<T extends object> = Omit<WfoTableProps<T>, 'c
19812
19812
  hasNextPage: boolean;
19813
19813
  prefilledFieldOptions: FieldToOperatorMap;
19814
19814
  };
19815
- declare const WfoStructuredSearchTable: <T extends object>({ tableColumnConfig, defaultHiddenColumns, defaultShowMatchDetails, defaultAdvancedNestedSearch, 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;
19815
+ declare const WfoStructuredSearchTable: <T extends object>({ tableColumnConfig, defaultHiddenColumns, defaultShowMatchDetails, defaultAdvancedNestedSearch, queryString, localStorageKey, exportDataIsLoading, error, onChangeQueryString, onSearchQueryString, 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;
19816
19816
 
19817
19817
  interface WfoExpandingSearchRowProps {
19818
19818
  score?: number;
@@ -29383,7 +29383,7 @@ declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
29383
29383
  declare const METADATA_SCHEDULES_ENDPOINT = "schedules/";
29384
29384
  declare const SEARCH_QUERY_RESULTS_ENDPOINT = "search/queries";
29385
29385
 
29386
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "8.9.0";
29386
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "8.9.1";
29387
29387
 
29388
29388
  declare const useGetTranslationMessages: (locale: string | undefined) => {
29389
29389
  pydanticForms: {
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
61
61
  })(PolicyResource || {});
62
62
 
63
63
  // src/configuration/version.ts
64
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "8.9.0";
64
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "8.9.1";
65
65
 
66
66
  // src/types/types.ts
67
67
  var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
@@ -13039,9 +13039,9 @@ import { useTranslations as useTranslations48 } from "next-intl";
13039
13039
  import { EuiButtonIcon as EuiButtonIcon12, EuiFieldSearch as EuiFieldSearch3, EuiFlexItem as EuiFlexItem22, EuiFormRow as EuiFormRow6 } from "@elastic/eui";
13040
13040
  import { Fragment as Fragment38, jsx as jsx193, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
13041
13041
  var WfoSearchFieldWithActions = ({
13042
- queryText,
13043
- onChangeQueryText,
13044
- onSearchQueryText,
13042
+ queryString,
13043
+ onChangeQueryString,
13044
+ onSearchQueryString,
13045
13045
  onShowInformation,
13046
13046
  onShowTableSettings
13047
13047
  }) => {
@@ -13052,10 +13052,10 @@ var WfoSearchFieldWithActions = ({
13052
13052
  EuiFieldSearch3,
13053
13053
  {
13054
13054
  css: formFieldBaseStyle,
13055
- value: queryText,
13055
+ value: queryString,
13056
13056
  placeholder: `${t("search")}...`,
13057
- onChange: (e) => onChangeQueryText(e.target.value),
13058
- onSearch: (queryText2) => onSearchQueryText(queryText2),
13057
+ onChange: (e) => onChangeQueryString(e.target.value),
13058
+ onSearch: (queryString2) => onSearchQueryString(queryString2),
13059
13059
  fullWidth: true
13060
13060
  }
13061
13061
  ) }) }),
@@ -13136,12 +13136,12 @@ var WfoStructuredSearchTable = ({
13136
13136
  defaultHiddenColumns = [],
13137
13137
  defaultShowMatchDetails = false,
13138
13138
  defaultAdvancedNestedSearch = true,
13139
- queryText,
13139
+ queryString,
13140
13140
  localStorageKey,
13141
13141
  exportDataIsLoading,
13142
13142
  error,
13143
- onChangeQueryText,
13144
- onSearchQueryText,
13143
+ onChangeQueryString,
13144
+ onSearchQueryString,
13145
13145
  onShowMore,
13146
13146
  onExportData,
13147
13147
  retrieverType,
@@ -13271,9 +13271,9 @@ var WfoStructuredSearchTable = ({
13271
13271
  /* @__PURE__ */ jsx195(
13272
13272
  WfoSearchFieldWithActions,
13273
13273
  {
13274
- queryText,
13275
- onChangeQueryText,
13276
- onSearchQueryText,
13274
+ queryString,
13275
+ onChangeQueryString,
13276
+ onSearchQueryString,
13277
13277
  onShowInformation: () => setShowInformationModal(true),
13278
13278
  onShowTableSettings: () => setShowTableSettingsModal(true)
13279
13279
  }
@@ -17473,18 +17473,18 @@ var WfoSearchPocPage = () => {
17473
17473
  const selectedTab = subscriptionListTabs.find(({ id }) => id === activeTab)?.id ?? "ACTIVE" /* ACTIVE */;
17474
17474
  const getStoredTableConfig = useStoredTableConfig(SEARCH_TABLE_LOCAL_STORAGE_KEY);
17475
17475
  const [retrieverType, setRetrieverType] = useState54("auto" /* Auto */);
17476
- const [queryText, setQueryText] = useState54("");
17477
- const [committedSearchQuery, setCommittedSearchQuery] = useQueryParam6("queryString", withDefault7(StringParam7, ""));
17476
+ const [queryString, setQueryString] = useState54("");
17477
+ const [committedQueryString, setCommittedQueryString] = useQueryParam6("queryString", withDefault7(StringParam7, ""));
17478
17478
  const [committedFilterString, setCommittedFilterString] = useQueryParam6("filterString", withDefault7(StringParam7, ""));
17479
17479
  const lastSelfCommittedFilter = useRef18("");
17480
17480
  const commitFilterString = (celString) => {
17481
17481
  lastSelfCommittedFilter.current = celString;
17482
17482
  setCommittedFilterString(celString || void 0);
17483
17483
  };
17484
- const lastSelfCommittedQuery = useRef18("");
17485
- const commitSearchQuery = (queryText2) => {
17486
- lastSelfCommittedQuery.current = queryText2;
17487
- setCommittedSearchQuery(queryText2 || void 0);
17484
+ const lastSelfCommittedQueryString = useRef18("");
17485
+ const commitQueryString = (queryString2) => {
17486
+ lastSelfCommittedQueryString.current = queryString2;
17487
+ setCommittedQueryString(queryString2 || void 0);
17488
17488
  };
17489
17489
  const [filterString, setFilterString] = useState54("");
17490
17490
  const [queryBuilderRuleGroup, setQueryBuilderRuleGroup] = useState54();
@@ -17493,6 +17493,7 @@ var WfoSearchPocPage = () => {
17493
17493
  [committedFilterString]
17494
17494
  );
17495
17495
  const [isValidFilterString, setIsValidFilterString] = useState54(true);
17496
+ const [isCommitRefused, setIsCommitRefused] = useState54(false);
17496
17497
  const [tableDefaults, setTableDefaults] = useState54();
17497
17498
  const [pageSize, setPageSize] = useState54(DEFAULT_PAGE_SIZE);
17498
17499
  const [pageCursor, setPageCursor] = useState54(void 0);
@@ -17501,7 +17502,7 @@ var WfoSearchPocPage = () => {
17501
17502
  sortOrder: "DESC" /* DESC */
17502
17503
  });
17503
17504
  const committedSearchKey = JSON.stringify([
17504
- committedSearchQuery,
17505
+ committedQueryString,
17505
17506
  committedFilterString,
17506
17507
  selectedTab,
17507
17508
  retrieverType,
@@ -17515,7 +17516,7 @@ var WfoSearchPocPage = () => {
17515
17516
  direction: dataSorting.sortOrder.toLowerCase()
17516
17517
  };
17517
17518
  return {
17518
- query: committedSearchQuery,
17519
+ query: committedQueryString,
17519
17520
  limit: pageSize,
17520
17521
  entity_type: "SUBSCRIPTION" /* SUBSCRIPTION */,
17521
17522
  response_columns: Array.from(resultColumToPropertyMap.keys()),
@@ -17524,7 +17525,7 @@ var WfoSearchPocPage = () => {
17524
17525
  ...filters && { filters },
17525
17526
  ...cursor && { cursor }
17526
17527
  };
17527
- }, [committedSearchQuery, committedRuleGroup, selectedTab, retrieverType, pageSize, dataSorting, cursor]);
17528
+ }, [committedQueryString, committedRuleGroup, selectedTab, retrieverType, pageSize, dataSorting, cursor]);
17528
17529
  const { data, isFetching } = useSearchQuery(searchPayload);
17529
17530
  const [getSubscriptionListTrigger] = useLazySearchQuery();
17530
17531
  const getSubscriptionListForExport = (exportLimit) => getSubscriptionListTrigger({ ...searchPayload, limit: exportLimit, cursor: void 0 }).unwrap();
@@ -17632,29 +17633,45 @@ var WfoSearchPocPage = () => {
17632
17633
  }
17633
17634
  };
17634
17635
  const sortableAndFilterableFieldNames = Object.keys(tableColumnConfig).filter((fieldName) => fieldName !== "actions");
17635
- const isSortingAllowed = queryText === "";
17636
+ const isSortingAllowed = queryString === "";
17636
17637
  const tableColumnConfigWithSortingAndFiltering = mapSortableAndFilterableValuesToTableColumnConfig(
17637
17638
  tableColumnConfig,
17638
17639
  isSortingAllowed ? sortableAndFilterableFieldNames : [],
17639
17640
  sortableAndFilterableFieldNames
17640
17641
  );
17641
- const handleApplyFilter = (searchParams) => {
17642
- const ruleGroupParam = searchParams?.ruleGroup;
17643
- const effectiveRuleGroup = ruleGroupParam === false ? void 0 : ruleGroupParam ?? queryBuilderRuleGroup;
17642
+ const commitFilterDraft = (effectiveRuleGroup) => {
17644
17643
  const celQuery = effectiveRuleGroup ? formatQuery2(effectiveRuleGroup, { format: "cel", fallbackExpression: "" }) : "";
17645
17644
  if (celQuery && !parseCelToRuleGroup(celQuery)) {
17646
17645
  setIsValidFilterString(false);
17647
- return;
17646
+ setIsCommitRefused(true);
17647
+ return false;
17648
17648
  }
17649
17649
  commitFilterString(celQuery);
17650
+ setIsCommitRefused(false);
17651
+ return true;
17652
+ };
17653
+ const handleApplyFilter = (searchParams) => {
17654
+ const ruleGroupParam = searchParams?.ruleGroup;
17655
+ const effectiveRuleGroup = ruleGroupParam === false ? void 0 : ruleGroupParam ?? queryBuilderRuleGroup;
17656
+ if (!commitFilterDraft(effectiveRuleGroup)) {
17657
+ return;
17658
+ }
17659
+ commitQueryString(queryString);
17650
17660
  setPageCursor(void 0);
17651
17661
  };
17652
- const onChangeQueryText = (queryText2) => {
17653
- setQueryText(queryText2);
17662
+ const onChangeQueryString = (queryString2) => {
17663
+ setQueryString(queryString2);
17654
17664
  };
17655
- const onSearchQueryText = (queryText2) => {
17656
- setQueryText(queryText2);
17657
- commitSearchQuery(queryText2);
17665
+ const onSearchQueryString = (queryString2) => {
17666
+ setQueryString(queryString2);
17667
+ if (!isValidFilterString) {
17668
+ setIsCommitRefused(true);
17669
+ return;
17670
+ }
17671
+ if (!commitFilterDraft(queryBuilderRuleGroup)) {
17672
+ return;
17673
+ }
17674
+ commitQueryString(queryString2);
17658
17675
  setPageCursor(void 0);
17659
17676
  };
17660
17677
  const onUpdateRetrieverType = (retrieverType2) => {
@@ -17679,12 +17696,12 @@ var WfoSearchPocPage = () => {
17679
17696
  }
17680
17697
  }, []);
17681
17698
  useEffect39(() => {
17682
- if (committedSearchQuery === lastSelfCommittedQuery.current) {
17699
+ if (committedQueryString === lastSelfCommittedQueryString.current) {
17683
17700
  return;
17684
17701
  }
17685
- lastSelfCommittedQuery.current = committedSearchQuery;
17686
- setQueryText(committedSearchQuery);
17687
- }, [committedSearchQuery]);
17702
+ lastSelfCommittedQueryString.current = committedQueryString;
17703
+ setQueryString(committedQueryString);
17704
+ }, [committedQueryString]);
17688
17705
  useEffect39(() => {
17689
17706
  if (committedFilterString === lastSelfCommittedFilter.current) {
17690
17707
  return;
@@ -17719,9 +17736,10 @@ var WfoSearchPocPage = () => {
17719
17736
  setFilterString(filterString2);
17720
17737
  safeCelParse(filterString2);
17721
17738
  };
17722
- const { items: subscriptionListItems, rowExpandingConfiguration } = data ? getDataFromResponse(data, resultColumToPropertyMap, "subscriptionId", selectedTab) : { items: [] };
17723
- const totalItems = getTotalItemsFromResponse(data);
17724
- const hasNextPage = data?.page_info?.has_next_page ?? false;
17739
+ const isSearchBlocked = isCommitRefused && !isValidFilterString;
17740
+ const { items: subscriptionListItems, rowExpandingConfiguration } = data && !isSearchBlocked ? getDataFromResponse(data, resultColumToPropertyMap, "subscriptionId", selectedTab) : { items: [] };
17741
+ const totalItems = !isSearchBlocked && getTotalItemsFromResponse(data);
17742
+ const hasNextPage = !isSearchBlocked && (data?.page_info?.has_next_page ?? false);
17725
17743
  const nextPageCursor = data?.page_info?.next_page_cursor ?? void 0;
17726
17744
  const exportData = async () => {
17727
17745
  const exportResult = await getSubscriptionListForExport(totalItems || pageSize);
@@ -17780,12 +17798,12 @@ var WfoSearchPocPage = () => {
17780
17798
  localStorageKey: SEARCH_TABLE_LOCAL_STORAGE_KEY,
17781
17799
  onUpdateFilterString,
17782
17800
  onUpdateQueryBuilder,
17783
- onChangeQueryText,
17784
- onSearchQueryText,
17801
+ onChangeQueryString,
17802
+ onSearchQueryString,
17785
17803
  onShowMore,
17786
17804
  onUpdateRetrieverType,
17787
17805
  queryBuilderRuleGroup,
17788
- queryText,
17806
+ queryString,
17789
17807
  retrieverType,
17790
17808
  tableColumnConfig: tableColumnConfigWithSortingAndFiltering,
17791
17809
  getColumnSearchFieldName: (field) => getKeyByValueFromMap(resultColumToPropertyMap, field),