Skip to content

Conversation

@scefali
Copy link
Contributor

@scefali scefali commented Oct 20, 2021

This PR adds a hook called feature-disabled:project-selector-all-projects which 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 from View All Projects to Select All Projects to make it more clear what it does.

Screen Shot 2021-10-20 at 12 05 22 PM

Logic about when to show My Projects and All Projects is a bit confusing but the changes I have made should not impact when we do.

Getsentry PR: https://github.com/getsentry/getsentry/pull/6486

onUpdate={this.handleUpdateProjects}
multi={
!disableMultipleProjectSelection &&
this.hasMultipleProjectSelection()
Copy link
Contributor Author

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

@scefali scefali marked this pull request as ready for review October 20, 2021 19:15
@scefali scefali requested a review from a team as a code owner October 20, 2021 19:15
@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2021

size-limit report

Path Base Size (eb3b29b) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.74 KB 52.74 KB -0.01% 🔽
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.89 KB 70.89 KB 0%

customDisabledRender = hooks[0];
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

was this intentional?

Copy link
Contributor Author

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.

@scefali scefali merged commit fc8d21c into master Oct 26, 2021
@scefali scefali deleted the feat/project-selector-hook branch October 26, 2021 20:13
@scefali scefali restored the feat/project-selector-hook branch October 26, 2021 20:25
scefali pushed a commit that referenced this pull request Oct 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2021
@mgaeta mgaeta deleted the feat/project-selector-hook branch March 18, 2022 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants