[groupBy][Requires cache flush] Add WEEK date granularity (#16099)
Closes https://github.com/twentyhq/core-team-issues/issues/1921 https://github.com/user-attachments/assets/bf400ec1-ce25-4d9e-b875-774168452514
This commit is contained in:
+2
-1
@@ -8,6 +8,7 @@ import {
|
||||
subWeeks,
|
||||
subYears,
|
||||
} from 'date-fns';
|
||||
import { FirstDayOfTheWeek } from 'twenty-shared/types';
|
||||
import { type RelativeDateFilter } from 'twenty-shared/utils';
|
||||
|
||||
import {
|
||||
@@ -468,7 +469,7 @@ describe('Relative Date Filter Utils', () => {
|
||||
const relativeDateFilterValue: RelativeDateFilter = {
|
||||
direction: 'THIS',
|
||||
unit: 'WEEK',
|
||||
firstDayOfTheWeek: 'MONDAY',
|
||||
firstDayOfTheWeek: FirstDayOfTheWeek.MONDAY,
|
||||
};
|
||||
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user