File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ interface AssigneeSelectorProps {
23
23
additionalMenuFooterItems ?: React . ReactNode ;
24
24
memberList ?: User [ ] ;
25
25
owners ?: Array < Omit < SuggestedAssignee , 'assignee' > > ;
26
+ showLabel ?: boolean ;
26
27
}
27
28
28
29
export type OnAssignCallback = (
@@ -79,6 +80,7 @@ export function AssigneeSelector({
79
80
handleAssigneeChange,
80
81
owners,
81
82
additionalMenuFooterItems,
83
+ showLabel = false ,
82
84
} : AssigneeSelectorProps ) {
83
85
const theme = useTheme ( ) ;
84
86
@@ -108,6 +110,7 @@ export function AssigneeSelector({
108
110
} ) ?. type
109
111
}
110
112
loading = { assigneeLoading }
113
+ showLabel = { showLabel }
111
114
chevronDirection = { isOpen ? 'up' : 'down' }
112
115
/>
113
116
</ StyledDropdownButton >
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export function GroupHeaderAssigneeSelector({
64
64
owners = { owners }
65
65
assigneeLoading = { assigneeLoading }
66
66
handleAssigneeChange = { handleAssigneeChange }
67
+ showLabel
67
68
additionalMenuFooterItems = {
68
69
< Button
69
70
type = "button"
Original file line number Diff line number Diff line change
1
+ import { ActorFixture } from 'sentry-fixture/actor' ;
1
2
import { GroupFixture } from 'sentry-fixture/group' ;
2
3
import { OrganizationFixture } from 'sentry-fixture/organization' ;
3
4
import { ProjectFixture } from 'sentry-fixture/project' ;
@@ -29,7 +30,15 @@ describe('StreamlinedGroupHeader', () => {
29
30
platform : 'javascript' ,
30
31
teams : [ TeamFixture ( ) ] ,
31
32
} ) ;
32
- const group = GroupFixture ( { issueCategory : IssueCategory . ERROR , isUnhandled : true } ) ;
33
+ const group = GroupFixture ( {
34
+ issueCategory : IssueCategory . ERROR ,
35
+ isUnhandled : true ,
36
+ assignedTo : ActorFixture ( {
37
+ id : '101' ,
38
+
39
+ name : 'Leander' ,
40
+ } ) ,
41
+ } ) ;
33
42
const router = RouterFixture ( ) ;
34
43
35
44
describe ( 'JS Project Error Issue' , ( ) => {
@@ -94,6 +103,7 @@ describe('StreamlinedGroupHeader', () => {
94
103
expect (
95
104
screen . getByRole ( 'button' , { name : 'Modify issue assignee' } )
96
105
) . toBeInTheDocument ( ) ;
106
+ expect ( screen . getByText ( 'Leander' ) ) . toBeInTheDocument ( ) ;
97
107
expect (
98
108
screen . getByRole ( 'button' , { name : 'Manage issue experience' } )
99
109
) . toBeInTheDocument ( ) ;
You can’t perform that action at this time.
0 commit comments