Skip to content

Commit 3945574

Browse files
authored
feat(workflow): Always show issue list headers (WOR-542) (getsentry#23105)
1 parent 7856296 commit 3945574

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

src/sentry/static/sentry/app/views/issueList/actions/actionSet.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ const Wrapper = styled('div')<{hasInbox?: boolean}>`
246246
gap: ${space(0.5)};
247247
grid-auto-flow: column;
248248
justify-content: flex-start;
249+
white-space: nowrap;
249250
250251
${p =>
251252
p.hasInbox &&

src/sentry/static/sentry/app/views/issueList/actions/headers.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ type Props = {
1717
onSelectStatsPeriod: (statsPeriod: string) => void;
1818
isReprocessingQuery: boolean;
1919
hasInbox?: boolean;
20+
anySelected?: boolean;
2021
};
2122

2223
function Headers({
24+
anySelected,
2325
selection,
2426
statsPeriod,
2527
pageCount,
@@ -31,7 +33,7 @@ function Headers({
3133
}: Props) {
3234
return (
3335
<React.Fragment>
34-
{hasInbox && (
36+
{hasInbox && !anySelected && (
3537
<ActionSetPlaceholder>
3638
{/* total includes its own space */}
3739
{tct('Select [count] of [total]', {
@@ -55,7 +57,9 @@ function Headers({
5557
</React.Fragment>
5658
) : (
5759
<React.Fragment>
58-
<GraphHeaderWrapper className="hidden-xs hidden-sm">
60+
<GraphHeaderWrapper
61+
className={`hidden-xs hidden-sm ${hasInbox ? 'hidden-md' : ''}`}
62+
>
5963
<GraphHeader>
6064
<StyledToolbarHeader>{t('Graph:')}</StyledToolbarHeader>
6165
<GraphToggle

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

+11-12
Original file line numberDiff line numberDiff line change
@@ -284,18 +284,17 @@ class IssueListActions extends React.Component<Props, State> {
284284
onUpdate={this.handleUpdate}
285285
/>
286286
)}
287-
{(!anySelected || !hasInbox) && (
288-
<Headers
289-
onSelectStatsPeriod={this.handleSelectStatsPeriod}
290-
selection={selection}
291-
statsPeriod={statsPeriod}
292-
pageCount={pageCount}
293-
queryCount={queryCount}
294-
queryMaxCount={queryMaxCount}
295-
hasInbox={hasInbox}
296-
isReprocessingQuery={displayReprocessingActions}
297-
/>
298-
)}
287+
<Headers
288+
onSelectStatsPeriod={this.handleSelectStatsPeriod}
289+
anySelected={anySelected}
290+
selection={selection}
291+
statsPeriod={statsPeriod}
292+
pageCount={pageCount}
293+
queryCount={queryCount}
294+
queryMaxCount={queryMaxCount}
295+
hasInbox={hasInbox}
296+
isReprocessingQuery={displayReprocessingActions}
297+
/>
299298
</StyledFlex>
300299
{!allResultsVisible && pageSelected && (
301300
<SelectAllNotice>

0 commit comments

Comments
 (0)