Skip to content

Commit 0158ce5

Browse files
committed
ref(cmdk) revert issues list poc
1 parent dce75f9 commit 0158ce5

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed

static/app/views/issueList/actions/index.tsx

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ import {
1313
addLoadingMessage,
1414
clearIndicators,
1515
} from 'sentry/actionCreators/indicator';
16-
import {CMDKAction, CMDKGroup} from 'sentry/components/commandPalette/ui/cmdk';
17-
import {CommandPaletteSlot} from 'sentry/components/commandPalette/ui/commandPaletteSlot';
1816
import {IssueStreamHeaderLabel} from 'sentry/components/IssueStreamHeaderLabel';
1917
import {Sticky} from 'sentry/components/sticky';
20-
import {IconList} from 'sentry/icons';
2118
import {t, tct, tn} from 'sentry/locale';
2219
import {GroupStore} from 'sentry/stores/groupStore';
2320
import {ProjectsStore} from 'sentry/stores/projectsStore';
2421
import type {PageFilters} from 'sentry/types/core';
25-
import {GroupStatus, GroupSubstatus, type Group} from 'sentry/types/group';
22+
import type {Group} from 'sentry/types/group';
2623
import {defined} from 'sentry/utils';
2724
import {trackAnalytics} from 'sentry/utils/analytics';
2825
import {uniq} from 'sentry/utils/array/uniq';
@@ -105,49 +102,6 @@ function ActionsBarPriority({
105102

106103
return (
107104
<ActionsBarContainer>
108-
<CommandPaletteSlot name="task">
109-
<CMDKGroup display={{label: t('Issues List')}}>
110-
<CMDKAction
111-
display={{
112-
label: pageSelected ? t('Deselect all') : t('Select all'),
113-
icon: <IconList />,
114-
}}
115-
onAction={toggleSelectAllVisible}
116-
/>
117-
{anySelected && (
118-
<CMDKAction
119-
display={{label: t('Resolve selected issues'), icon: <IconList />}}
120-
onAction={() =>
121-
handleUpdate({status: GroupStatus.RESOLVED, statusDetails: {}})
122-
}
123-
/>
124-
)}
125-
{anySelected && (
126-
<CMDKAction
127-
display={{label: t('Archive selected issues'), icon: <IconList />}}
128-
onAction={() =>
129-
handleUpdate({
130-
status: GroupStatus.IGNORED,
131-
statusDetails: {},
132-
substatus: GroupSubstatus.ARCHIVED_UNTIL_ESCALATING,
133-
})
134-
}
135-
/>
136-
)}
137-
{anySelected && multiSelected && (
138-
<CMDKAction
139-
display={{label: t('Merge selected issues'), icon: <IconList />}}
140-
onAction={handleMerge}
141-
/>
142-
)}
143-
{anySelected && (
144-
<CMDKAction
145-
display={{label: t('Delete selected issues')}}
146-
onAction={handleDelete}
147-
/>
148-
)}
149-
</CMDKGroup>
150-
</CommandPaletteSlot>
151105
{!narrowViewport && (
152106
<Checkbox
153107
onChange={toggleSelectAllVisible}

0 commit comments

Comments
 (0)