feat: insights filter refactoring (#18167)

* Reapply "feat: add text & numeric filters to insights routing responses (#18016)"

This reverts commit 49070b96ae.

* support SINGLE_SELECT

* fix type error

* put back ts-expect-error

* remove playground

---------

Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
Eunjae Leeandsean-brydon authored and GitHub committed 2024-12-16 13:47:28 +00:00
1 parent da2c57c302
commit 79d488faca
38 files changed
+1383 -512

No files matched your search

+3 -1
View File
@@ -1,12 +1,14 @@
import "@tanstack/react-table";
import type { ColumnFilterMeta } from "@calcom/features/data-table";
declare module "@tanstack/table-core" {
interface ColumnMeta<TData extends RowData, TValue> {
sticky?: {
position: "left" | "right";
gap?: number;
};
filterType?: "select" | "text";
filter?: ColumnFilterMeta;
// `autoWidth` can make the column size dynamic,
// allowing each row to have a different width based on its content.