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(react-console): accept random children in AccessConsole component #6374

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

KKoukiou
Copy link
Collaborator

@KKoukiou KKoukiou commented Sep 29, 2021

So far we were supporting children of three types,
SerialConsole, DesktopViewer and VncConsole.

This component is consumed by cockpit machines product and it's
used for exposing consoles of Virtual Machines.
A Virtual Machines however can have multiple consoles of one type; for example 2
different serial consoles, something which was not supported until this
commit.

For this reason we need to extend this component to accept also custom
children apart from a single from each from the predefined types.

Also start respecting the order of the children to display the options
in the AccessConsoles dropdown.

@patternfly-build
Copy link
Contributor

patternfly-build commented Sep 29, 2021

PF4 preview: https://patternfly-react-pr-6374.surge.sh

KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this pull request Sep 29, 2021
KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this pull request Sep 29, 2021
Copy link
Contributor

@pcbailey pcbailey left a comment

Choose a reason for hiding this comment

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

I had one question, but other than that it looks good to me.

So far we were supporting children of three types,
SerialConsole, DesktopViewer and VncConsole.

This component is consumed by `cockpit machines` product and it's
used for exposing consoles of Virtual Machines.
A Virtual Machines however can have multiple consoles of one type; for example 2
different serial consoles, something which was not supported until this
commit.

For this reason we need to extend this component to accept also custom
children apart from a single from each from the predefined types.

Also start respecting the order of the children to display the options
in the AccessConsoles dropdown.
@KKoukiou KKoukiou force-pushed the multiple-consoles-of-type branch from da4c82b to 412e5d2 Compare October 12, 2021 11:45
@KKoukiou KKoukiou marked this pull request as ready for review October 12, 2021 11:46
@redallen redallen merged commit 7be4bc4 into patternfly:main Oct 19, 2021
@KKoukiou KKoukiou deleted the multiple-consoles-of-type branch October 19, 2021 18:00
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.

5 participants