@@ -7,6 +7,7 @@ import {Button} from 'sentry/components/core/button';
7
7
import { InputGroup } from 'sentry/components/core/input/inputGroup' ;
8
8
import { ExportQueryType , useDataExport } from 'sentry/components/dataExport' ;
9
9
import { DropdownMenu } from 'sentry/components/dropdownMenu' ;
10
+ import EmptyStateWarning from 'sentry/components/emptyStateWarning' ;
10
11
import {
11
12
CrumbContainer ,
12
13
EventDrawerBody ,
@@ -260,21 +261,27 @@ export function GroupTagsDrawer({
260
261
{ headerActions }
261
262
</ EventNavigator >
262
263
< EventDrawerBody >
263
- { tagKey ? (
264
- < TagDetailsDrawerContent group = { group } />
265
- ) : tab === FEATURE_FLAGS_TAB ? (
264
+ { tab === FEATURE_FLAGS_TAB ? (
266
265
< GroupFeatureFlagsDrawerContent
267
266
group = { group }
268
267
environments = { environments }
269
268
search = { search }
270
269
/>
270
+ ) : tagKey ? (
271
+ < TagDetailsDrawerContent group = { group } />
271
272
) : isPending || isHighlightsPending ? (
272
273
< LoadingIndicator />
273
274
) : isError ? (
274
275
< LoadingError
275
276
message = { t ( 'There was an error loading issue tags.' ) }
276
277
onRetry = { refetch }
277
278
/>
279
+ ) : displayTags . length === 0 ? (
280
+ < StyledEmptyStateWarning withIcon >
281
+ { data . length === 0
282
+ ? t ( 'No tags were found for this issue' )
283
+ : t ( 'No tags were found for this search' ) }
284
+ </ StyledEmptyStateWarning >
278
285
) : (
279
286
< Wrapper >
280
287
< Container >
@@ -293,13 +300,13 @@ export function GroupTagsDrawer({
293
300
) ;
294
301
}
295
302
296
- const Wrapper = styled ( 'div' ) `
303
+ export const Wrapper = styled ( 'div' ) `
297
304
display: flex;
298
305
flex-direction: column;
299
306
gap: ${ space ( 2 ) } ;
300
307
` ;
301
308
302
- const Container = styled ( 'div' ) `
309
+ export const Container = styled ( 'div' ) `
303
310
display: grid;
304
311
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
305
312
gap: ${ space ( 2 ) } ;
@@ -312,3 +319,12 @@ const Header = styled('h3')`
312
319
font-weight: ${ p => p . theme . fontWeightBold } ;
313
320
margin: 0;
314
321
` ;
322
+
323
+ export const StyledEmptyStateWarning = styled ( EmptyStateWarning ) `
324
+ border: ${ p => p . theme . border } solid 1px;
325
+ border-radius: ${ p => p . theme . borderRadius } ;
326
+ display: flex;
327
+ flex-direction: column;
328
+ align-items: center;
329
+ font-size: ${ p => p . theme . fontSizeLarge } ;
330
+ ` ;
0 commit comments