diff --git a/app/[query]/merges/merge-performance.ts b/app/[query]/merges/merge-performance.ts index cdd131a0..88d654af 100644 --- a/app/[query]/merges/merge-performance.ts +++ b/app/[query]/merges/merge-performance.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const mergePerformanceConfig: QueryConfig = { diff --git a/app/[query]/merges/merges.ts b/app/[query]/merges/merges.ts index 71c16fb7..8e909165 100644 --- a/app/[query]/merges/merges.ts +++ b/app/[query]/merges/merges.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const mergesConfig: QueryConfig = { diff --git a/app/[query]/merges/mutations.ts b/app/[query]/merges/mutations.ts index 720b4291..1e32618b 100644 --- a/app/[query]/merges/mutations.ts +++ b/app/[query]/merges/mutations.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const mutationsConfig: QueryConfig = { diff --git a/app/[query]/more/asynchronous-metrics.ts b/app/[query]/more/asynchronous-metrics.ts index 28d9c5ce..22b33365 100644 --- a/app/[query]/more/asynchronous-metrics.ts +++ b/app/[query]/more/asynchronous-metrics.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const asynchronousMetricsConfig: QueryConfig = { diff --git a/app/[query]/more/backups.ts b/app/[query]/more/backups.ts index 877b2f71..b443a39a 100644 --- a/app/[query]/more/backups.ts +++ b/app/[query]/more/backups.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const backupsConfig: QueryConfig = { diff --git a/app/[query]/more/count-across-replicas.ts b/app/[query]/more/count-across-replicas.ts index 90fb3a5c..49e537d0 100644 --- a/app/[query]/more/count-across-replicas.ts +++ b/app/[query]/more/count-across-replicas.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const countAcrossReplicasConfig: QueryConfig = { diff --git a/app/[query]/more/mergetree-settings.ts b/app/[query]/more/mergetree-settings.ts index 642e582c..23257bf6 100644 --- a/app/[query]/more/mergetree-settings.ts +++ b/app/[query]/more/mergetree-settings.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const mergeTreeSettingsConfig: QueryConfig = { diff --git a/app/[query]/more/metrics.ts b/app/[query]/more/metrics.ts index f5e919ea..4656e34c 100644 --- a/app/[query]/more/metrics.ts +++ b/app/[query]/more/metrics.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const metricsConfig: QueryConfig = { diff --git a/app/[query]/more/settings.ts b/app/[query]/more/settings.ts index e4caf230..2b07908f 100644 --- a/app/[query]/more/settings.ts +++ b/app/[query]/more/settings.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const settingsConfig: QueryConfig = { diff --git a/app/[query]/more/top-usage-columns.ts b/app/[query]/more/top-usage-columns.ts index 85821ba7..30ba34f1 100644 --- a/app/[query]/more/top-usage-columns.ts +++ b/app/[query]/more/top-usage-columns.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const topUsageColumnsConfig: QueryConfig = { diff --git a/app/[query]/more/top-usage-tables.ts b/app/[query]/more/top-usage-tables.ts index ace051d4..b5d27036 100644 --- a/app/[query]/more/top-usage-tables.ts +++ b/app/[query]/more/top-usage-tables.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const topUsageTablesConfig: QueryConfig = { diff --git a/app/[query]/more/zookeeper.ts b/app/[query]/more/zookeeper.ts index bc242d5b..c86694c2 100644 --- a/app/[query]/more/zookeeper.ts +++ b/app/[query]/more/zookeeper.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const zookeeperConfig: QueryConfig = { diff --git a/app/[query]/queries/common-errors.ts b/app/[query]/queries/common-errors.ts index 64caca5e..ed7fe941 100644 --- a/app/[query]/queries/common-errors.ts +++ b/app/[query]/queries/common-errors.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const commonErrorsConfig: QueryConfig = { diff --git a/app/[query]/queries/expensive-queries-by-memory.ts b/app/[query]/queries/expensive-queries-by-memory.ts index e1e11973..4f78d342 100644 --- a/app/[query]/queries/expensive-queries-by-memory.ts +++ b/app/[query]/queries/expensive-queries-by-memory.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const expensiveQueriesByMemoryConfig: QueryConfig = { diff --git a/app/[query]/queries/expensive-queries.ts b/app/[query]/queries/expensive-queries.ts index f1c469d1..ff2be8fc 100644 --- a/app/[query]/queries/expensive-queries.ts +++ b/app/[query]/queries/expensive-queries.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const expensiveQueriesConfig: QueryConfig = { diff --git a/app/[query]/queries/failed-queries.ts b/app/[query]/queries/failed-queries.ts index f4d9c60f..273ae1d7 100644 --- a/app/[query]/queries/failed-queries.ts +++ b/app/[query]/queries/failed-queries.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const failedQueriesConfig: QueryConfig = { diff --git a/app/[query]/queries/history-queries.ts b/app/[query]/queries/history-queries.ts index 5dd539de..bf842c42 100644 --- a/app/[query]/queries/history-queries.ts +++ b/app/[query]/queries/history-queries.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const historyQueriesConfig: QueryConfig = { diff --git a/app/[query]/queries/running-queries.ts b/app/[query]/queries/running-queries.ts index 309ed238..9b8c770f 100644 --- a/app/[query]/queries/running-queries.ts +++ b/app/[query]/queries/running-queries.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const runningQueriesConfig: QueryConfig = { diff --git a/app/[query]/tables/distributed-ddl-queue.ts b/app/[query]/tables/distributed-ddl-queue.ts index b212ce2f..7dd8770e 100644 --- a/app/[query]/tables/distributed-ddl-queue.ts +++ b/app/[query]/tables/distributed-ddl-queue.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const distributedDdlQueueConfig: QueryConfig = { diff --git a/app/[query]/tables/readonly-tables.ts b/app/[query]/tables/readonly-tables.ts index e9620576..dd9d1751 100644 --- a/app/[query]/tables/readonly-tables.ts +++ b/app/[query]/tables/readonly-tables.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const readOnlyTablesConfig: QueryConfig = { diff --git a/app/[query]/tables/replicas.ts b/app/[query]/tables/replicas.ts index a7db4989..f9b8cbc5 100644 --- a/app/[query]/tables/replicas.ts +++ b/app/[query]/tables/replicas.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const replicasConfig: QueryConfig = { diff --git a/app/[query]/tables/replication-queue.ts b/app/[query]/tables/replication-queue.ts index 0ec80816..dfbf4712 100644 --- a/app/[query]/tables/replication-queue.ts +++ b/app/[query]/tables/replication-queue.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const replicationQueueConfig: QueryConfig = { diff --git a/app/[query]/tables/table-overview.ts b/app/[query]/tables/table-overview.ts index 42d94c26..c07a697f 100644 --- a/app/[query]/tables/table-overview.ts +++ b/app/[query]/tables/table-overview.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export const tablesOverviewConfig: QueryConfig = { diff --git a/app/clusters/[cluster]/count-across-replicas/page.tsx b/app/clusters/[cluster]/count-across-replicas/page.tsx index e9bdc20e..6b160225 100644 --- a/app/clusters/[cluster]/count-across-replicas/page.tsx +++ b/app/clusters/[cluster]/count-across-replicas/page.tsx @@ -1,6 +1,6 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' import { DataTable } from '@/components/data-table/data-table' import { fetchData } from '@/lib/clickhouse' +import { ColumnFormat } from '@/lib/types/column-format' import type { QueryConfig } from '@/lib/types/query-config' diff --git a/app/clusters/[cluster]/parts-across-replicas/page.tsx b/app/clusters/[cluster]/parts-across-replicas/page.tsx index b6287eba..390b18df 100644 --- a/app/clusters/[cluster]/parts-across-replicas/page.tsx +++ b/app/clusters/[cluster]/parts-across-replicas/page.tsx @@ -1,6 +1,6 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' import { DataTable } from '@/components/data-table/data-table' import { fetchData } from '@/lib/clickhouse' +import { ColumnFormat } from '@/lib/types/column-format' import type { QueryConfig } from '@/lib/types/query-config' diff --git a/app/clusters/[cluster]/replicas-status/config.ts b/app/clusters/[cluster]/replicas-status/config.ts index 56efa83c..b6634a90 100644 --- a/app/clusters/[cluster]/replicas-status/config.ts +++ b/app/clusters/[cluster]/replicas-status/config.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export type Row = { diff --git a/app/clusters/config.ts b/app/clusters/config.ts index a4ee7650..e7b339ab 100644 --- a/app/clusters/config.ts +++ b/app/clusters/config.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export type Row = { diff --git a/app/database/[database]/[table]/config.ts b/app/database/[database]/[table]/config.ts index d0b1efe1..9781da1c 100644 --- a/app/database/[database]/[table]/config.ts +++ b/app/database/[database]/[table]/config.ts @@ -1,4 +1,4 @@ -import { ColumnFormat } from '@/components/data-table/column-defs' +import { ColumnFormat } from '@/lib/types/column-format' import { type QueryConfig } from '@/lib/types/query-config' export type Row = { @@ -70,6 +70,7 @@ export const config: QueryConfig = { 'comment', ], columnFormats: { + column: [ColumnFormat.HoverCard, { content: 'Column note: [comment]' }], type: ColumnFormat.Code, codec: ColumnFormat.Code, part_count: ColumnFormat.Number, diff --git a/app/database/[database]/[table]/loading.tsx b/app/database/[database]/[table]/loading.tsx index 6fafa7a8..bcb050d1 100644 --- a/app/database/[database]/[table]/loading.tsx +++ b/app/database/[database]/[table]/loading.tsx @@ -1,10 +1,5 @@ -import { UpdateIcon } from '@radix-ui/react-icons' +import { TableSkeleton } from '@/components/skeleton' export default function Loading() { - return ( -