Skip to content

Commit

Permalink
Update default date_range input to be 7 days. Closes #641.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBurgess committed Jan 3, 2025
1 parent 8d3bd3c commit dcc16b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/dashboard/src/components/DashboardList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
);
}
Expand Down Expand Up @@ -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",
}),
);
}
Expand Down

0 comments on commit dcc16b5

Please sign in to comment.