Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
feat: introduce WebsiteDateFilter for date range selection and DataGrid for paginated data display.
Yash0505ef137853
diff --git a/src/components/common/DataGrid.tsx b/src/components/common/DataGrid.tsxindex 7e07b8dcd..7169a278f 100644--- a/src/components/common/DataGrid.tsx+++ b/src/components/common/DataGrid.tsx@@ -56,7 +56,7 @@ export function DataGrid({(page: number) => {router.push(updateParams({ search, page }));},- [search],+ [search, updateParams],);const child = data ? (typeof children === 'function' ? children(data) : children) : null;diff --git a/src/components/input/WebsiteDateFilter.tsx b/src/components/input/WebsiteDateFilter.tsxindex 18b4f13be..f5da8c8e2 100644--- a/src/components/input/WebsiteDateFilter.tsx+++ b/src/components/input/WebsiteDateFilter.tsx@@ -38,10 +38,11 @@ export function WebsiteDateFilter({updateParams({date: `${getDateRangeValue(websiteDateRange.startDate, websiteDateRange.endDate)}:all`,offset: undefined,+ page: 1,}),);} else {- router.push(updateParams({ date, offset: undefined }));+ router.push(updateParams({ date, offset: undefined, page: 1 }));}};