Skip to content

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

Merged
merged 12 commits into from
Apr 17, 2025
Merged

fix(err): make assignee select consistent #31185

merged 12 commits into from
Apr 17, 2025

Conversation

hpouillot
Copy link
Contributor

Problem

image

Changes

image
  • Make assignee display consistent with other infos
  • Refactor assignee select to be modular

How did you test this code?

  • Using storybook

remove email

fix typos
@hpouillot hpouillot requested review from a team, daibhin and oliverb123 April 14, 2025 13:22
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 generic AssigneeDisplayType

12 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Apr 14, 2025

Size Change: +554 B (0%)

Total Size: 13.6 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 13.6 MB +554 B (0%)

compressed-size-action

labelClassname?: string
}

export const ResolvedAssigneeDisplay = ({
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnrichedAssignee ? DetailedAssignee ? FullAssignee ?

Copy link
Contributor

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?

Copy link
Contributor Author

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

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 5)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

3 snapshot changes in total. 0 added, 3 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@hpouillot hpouillot merged commit 865b875 into master Apr 17, 2025
93 checks passed
@hpouillot hpouillot deleted the err/assignee-fix branch April 17, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants