Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

dropped support for the 'week' timebucket

Blue Mouse38182dccb68a
diff --git a/src/redux/constants/index.ts b/src/redux/constants/index.ts
index 150d8c4b5..746eb22be 100644
--- a/src/redux/constants/index.ts
+++ b/src/redux/constants/index.ts
@@ -18,7 +18,6 @@ export const FORECAST_MAX_MAPPING: {
} = {
hour: 72,
day: 21,
- week: 21,
month: 12,
}
@@ -50,17 +49,17 @@ export const tbPeriodPairs = (t: Function, tbs?: string[] | null, dates?: Date[]
}, {
label: t('project.lastXWeeks', { amount: 4 }),
period: '4w',
- tbs: ['day', 'week'],
+ tbs: ['day'],
countDays: 28,
}, {
label: t('project.lastXMonths', { amount: 3 }),
period: '3M',
- tbs: ['week', 'month'],
+ tbs: ['month'],
countDays: 90,
}, {
label: t('project.lastXMonths', { amount: 12 }),
period: '12M',
- tbs: ['week', 'month'],
+ tbs: ['month'],
countDays: 365,
}, {
label: t('project.lastXMonths', { amount: 24 }),
@@ -123,36 +122,32 @@ export const timeBucketToDays: {
}[] = [
{ lt: 1, tb: ['hour'] }, // 1 days
{ lt: 7, tb: ['hour', 'day'] }, // 7 days
- { lt: 28, tb: ['day', 'week'] }, // 4 weeks
- { lt: 366, tb: ['week', 'month'] }, // 12 months
+ { lt: 28, tb: ['day'] }, // 4 weeks
+ { lt: 366, tb: ['month'] }, // 12 months
{ lt: 732, tb: ['month'] }, // 24 months
]
export const tbsFormatMapper: IStringObject = {
hour: '%I %p',
day: '%d %b',
- week: '%d %b',
month: '%b %Y',
}
export const tbsFormatMapperTooltip: IStringObject = {
hour: '%d %b %I %p',
day: '%d %b',
- week: '%d %b',
month: '%b %Y',
}
export const tbsFormatMapperTooltip24h: IStringObject = {
hour: '%d %b %H:%M',
day: '%d %b',
- week: '%d %b',
month: '%b %Y',
}
export const tbsFormatMapper24h: IStringObject = {
hour: '%H:%M',
day: '%d %b',
- week: '%d %b',
month: '%b %Y',
}