@@ -3,13 +3,13 @@ import styled from '@emotion/styled';
3
3
4
4
import ButtonBar from 'sentry/components/buttonBar' ;
5
5
import { Button } from 'sentry/components/core/button' ;
6
- import { DropdownMenu } from 'sentry/components/dropdownMenu' ;
7
6
import EmptyStateWarning from 'sentry/components/emptyStateWarning' ;
8
7
import {
9
8
CardContainer ,
10
9
FeatureFlagDrawer ,
11
10
} from 'sentry/components/events/featureFlags/featureFlagDrawer' ;
12
11
import FeatureFlagInlineCTA from 'sentry/components/events/featureFlags/featureFlagInlineCTA' ;
12
+ import FeatureFlagSettingsButton from 'sentry/components/events/featureFlags/featureFlagSettingsButton' ;
13
13
import FeatureFlagSort from 'sentry/components/events/featureFlags/featureFlagSort' ;
14
14
import {
15
15
FlagControlOptions ,
@@ -20,7 +20,7 @@ import {
20
20
import useDrawer from 'sentry/components/globalDrawer' ;
21
21
import KeyValueData from 'sentry/components/keyValueData' ;
22
22
import { featureFlagOnboardingPlatforms } from 'sentry/data/platformCategories' ;
23
- import { IconMegaphone , IconSearch , IconSettings } from 'sentry/icons' ;
23
+ import { IconMegaphone , IconSearch } from 'sentry/icons' ;
24
24
import { t , tn } from 'sentry/locale' ;
25
25
import type { Event , FeatureFlag } from 'sentry/types/event' ;
26
26
import { type Group , IssueCategory } from 'sentry/types/group' ;
@@ -229,54 +229,24 @@ export function EventFeatureFlagList({
229
229
const actions = (
230
230
< ButtonBar gap = { 1 } >
231
231
{ feedbackButton }
232
- < Fragment >
233
- < DropdownMenu
234
- position = "bottom-end"
235
- triggerProps = { {
236
- showChevron : false ,
237
- icon : < IconSettings /> ,
238
- 'aria-label' : t ( 'Feature Flag Settings' ) ,
239
- } }
240
- size = "xs"
241
- items = { [
242
- {
243
- key : 'settings' ,
244
- label : t ( 'Set Up Change Tracking' ) ,
245
- details : (
246
- < ChangeTrackingDetails >
247
- { t (
248
- 'Listen for additions, removals, and modifications to your feature flags.'
249
- ) }
250
- </ ChangeTrackingDetails >
251
- ) ,
252
- to : `/settings/${ organization . slug } /feature-flags/change-tracking/` ,
253
- } ,
254
- {
255
- key : 'docs' ,
256
- label : t ( 'Read the Docs' ) ,
257
- externalHref :
258
- 'https://docs.sentry.io/product/issues/issue-details/feature-flags/' ,
259
- } ,
260
- ] }
261
- />
262
- { hasFlags && (
263
- < Fragment >
264
- < Button
265
- aria-label = { t ( 'Open Feature Flag Search' ) }
266
- icon = { < IconSearch size = "xs" /> }
267
- size = "xs"
268
- title = { t ( 'Open Search' ) }
269
- onClick = { ( ) => onViewAllFlags ( FlagControlOptions . SEARCH ) }
270
- />
271
- < FeatureFlagSort
272
- orderBy = { orderBy }
273
- sortBy = { sortBy }
274
- setSortBy = { setSortBy }
275
- setOrderBy = { setOrderBy }
276
- />
277
- </ Fragment >
278
- ) }
279
- </ Fragment >
232
+ < FeatureFlagSettingsButton orgSlug = { organization . slug } />
233
+ { hasFlags && (
234
+ < Fragment >
235
+ < Button
236
+ aria-label = { t ( 'Open Feature Flag Search' ) }
237
+ icon = { < IconSearch size = "xs" /> }
238
+ size = "xs"
239
+ title = { t ( 'Open Search' ) }
240
+ onClick = { ( ) => onViewAllFlags ( FlagControlOptions . SEARCH ) }
241
+ />
242
+ < FeatureFlagSort
243
+ orderBy = { orderBy }
244
+ sortBy = { sortBy }
245
+ setSortBy = { setSortBy }
246
+ setOrderBy = { setOrderBy }
247
+ />
248
+ </ Fragment >
249
+ ) }
280
250
</ ButtonBar >
281
251
) ;
282
252
@@ -332,11 +302,6 @@ export function EventFeatureFlagList({
332
302
) ;
333
303
}
334
304
335
- const ChangeTrackingDetails = styled ( 'div' ) `
336
- max-width: 200px;
337
- white-space: normal;
338
- ` ;
339
-
340
305
const StyledEmptyStateWarning = styled ( EmptyStateWarning ) `
341
306
border: ${ p => p . theme . border } solid 1px;
342
307
border-radius: ${ p => p . theme . borderRadius } ;
0 commit comments