-
Notifications
You must be signed in to change notification settings - Fork 79
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
consoles: Redesign #2008
base: main
Are you sure you want to change the base?
consoles: Redesign #2008
Conversation
@@ -20,140 +20,187 @@ | |||
import PropTypes from 'prop-types'; | |||
import cockpit from 'cockpit'; | |||
import { AccessConsoles } from "@patternfly/react-console"; | |||
import { Button } from "@patternfly/react-core/dist/esm/components/Button"; | |||
import { Card, CardBody, CardFooter, CardHeader, CardTitle } from '@patternfly/react-core/dist/esm/components/Card'; | |||
import { ExpandIcon, HelpIcon } from '@patternfly/react-icons'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
import { Divider } from "@patternfly/react-core/dist/esm/components/Divider"; | ||
import { EmptyState, EmptyStateBody, EmptyStateFooter } from "@patternfly/react-core/dist/esm/components/EmptyState"; | ||
import { Split, SplitItem } from "@patternfly/react-core/dist/esm/layouts/Split/index.js"; | ||
import { DescriptionList, DescriptionListTerm, DescriptionListGroup, DescriptionListDescription } from "@patternfly/react-core/dist/esm/components/DescriptionList"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
import { | ||
FormGroup, FormHelperText, HelperText, HelperTextItem, | ||
Grid, GridItem, | ||
InputGroup, TextInput, Button, Checkbox | ||
} from "@patternfly/react-core"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Grid, GridItem, | ||
InputGroup, TextInput, Button, Checkbox | ||
} from "@patternfly/react-core"; | ||
import { Split, SplitItem } from "@patternfly/react-core/dist/esm/layouts/Split/index.js"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
- The dialogs talk about "server" and "listening" to make that clearer. - We use the empty string instead of "-1" to signify automatic port assignment in the UI. - The port does validation of its value. - The password field takes the whole row and has can reveal its value. - The dialogs warn if a shutdown is needed. - The components take the whole "vm" object instead of separate name, id, and connectionName.
We are not comfortable with that without also offering encryption.
- The "Console" card is always present and let's people manage VNC server settings while the machine is off. - The "Graphical console" tab is always present when the machine is running and let's people add VNC. - There is no way yet to change VNC server settings for a running machine since there is no good place for the button that would open the dialog.
Things will get more much more complicated.
…ewer We want to invoke that dialog also from the "Console" card, where it is used to enable the inline graphical console viewer.
- A ToggleGroup in the Card header is used to switch consoles - The DesktopViewer is gone, but there is a footer with a "Launch viewer" button and a "How to connect" popup. - Can't change consoles in the expanded view, but the expanded console keeps the type that was active in the collapsed view. TODO: - Code cleanup, "VncConsole" is now really "GraphicsConsole", etc..
44f3e69
to
69dcfd9
Compare
Demo: https://www.youtube.com/watch?v=pKqvfQ3lDQQ