import React from "react"; import { Alert, AlertActionLink, Button, Card, CardBody, CardFooter, CardHeader, Checkbox, Form, FormGroup, FormHelperText, HelperText, HelperTextItem, List, ListItem, Text, TextContent, TextInput, Spinner, SplitItem, Split, Icon, Divider, } from "@patternfly/react-core"; import { LoginFormViewModelInterface } from "./hooks/UseViewModel"; import { FormStates } from "./FormStates"; import { CheckCircleIcon, InfoCircleIcon } from "@patternfly/react-icons"; import { getConfigurationBasePath } from "#/main/Root"; import globalSuccessColor100 from "@patternfly/react-tokens/dist/esm/global_success_color_100"; // eslint-disable-next-line @typescript-eslint/no-namespace export namespace LoginForm { export type Props = { vm: LoginFormViewModelInterface; }; } export const LoginForm: React.FC = (props) => { const { vm } = props; return ( Migration Discovery VM The migration discovery VM requires access to your VMware environment to execute a discovery process that gathers essential data, including network topology, storage configuration, and VM inventory. The process leverages this information to provide recommendations for a seamless migration to OpenShift Virtualization. Access control A VMware user account with read-only permissions is sufficient for secure access during the discovery process.
{vm.shouldDisplayAlert && ( {vm.alertActionLinkText} } > {vm.alertDescriptionList && vm.alertDescriptionList.length > 0 && ( {vm.alertDescriptionList.map(({ id, text }) => ( {text} ))} )} )}
{vm.formState !== FormStates.CredentialsAccepted && vm.formState !== FormStates.GatheringInventory && ( )} {(vm.formState === FormStates.CredentialsAccepted || vm.formState === FormStates.GatheringInventory) && ( <> )} {vm.formState === FormStates.CheckingStatus && ( Checking status... )}
); }; LoginForm.displayName = "LoginForm";