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

consoles: Redesign #2008

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

src/components/vm/consoles/consoles.jsx Fixed Show fixed Hide fixed
@@ -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

Unused import HelpIcon.
src/components/vm/consoles/consoles.jsx Fixed Show fixed Hide fixed
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

Unused imports DescriptionList, DescriptionListDescription, DescriptionListGroup, DescriptionListTerm.
Comment on lines +22 to +26
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

Unused imports Grid, GridItem.
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

Unused imports Split, SplitItem.
- 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..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants