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: add Cluster Status to global nav in storybook #5674

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

lizzthabet
Copy link
Contributor

This PR adds a cluster button to the global navigation menu that displays information from the cluster API object. Since we're still adding information to the cluster API object, I've only passed the cluster info to the nav in storybook components, so the cluster button won't display for any users yet. When we're ready to have cluster information visible in the dashboard, I'll put up a separate PR.

The best way to test is to run web/storybook.tiltfile and look at Shared > Header Bar > Nav (with and without error) stories. You can manipulate the clusterConnection() method in testdata.tsx to change the cluster API object.

Cluster button and dialog in a healthy state:
Screen Shot 2022-04-07 at 11 00 03 AM

Cluster button and dialog with an error:
Screen Shot 2022-04-07 at 11 00 16 AM

@lizzthabet lizzthabet requested a review from milas April 7, 2022 16:14
@lizzthabet lizzthabet self-assigned this Apr 7, 2022
web/src/ClusterStatusDialog.test.tsx Show resolved Hide resolved
web/src/FloatDialog.tsx Show resolved Hide resolved
web/src/HeaderBar.stories.tsx Show resolved Hide resolved
@lizzthabet lizzthabet merged commit 254a73e into master Apr 11, 2022
@lizzthabet lizzthabet deleted the lizz/feature/display-cluster-info-in-menu branch April 11, 2022 14:39
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.

2 participants