File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 > } />
You can’t perform that action at this time.
0 commit comments