Skip to content

Commit 4932208

Browse files
committed
fix(navigation): flatten hidden sections in command palette and add AI Evals link
1 parent 1edd915 commit 4932208

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

app/composables/useNavigation.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,24 +174,26 @@ const _useNavigation = () => {
174174
track('Ask AI Opened', { source: 'search-links' })
175175
nuxtApp.$kapa?.openModal()
176176
}
177-
}, ...headerLinks.value.map((link) => {
178-
// Remove `/docs` and `/enterprise` links from command palette
177+
}, ...headerLinks.value.flatMap((link) => {
179178
if (link.search === false) {
180-
return {
181-
label: link.label,
182-
icon: link.icon,
183-
children: link.children
184-
}
179+
return (link.children || []).map(child => ({
180+
...child,
181+
label: `${link.label} > ${child.label}`
182+
}))
185183
}
186-
return link
187-
}).filter(Boolean), {
184+
return [link]
185+
}), {
188186
label: 'Team',
189187
icon: 'i-lucide-users',
190188
to: '/team'
191189
}, {
192190
label: 'Design Kit',
193191
icon: 'i-lucide-palette',
194192
to: '/design-kit'
193+
}, {
194+
label: 'AI Evals',
195+
icon: 'i-lucide-brain',
196+
to: '/evals'
195197
}, {
196198
label: 'Newsletter',
197199
icon: 'i-lucide-mail',

0 commit comments

Comments
 (0)