Skip to content

Commit ef5bbfd

Browse files
authored
fix(ui): Display the full assignee name (#89504)
Display the full label for the actor in issue details ![image](https://github.com/user-attachments/assets/8698c522-0027-4218-8d11-4a7407013fe7)
1 parent 5f70633 commit ef5bbfd

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

static/app/components/group/assigneeSelector.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface AssigneeSelectorProps {
2323
additionalMenuFooterItems?: React.ReactNode;
2424
memberList?: User[];
2525
owners?: Array<Omit<SuggestedAssignee, 'assignee'>>;
26+
showLabel?: boolean;
2627
}
2728

2829
export type OnAssignCallback = (
@@ -79,6 +80,7 @@ export function AssigneeSelector({
7980
handleAssigneeChange,
8081
owners,
8182
additionalMenuFooterItems,
83+
showLabel = false,
8284
}: AssigneeSelectorProps) {
8385
const theme = useTheme();
8486

@@ -108,6 +110,7 @@ export function AssigneeSelector({
108110
})?.type
109111
}
110112
loading={assigneeLoading}
113+
showLabel={showLabel}
111114
chevronDirection={isOpen ? 'up' : 'down'}
112115
/>
113116
</StyledDropdownButton>

static/app/views/issueDetails/streamline/header/assigneeSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export function GroupHeaderAssigneeSelector({
6464
owners={owners}
6565
assigneeLoading={assigneeLoading}
6666
handleAssigneeChange={handleAssigneeChange}
67+
showLabel
6768
additionalMenuFooterItems={
6869
<Button
6970
type="button"

static/app/views/issueDetails/streamline/header/header.spec.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {ActorFixture} from 'sentry-fixture/actor';
12
import {GroupFixture} from 'sentry-fixture/group';
23
import {OrganizationFixture} from 'sentry-fixture/organization';
34
import {ProjectFixture} from 'sentry-fixture/project';
@@ -29,7 +30,15 @@ describe('StreamlinedGroupHeader', () => {
2930
platform: 'javascript',
3031
teams: [TeamFixture()],
3132
});
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+
});
3342
const router = RouterFixture();
3443

3544
describe('JS Project Error Issue', () => {
@@ -94,6 +103,7 @@ describe('StreamlinedGroupHeader', () => {
94103
expect(
95104
screen.getByRole('button', {name: 'Modify issue assignee'})
96105
).toBeInTheDocument();
106+
expect(screen.getByText('Leander')).toBeInTheDocument();
97107
expect(
98108
screen.getByRole('button', {name: 'Manage issue experience'})
99109
).toBeInTheDocument();

0 commit comments

Comments
 (0)