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

Create template for Diagnostics #2736

Merged

Conversation

rak-phillip
Copy link
Contributor

@rak-phillip rak-phillip commented Aug 11, 2022

This creates a simple template for Diagnostics with a few hard-coded examples for testing.

We are missing a few elements that are represented in the design, most notably the mute toggle. I made the decision to leave this out for the time being. My preference is to get ToggleSwitch.vue published in @rancher/components. If this proves to be taking too long, we can simply copy the component over like we do with other Dashboard components.

Diagnostics is accessed by the RD_ENV_DIAGNOSTICS environment variable that functions as a feature flag. You can test the template with:

$ RD_ENV_DIAGNOSTICS=1 npm run dev

Examples

Screen Shot 2022-08-11 at 1 29 50 PM

Screen Shot 2022-08-11 at 1 29 42 PM

contributes to #2656

Signed-off-by: Phillip Rak <[email protected]>
'/PortForwarding',
'/Images',
'/Troubleshooting',
const routes = [
Copy link
Contributor

Choose a reason for hiding this comment

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

I would feel better if this object didn't have the same name as the enclosing method (I know it's allowed, but I think we can be clearer). Maybe routeTable instead of routes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that's a fair assessment, fixed with your suggestion 🙂

Copy link
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

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

Just a trivial request -- looks fine for now

@ericpromislow ericpromislow merged commit dadf0b1 into rancher-sandbox:main Aug 15, 2022
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