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): Open feedback in drawer #85217

Merged
merged 1 commit into from
Feb 14, 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 our new useDrawer().

This does some refactoring to the feedback onboarding (to make the content usable in both) and exports a useFeedbackOnboarding() hook that is used for the new nav.

@malwilley malwilley requested a review from a team as a code owner February 13, 2025 23:54
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 13, 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.

The refactor moves the useCurrentProjectState() into the content so that it's only used when open. This simplifies things a bit and makes it easier to move to the drawer. The only problem is if there is no currentProject, but I don't see how that could be possible? It used to not open anything in that case and now it opens an empty panel instead.

@malwilley malwilley merged commit 9032b4d into master Feb 14, 2025
43 checks passed
@malwilley malwilley deleted the malwilley/feat/nav-onboarding-feedback branch February 14, 2025 17:00
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.

2 participants