feat: support Filter Segment in other pages (#20461)

* feat: support Filter Segment in other pages

* minor changes to the behaviors

* remove comment

* fix type error

* fix e2e test
This commit is contained in:
Eunjae Lee authored and GitHub committed 2025-04-02 10:36:42 +02:00
1 parent 1fb778ae78
commit 4cd8dbbab4
13 files changed
+107 -48

No files matched your search

@@ -19,6 +19,7 @@ import {
useFilterValue,
ZDateRangeFilterValue,
DataTableFilters,
DataTableSegment,
} from "@calcom/features/data-table";
import ServerTrans from "@calcom/lib/components/ServerTrans";
import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";
@@ -345,12 +346,17 @@ function OutOfOfficeEntriesListContent() {
totalRowCount={totalRowCount}
tableContainerRef={tableContainerRef}
paginationMode="infinite"
ToolbarLeft={<DataTableToolbar.SearchBar table={table} onSearch={(value) => setSearchTerm(value)} />}
ToolbarLeft={
<>
<DataTableToolbar.SearchBar table={table} onSearch={(value) => setSearchTerm(value)} />
<DataTableFilters.FilterBar table={table} />
</>
}
ToolbarRight={
<>
<DataTableFilters.AddFilterButton table={table} />
<DataTableFilters.ActiveFilters table={table} />
<DataTableFilters.ClearFiltersButton />
<DataTableSegment.SaveButton />
<DataTableSegment.Select />
</>
}
EmptyView={