@@ -46,7 +46,7 @@ import {ISSUE_TAXONOMY_CONFIG} from 'sentry/views/issueList/taxonomies';
4646import { useStarredIssueViews } from 'sentry/views/navigation/secondary/sections/issues/issueViews/useStarredIssueViews' ;
4747import { getUserOrgNavigationConfiguration } from 'sentry/views/settings/organization/userOrgNavigationConfiguration' ;
4848
49- import { CMDKAction , CMDKGroup } from './cmdk' ;
49+ import { CMDKAction } from './cmdk' ;
5050import { CommandPaletteSlot } from './commandPaletteSlot' ;
5151
5252const DSN_ICONS : React . ReactElement [ ] = [
@@ -82,8 +82,8 @@ export function GlobalCommandPaletteActions() {
8282
8383 return (
8484 < CommandPaletteSlot name = "global" >
85- < CMDKGroup display = { { label : t ( 'Go to...' ) } } >
86- < CMDKGroup display = { { label : t ( 'Issues' ) , icon : < IconIssues /> } } >
85+ < CMDKAction display = { { label : t ( 'Go to...' ) } } >
86+ < CMDKAction display = { { label : t ( 'Issues' ) , icon : < IconIssues /> } } >
8787 < CMDKAction display = { { label : t ( 'Feed' ) } } to = { `${ prefix } /issues/` } />
8888 { Object . values ( ISSUE_TAXONOMY_CONFIG ) . map ( config => (
8989 < CMDKAction
@@ -104,9 +104,9 @@ export function GlobalCommandPaletteActions() {
104104 to = { `${ prefix } /issues/views/${ starredView . id } /` }
105105 />
106106 ) ) }
107- </ CMDKGroup >
107+ </ CMDKAction >
108108
109- < CMDKGroup display = { { label : t ( 'Explore' ) , icon : < IconCompass /> } } >
109+ < CMDKAction display = { { label : t ( 'Explore' ) , icon : < IconCompass /> } } >
110110 < CMDKAction display = { { label : t ( 'Traces' ) } } to = { `${ prefix } /explore/traces/` } />
111111 { organization . features . includes ( 'ourlogs-enabled' ) && (
112112 < CMDKAction display = { { label : t ( 'Logs' ) } } to = { `${ prefix } /explore/logs/` } />
@@ -135,26 +135,26 @@ export function GlobalCommandPaletteActions() {
135135 display = { { label : t ( 'All Queries' ) } }
136136 to = { `${ prefix } /explore/saved-queries/` }
137137 />
138- </ CMDKGroup >
138+ </ CMDKAction >
139139
140- < CMDKGroup display = { { label : t ( 'Dashboards' ) , icon : < IconDashboard /> } } >
140+ < CMDKAction display = { { label : t ( 'Dashboards' ) , icon : < IconDashboard /> } } >
141141 < CMDKAction
142142 display = { { label : t ( 'All Dashboards' ) } }
143143 to = { `${ prefix } /dashboards/` }
144144 />
145- < CMDKGroup display = { { label : t ( 'Starred Dashboards' ) , icon : < IconStar /> } } >
145+ < CMDKAction display = { { label : t ( 'Starred Dashboards' ) , icon : < IconStar /> } } >
146146 { starredDashboards . map ( dashboard => (
147147 < CMDKAction
148148 key = { dashboard . id }
149149 display = { { label : dashboard . title , icon : < IconStar /> } }
150150 to = { `${ prefix } /dashboard/${ dashboard . id } /` }
151151 />
152152 ) ) }
153- </ CMDKGroup >
154- </ CMDKGroup >
153+ </ CMDKAction >
154+ </ CMDKAction >
155155
156156 { organization . features . includes ( 'performance-view' ) && (
157- < CMDKGroup display = { { label : t ( 'Insights' ) , icon : < IconGraph type = "area" /> } } >
157+ < CMDKAction display = { { label : t ( 'Insights' ) , icon : < IconGraph type = "area" /> } } >
158158 < CMDKAction
159159 display = { { label : t ( 'Frontend' ) } }
160160 to = { `${ prefix } /insights/${ FRONTEND_LANDING_SUB_PATH } /` }
@@ -186,18 +186,18 @@ export function GlobalCommandPaletteActions() {
186186 display = { { label : t ( 'All Projects' ) } }
187187 to = { `${ prefix } /insights/projects/` }
188188 />
189- </ CMDKGroup >
189+ </ CMDKAction >
190190 ) }
191191
192- < CMDKGroup display = { { label : t ( 'Settings' ) , icon : < IconSettings /> } } >
192+ < CMDKAction display = { { label : t ( 'Settings' ) , icon : < IconSettings /> } } >
193193 { getUserOrgNavigationConfiguration ( ) . flatMap ( section =>
194194 section . items . map ( item => (
195195 < CMDKAction key = { item . path } display = { { label : item . title } } to = { item . path } />
196196 ) )
197197 ) }
198- </ CMDKGroup >
198+ </ CMDKAction >
199199
200- < CMDKGroup display = { { label : t ( 'Project Settings' ) , icon : < IconSettings /> } } >
200+ < CMDKAction display = { { label : t ( 'Project Settings' ) , icon : < IconSettings /> } } >
201201 { projects . map ( project => (
202202 < CMDKAction
203203 key = { project . id }
@@ -208,10 +208,10 @@ export function GlobalCommandPaletteActions() {
208208 to = { `/settings/${ organization . slug } /projects/${ project . slug } /` }
209209 />
210210 ) ) }
211- </ CMDKGroup >
212- </ CMDKGroup >
211+ </ CMDKAction >
212+ </ CMDKAction >
213213
214- < CMDKGroup display = { { label : t ( 'Add' ) } } >
214+ < CMDKAction display = { { label : t ( 'Add' ) } } >
215215 < CMDKAction
216216 display = { { label : t ( 'Create Dashboard' ) , icon : < IconAdd /> } }
217217 keywords = { [ t ( 'add dashboard' ) ] }
@@ -232,10 +232,10 @@ export function GlobalCommandPaletteActions() {
232232 keywords = { [ t ( 'team invite' ) ] }
233233 onAction = { openInviteMembersModal }
234234 />
235- </ CMDKGroup >
235+ </ CMDKAction >
236236
237- < CMDKGroup display = { { label : t ( 'DSN' ) } } keywords = { [ t ( 'client keys' ) ] } >
238- < CMDKGroup
237+ < CMDKAction display = { { label : t ( 'DSN' ) } } keywords = { [ t ( 'client keys' ) ] } >
238+ < CMDKAction
239239 display = { { label : t ( 'Project DSN Keys' ) , icon : < IconLock locked /> } }
240240 keywords = { [ t ( 'client keys' ) , t ( 'dsn keys' ) ] }
241241 >
@@ -250,9 +250,9 @@ export function GlobalCommandPaletteActions() {
250250 to = { `/settings/${ organization . slug } /projects/${ project . slug } /keys/` }
251251 />
252252 ) ) }
253- </ CMDKGroup >
253+ </ CMDKAction >
254254 { hasDsnLookup && (
255- < CMDKGroup
255+ < CMDKAction
256256 display = { {
257257 label : t ( 'Reverse DSN lookup' ) ,
258258 details : t (
@@ -287,11 +287,11 @@ export function GlobalCommandPaletteActions() {
287287 { ( data : CommandPaletteAsyncResult [ ] ) =>
288288 data . map ( ( item , i ) => renderAsyncResult ( item , i ) )
289289 }
290- </ CMDKGroup >
290+ </ CMDKAction >
291291 ) }
292- </ CMDKGroup >
292+ </ CMDKAction >
293293
294- < CMDKGroup display = { { label : t ( 'Help' ) } } >
294+ < CMDKAction display = { { label : t ( 'Help' ) } } >
295295 < CMDKAction
296296 display = { { label : t ( 'Open Documentation' ) , icon : < IconDocs /> } }
297297 onAction = { ( ) => window . open ( 'https://docs.sentry.io' , '_blank' , 'noreferrer' ) }
@@ -314,7 +314,7 @@ export function GlobalCommandPaletteActions() {
314314 window . open ( 'https://sentry.io/changelog/' , '_blank' , 'noreferrer' )
315315 }
316316 />
317- < CMDKGroup
317+ < CMDKAction
318318 display = { { label : t ( 'Search Results' ) } }
319319 resource = { ( query : string ) : CMDKQueryOptions => {
320320 return queryOptions ( {
@@ -353,11 +353,11 @@ export function GlobalCommandPaletteActions() {
353353 { ( data : CommandPaletteAsyncResult [ ] ) =>
354354 data . map ( ( item , i ) => renderAsyncResult ( item , i ) )
355355 }
356- </ CMDKGroup >
357- </ CMDKGroup >
356+ </ CMDKAction >
357+ </ CMDKAction >
358358
359- < CMDKGroup display = { { label : t ( 'Interface' ) } } >
360- < CMDKGroup display = { { label : t ( 'Change Color Theme' ) , icon : < IconSettings /> } } >
359+ < CMDKAction display = { { label : t ( 'Interface' ) } } >
360+ < CMDKAction display = { { label : t ( 'Change Color Theme' ) , icon : < IconSettings /> } } >
361361 < CMDKAction
362362 display = { { label : t ( 'System' ) } }
363363 onAction = { async ( ) => {
@@ -382,8 +382,8 @@ export function GlobalCommandPaletteActions() {
382382 addSuccessMessage ( t ( 'Theme preference saved: Dark' ) ) ;
383383 } }
384384 />
385- </ CMDKGroup >
386- </ CMDKGroup >
385+ </ CMDKAction >
386+ </ CMDKAction >
387387 </ CommandPaletteSlot >
388388 ) ;
389389}
0 commit comments