-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(ui): project selector hook #29447
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
| onUpdate={this.handleUpdateProjects} | ||
| multi={ | ||
| !disableMultipleProjectSelection && | ||
| this.hasMultipleProjectSelection() |
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.
Since we need to render the new hook project-selector-all-projects:customization even if the feature is unavailable, we need to push the logic down into the child component
size-limit report
|
| customDisabledRender = hooks[0]; | ||
| } | ||
| } | ||
|
|
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.
was this intentional?
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.
@davidenwang I did some stuff to this file then reverted it. Too lazy to revert this whitespace change lol.
This PR adds a hook called
feature-disabled:project-selector-all-projectswhich allows getsentry to customize a disabled view we show in the global header for showing the button which allows the user to select all/their projects. Note we also changed the text fromView All ProjectstoSelect All Projectsto make it more clear what it does.Logic about when to show
My ProjectsandAll Projectsis a bit confusing but the changes I have made should not impact when we do.Getsentry PR: https://github.com/getsentry/getsentry/pull/6486