chore: Fix circular dependency in tanstack-table.d.ts (#25411)

* chore: Fix circular dependency in tanstack-table.d.ts

* fix: Re-export TextFilterOperator

* Unable to export non-type values from @calcom/types

* Refactor data-table types in a way that ensures type-safety as before

* Add FilterPopover and further fixups

* Fix further type errors missed earlier

* More hidden type errors

* Type error in useFilterValue
This commit is contained in:
Alex van Andel authored and GitHub committed 2025-11-26 14:05:55 -03:00
1 parent f3d0475840
commit 1ab4b9dfab
17 files changed
+140 -110

No files matched your search

+3 -2
View File
@@ -10,6 +10,7 @@ import {
ColumnFilterType,
type FilterableColumn,
} from "@calcom/features/data-table";
import type { FilterType } from "@calcom/types/data-table";
import { useDataTable } from "@calcom/features/data-table/hooks/useDataTable";
import { useSegments } from "@calcom/features/data-table/hooks/useSegments";
import {
@@ -53,13 +54,13 @@ export default function InsightsPage({ timeZone }: { timeZone: string }) {
);
}
const createdAtColumn: Extract<FilterableColumn, { type: ColumnFilterType.DATE_RANGE }> = {
const createdAtColumn: Extract<FilterableColumn, { type: Extract<FilterType, "dr"> }> = {
id: "createdAt",
title: "createdAt",
type: ColumnFilterType.DATE_RANGE,
};
const startTimeColumn: Extract<FilterableColumn, { type: ColumnFilterType.DATE_RANGE }> = {
const startTimeColumn: Extract<FilterableColumn, { type: Extract<FilterType, "dr"> }> = {
id: "startTime",
title: "startTime",
type: ColumnFilterType.DATE_RANGE,