Skip to content
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

feat(nav): Use drawer for performance onboarding #85294

Merged
merged 5 commits into from
Feb 18, 2025

Conversation

malwilley
Copy link
Member

Ref #84018

The old navigation sidebar has been the component responsible for displaying the onboarding panels. Since we are moving to a new nav component, I'm going to be moving all the existing onboarding panels over to useDrawer().

@malwilley malwilley requested review from a team February 14, 2025 22:45
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 14, 2025
);
}

function SidebarContent() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Did some refactoring here so that I could use this component in the old and new interfaces. The only difference is that the new logic only checks isActive and hasProjectAccess before rendering the onboarding panel. I don't know how it would be possible to show the onboarding panel in cases where the user has no supported projects, but if so there would be slightly different behavior.

@malwilley malwilley enabled auto-merge (squash) February 18, 2025 18:56
@malwilley malwilley merged commit cc0eba3 into master Feb 18, 2025
41 checks passed
@malwilley malwilley deleted the malwilley/feat/nav-perf-onboarding branch February 18, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants