Skip to content

Commit 80ab525

Browse files
Group settings sidebar by context
Splits the settings sidebar into General, Context, and AI sections with calendar, contacts, and templates grouped together.
1 parent 204a9d0 commit 80ab525

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

apps/desktop/src/sidebar/settings.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ describe("SettingsNav", () => {
8989
"Account",
9090
"Notifications",
9191
"Permissions",
92+
"Context",
9293
"Calendar",
9394
"Contacts",
95+
"Templates",
9496
"AI",
9597
"Transcription",
9698
"Intelligence",
97-
"Templates",
99+
"Personalization",
98100
].forEach((label) => {
99101
expect(screen.getByText(label)).toBeTruthy();
100102
});

apps/desktop/src/sidebar/settings.tsx

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,26 @@ export function SettingsNav() {
7373
{ id: "notifications", label: t`Notifications`, icon: BellIcon },
7474
],
7575
},
76+
{
77+
label: t`Context`,
78+
items: [
79+
{
80+
action: "open-calendar",
81+
label: t`Calendar`,
82+
icon: CalendarIcon,
83+
},
84+
{
85+
action: "open-contacts",
86+
label: t`Contacts`,
87+
icon: UsersIcon,
88+
},
89+
{
90+
action: "open-templates",
91+
label: t`Templates`,
92+
icon: BookText,
93+
},
94+
],
95+
},
7696
{
7797
label: "AI",
7898
items: [
@@ -83,11 +103,6 @@ export function SettingsNav() {
83103
label: t`Personalization`,
84104
icon: SlidersHorizontalIcon,
85105
},
86-
{
87-
action: "open-templates",
88-
label: t`Templates`,
89-
icon: BookText,
90-
},
91106
],
92107
},
93108
];
@@ -100,17 +115,6 @@ export function SettingsNav() {
100115
});
101116
}
102117

103-
groups[0].items.push({
104-
action: "open-calendar",
105-
label: t`Calendar`,
106-
icon: CalendarIcon,
107-
});
108-
groups[0].items.push({
109-
action: "open-contacts",
110-
label: t`Contacts`,
111-
icon: UsersIcon,
112-
});
113-
114118
return (
115119
<div className="flex h-full w-full flex-col overflow-hidden">
116120
<CustomSidebarHeader title={<Trans>Settings</Trans>} />

0 commit comments

Comments
 (0)