Make websiteId optional in filter controls to enable dashboard filtering

Allows BoardControls to render filter bar and date picker without
requiring a websiteId. Website-specific features (segments, cohorts,
filter value autocomplete, save segment) are gracefully hidden when
no websiteId is available.
This commit is contained in:
Mike Cao committed 2026-03-04 21:30:05 -08:00
1 parent d4a995d9cc
commit c921231bb9
9 files changed
+11 -17

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ import { X } from '@/components/icons';
import { isSearchOperator } from '@/lib/params';
export interface FilterRecordProps {
websiteId: string;
websiteId?: string;
type: string;
startDate: Date;
endDate: Date;