feat(data-table): add column visibility storage functionality for API keys, channels, and usage logs

This commit is contained in:
CaIon
2026-06-18 16:03:06 +08:00
parent 1aa77e6698
commit 4e8b5e9b13
4 changed files with 98 additions and 1 deletions
@@ -55,6 +55,8 @@ import { useChannels } from './channels-provider'
import { DataTableBulkActions } from './data-table-bulk-actions'
const route = getRouteApi('/_authenticated/channels/')
const CHANNELS_COLUMN_VISIBILITY_STORAGE_KEY =
'channels:column-visibility'
const CHANNEL_SORTABLE_COLUMNS = new Set<ChannelSortBy>([
'id',
@@ -268,6 +270,7 @@ export function ChannelsTable() {
models: false,
tag: false,
},
columnVisibilityStorageKey: CHANNELS_COLUMN_VISIBILITY_STORAGE_KEY,
columnFilters,
pagination,
globalFilter,