Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(dashboard): enable hour interval for 7d

Carl-Gerhard Lindesvärddd19bffdb298
diff --git a/packages/constants/index.ts b/packages/constants/index.ts
index 73ee9f67e..1e302075c 100644
--- a/packages/constants/index.ts
+++ b/packages/constants/index.ts
@@ -81,6 +81,7 @@ export const chartTypes = {
area: 'Area',
map: 'Map',
funnel: 'Funnel',
+ retention: 'Retention',
} as const;
export const lineTypes = {
@@ -161,7 +162,9 @@ export function isMinuteIntervalEnabledByRange(
}
export function isHourIntervalEnabledByRange(range: keyof typeof timeWindows) {
- return isMinuteIntervalEnabledByRange(range) || range === 'today';
+ return (
+ isMinuteIntervalEnabledByRange(range) || range === 'today' || range === '7d'
+ );
}
export function getDefaultIntervalByRange(