[WEB-3523] feat: start of week preference (#7033)

* chore: startOfWeek constant and types updated

* chore: startOfWeek updated in profile store

* chore: StartOfWeekPreference added to profile appearance settings

* chore: calendar layout startOfWeek implementation

* chore: date picker startOfWeek implementation

* chore: gantt layout startOfWeek implementation

* chore: code refactor

* chore: code refactor

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2025-05-12 19:13:39 +05:30 committed by GitHub
parent dc16f2862e
commit 8613a80b16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 251 additions and 36 deletions

View file

@ -1,3 +1,4 @@
import { EStartOfTheWeek } from "@plane/constants";
import { TCalendarLayouts } from "@plane/types";
export const MONTHS_LIST: {
@ -60,35 +61,43 @@ export const DAYS_LIST: {
[dayIndex: number]: {
shortTitle: string;
title: string;
value: EStartOfTheWeek;
};
} = {
1: {
shortTitle: "Sun",
title: "Sunday",
value: EStartOfTheWeek.SUNDAY,
},
2: {
shortTitle: "Mon",
title: "Monday",
value: EStartOfTheWeek.MONDAY,
},
3: {
shortTitle: "Tue",
title: "Tuesday",
value: EStartOfTheWeek.TUESDAY,
},
4: {
shortTitle: "Wed",
title: "Wednesday",
value: EStartOfTheWeek.WEDNESDAY,
},
5: {
shortTitle: "Thu",
title: "Thursday",
value: EStartOfTheWeek.THURSDAY,
},
6: {
shortTitle: "Fri",
title: "Friday",
value: EStartOfTheWeek.FRIDAY,
},
7: {
shortTitle: "Sat",
title: "Saturday",
value: EStartOfTheWeek.SATURDAY,
},
};