chore: Reduce insights range to 7 days (#13991)

This commit is contained in:
Keith Williams
2024-03-06 13:02:02 +00:00
committed by GitHub
parent cc1c3b210a
commit 157f633ef2
@@ -58,9 +58,9 @@ export function FiltersProvider({ children }: { children: React.ReactNode }) {
const [configFilters, setConfigFilters] = useState<FilterContextType["filter"]>({
dateRange: [
startTimeParsed ? dayjs(startTimeParsed) : dayjs().subtract(1, "month"),
startTimeParsed ? dayjs(startTimeParsed) : dayjs().subtract(1, "week"),
endTimeParsed ? dayjs(endTimeParsed) : dayjs(),
"t",
"w",
],
selectedTimeView: "week",
selectedUserId: userIdParsed || null,
@@ -150,7 +150,7 @@ export function FiltersProvider({ children }: { children: React.ReactNode }) {
selectedTimeView: "week",
selectedUserId: userId,
isAll: !!initialConfig?.isAll,
dateRange: [dayjs().subtract(1, "month"), dayjs(), "t"],
dateRange: [dayjs().subtract(1, "week"), dayjs(), "w"],
initialConfig,
});