From dcc16b55ce3df5c20abe6ae10f8c0351aca2543b Mon Sep 17 00:00:00 2001 From: Mike Burgess Date: Fri, 3 Jan 2025 13:25:52 +0000 Subject: [PATCH] Update default date_range input to be 7 days. Closes #641. --- ui/dashboard/src/components/DashboardList/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/dashboard/src/components/DashboardList/index.tsx b/ui/dashboard/src/components/DashboardList/index.tsx index 05aaa385..e40f3a68 100644 --- a/ui/dashboard/src/components/DashboardList/index.tsx +++ b/ui/dashboard/src/components/DashboardList/index.tsx @@ -75,9 +75,9 @@ const TitlePart = ({ part, searchPathPrefix }) => { urlSearch.set( "input.detection_range", JSON.stringify({ - from: dayjs().subtract(1, "day").utc(), + from: dayjs().subtract(7, "day").utc(), to: null, - relative: "1d", + relative: "7d", }), ); } @@ -106,9 +106,9 @@ const BenchmarkTitle = ({ benchmark, searchValue, searchPathPrefix }) => { urlSearch.set( "input.detection_range", JSON.stringify({ - from: dayjs().subtract(1, "day").utc(), + from: dayjs().subtract(7, "day").utc(), to: null, - relative: "1d", + relative: "7d", }), ); }