-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix(err): make assignee select consistent #31185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
remove email fix typos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR refactors the assignee selection and display components in the error tracking feature to create a more consistent and modular implementation.
- Moved and restructured components into a dedicated
components/Assignee/
directory with clear separation of concerns - Implemented a render prop pattern in
AssigneeSelect
for more flexible UI customization - Created specialized components (
ResolvedAssigneeIconDisplay
,ResolvedAssigneeLabelDisplay
) for consistent rendering across different contexts - Added Storybook stories for visual testing of the
AssigneeDisplay
component in various states and sizes - Improved type definitions with more specific types (
UserAssignee
,GroupAssignee
,ResolvedAssignee
) replacing the genericAssigneeDisplayType
12 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
frontend/src/scenes/error-tracking/components/Assignee/AssigneeDisplay.tsx
Show resolved
Hide resolved
frontend/src/scenes/error-tracking/components/Assignee/AssigneeDisplay.tsx
Show resolved
Hide resolved
frontend/src/scenes/error-tracking/components/Assignee/AssigneeDisplay.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/error-tracking/components/Assignee/AssigneeDropdown.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/error-tracking/components/Assignee/AssigneeDropdown.tsx
Show resolved
Hide resolved
frontend/src/scenes/error-tracking/components/Assignee/AssigneeSelect.tsx
Outdated
Show resolved
Hide resolved
Size Change: +554 B (0%) Total Size: 13.6 MB ℹ️ View Unchanged
|
labelClassname?: string | ||
} | ||
|
||
export const ResolvedAssigneeDisplay = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a better name than "resolved" it confused me for a while given we have the concept of "resolved" issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnrichedAssignee ? DetailedAssignee ? FullAssignee ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Known", maybe? Although it might not need an adjective at all - "AssigneeDisplay" seems good enough here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to differentiate the assignee in the issue from the one with full properties but let's keep it simple, I renamed it into Assignee
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Problem
Changes
How did you test this code?