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

web: simplify how the global nav manages dialog display state #5637

Merged
merged 1 commit into from Mar 29, 2022

Conversation

lizzthabet
Copy link
Contributor

This PR refactors how the GlobalNav manages the display state for menu item dialogs, and it'll simplify the code I'll write to add a cluster connection menu item.

  • It now uses a single openDialog state, instead of tracking separate (mutually exclusive) state for each dialog.
  • It also removes references to analytics close events, since there wasn't a code path that would log those events. (I think it's sufficient for our analytics to continue to log click events on the menu buttons, and separate close events don't add additional information, but chime in if I'm wrong!)

@lizzthabet lizzthabet requested a review from milas March 29, 2022 14:36
@lizzthabet lizzthabet self-assigned this Mar 29, 2022
Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

@lizzthabet lizzthabet merged commit f5db405 into master Mar 29, 2022
@lizzthabet lizzthabet deleted the lizz/chore/refactor-global-nav branch March 29, 2022 17:25
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.

None yet

2 participants