diff --git a/dqops/src/main/frontend/src/components/ColumnList/ColumnListItem.tsx b/dqops/src/main/frontend/src/components/ColumnList/ColumnListItem.tsx index d7aa686b12..8bb09eb3a1 100644 --- a/dqops/src/main/frontend/src/components/ColumnList/ColumnListItem.tsx +++ b/dqops/src/main/frontend/src/components/ColumnList/ColumnListItem.tsx @@ -193,7 +193,7 @@ export default function SchemaTableItem({ goToTable(item, CheckTypes.SOURCES)} + onClick={() => goToColumn(item, CheckTypes.SOURCES)} /> goToTable(item, CheckTypes.PROFILING)} + onClick={() => goToColumn(item, CheckTypes.PROFILING)} /> goToTable(item, CheckTypes.MONITORING)} + onClick={() => goToColumn(item, CheckTypes.MONITORING)} /> goToTable(item, CheckTypes.PARTITIONED)} + onClick={() => goToColumn(item, CheckTypes.PARTITIONED)} /> diff --git a/dqops/src/main/frontend/src/pages/ColumnListView/ColumnListView.tsx b/dqops/src/main/frontend/src/pages/ColumnListView/ColumnListView.tsx index 98954d0f4c..3babceb765 100644 --- a/dqops/src/main/frontend/src/pages/ColumnListView/ColumnListView.tsx +++ b/dqops/src/main/frontend/src/pages/ColumnListView/ColumnListView.tsx @@ -1,13 +1,13 @@ +import clsx from 'clsx'; import React, { useEffect, useState } from 'react'; import { LabelModel, TableListModel } from '../../api'; import Button from '../../components/Button'; import ColumnList from '../../components/ColumnList'; import Input from '../../components/Input'; +import SvgIcon from '../../components/SvgIcon'; import { LabelsApiClient, SearchApiClient } from '../../services/apiClient'; import { CheckTypes } from '../../shared/routes'; import { useDecodedParams } from '../../utils'; -import SvgIcon from '../../components/SvgIcon'; -import clsx from 'clsx'; type TSearchFilters = { connection?: string | undefined; diff --git a/dqops/src/main/frontend/src/pages/TableListView/TableListView.tsx b/dqops/src/main/frontend/src/pages/TableListView/TableListView.tsx index 1f95bf63da..6dacb1e882 100644 --- a/dqops/src/main/frontend/src/pages/TableListView/TableListView.tsx +++ b/dqops/src/main/frontend/src/pages/TableListView/TableListView.tsx @@ -59,13 +59,18 @@ export default function TableListView() { }; const getTables = async (labels: string[] = []) => { - const addPrefix = (str: string) => { + const addPrefix = (str?: string) => { + if (!str) return ''; return str.includes('*') || str.length === 0 ? str : '*' + str + '*'; }; setLoading(true); + console.log( + connection ? addPrefix(connection) : addPrefix(searchFilters.connection), + schema ? addPrefix(schema) : addPrefix(searchFilters.schema) + ); const res = await SearchApiClient.findTables( - connection ?? addPrefix(searchFilters.connection ?? ''), - schema ?? addPrefix(searchFilters.schema ?? ''), + connection ? addPrefix(connection) : addPrefix(searchFilters.connection), + schema ? addPrefix(schema) : addPrefix(searchFilters.schema), addPrefix(searchFilters.table ?? ''), labels, filters.page, @@ -133,8 +138,8 @@ export default function TableListView() { return ( <> -
-
+
+
{!connection && ( onChangeSearchFilters({ connection: e.target.value }) } + className="z-[100]" /> )} {!schema && ( @@ -151,12 +157,14 @@ export default function TableListView() { onChange={(e) => onChangeSearchFilters({ schema: e.target.value }) } + className="z-[100]" /> )} onChangeSearchFilters({ table: e.target.value })} + className="z-[100]" />