feat: add setting to toggle alphabetical grouping in contacts list

This commit is contained in:
Linus Rath
2026-04-21 23:22:18 +02:00
parent 7d6a3c8c76
commit 76f6149841
4 changed files with 67 additions and 37 deletions
+7
View File
@@ -160,6 +160,9 @@ interface SettingsState {
showBirthdayCalendar: boolean;
birthdayCalendarColor: string;
// Contacts Display
groupContactsByLetter: boolean;
// Email Notifications
emailNotificationsEnabled: boolean;
emailNotificationSound: boolean;
@@ -304,6 +307,9 @@ const DEFAULT_SETTINGS = {
showBirthdayCalendar: false,
birthdayCalendarColor: '#eab308',
// Contacts Display
groupContactsByLetter: true,
// Email Notifications
emailNotificationsEnabled: true,
emailNotificationSound: true,
@@ -459,6 +465,7 @@ export const useSettingsStore = create<SettingsState>()(
showTasksOnCalendar: state.showTasksOnCalendar,
showBirthdayCalendar: state.showBirthdayCalendar,
birthdayCalendarColor: state.birthdayCalendarColor,
groupContactsByLetter: state.groupContactsByLetter,
expandedFilterView: state.expandedFilterView,
showTimeInMonthView: state.showTimeInMonthView,
showWeekNumbers: state.showWeekNumbers,