Skip to content

Commit 14ea59d

Browse files
feat(workflow): Add trends to sorting (#23108)
* feat(workflow): Add trends to sorting
1 parent bb1082a commit 14ea59d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sentry/static/sentry/app/views/issueList/sortOptions.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4+
import Feature from 'app/components/acl/feature';
45
import DropdownControl, {DropdownItem} from 'app/components/dropdownControl';
56
import {t} from 'app/locale';
67

@@ -22,6 +23,8 @@ const IssueListSortOptions = ({onSelect, sort}: Props) => {
2223
return t('Events');
2324
case 'user':
2425
return t('Users');
26+
case 'trend':
27+
return t('Relative Change');
2528
case 'date':
2629
default:
2730
return t('Last Seen');
@@ -41,6 +44,7 @@ const IssueListSortOptions = ({onSelect, sort}: Props) => {
4144
{getMenuItem('new')}
4245
{getMenuItem('freq')}
4346
{getMenuItem('user')}
47+
<Feature features={['issue-list-trend-sort']}>{getMenuItem('trend')}</Feature>
4448
</DropdownControl>
4549
);
4650
};

0 commit comments

Comments
 (0)