-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding preparing migration page to the Wizard (#24)
Signed-off-by: Montse Ortega <[email protected]>
- Loading branch information
Showing
2 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
apps/demo/src/migration-wizard/steps/prepare-migration/PrepareMigrationStep.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import React from "react"; | ||
import { | ||
Stack, | ||
StackItem, | ||
TextContent, | ||
Text, | ||
Panel, | ||
PanelMain, | ||
PanelHeader, | ||
List, | ||
OrderType, | ||
ListItem, | ||
Icon, | ||
Alert, | ||
AlertActionLink, | ||
Radio, | ||
} from "@patternfly/react-core"; | ||
import { ClusterIcon } from "@patternfly/react-icons"; | ||
import { SourcesTable } from "#/migration-wizard/steps/connect/sources-table/SourcesTable"; | ||
import { useDiscoverySources } from "#/migration-wizard/contexts/discovery-sources/Context"; | ||
|
||
export const PrepareMigrationStep: React.FC = () => { | ||
const discoverySourcesContext = useDiscoverySources(); | ||
const [firstSource, ..._otherSources] = discoverySourcesContext.sources; | ||
|
||
return ( | ||
<Stack hasGutter> | ||
<StackItem> | ||
<TextContent> | ||
<Text component="h2">Prepare for Migration</Text> | ||
</TextContent> | ||
</StackItem> | ||
<StackItem> | ||
<TextContent> | ||
<Text component="h3">Migration goal</Text> | ||
</TextContent> | ||
</StackItem> | ||
<StackItem> | ||
<Radio | ||
id="lets-try" | ||
label="Let's try" | ||
name="lets-try" | ||
description="Starting with a minimal cluster to try our migration flows and Openshift Virtualization. (20 VMs or up to cluster capacity limitations)" | ||
checked | ||
/> | ||
</StackItem> | ||
<StackItem> | ||
<Radio | ||
id="feel-good" | ||
label="Feeling good" | ||
name="feel-good" | ||
description="Create a cluster that can support a medium migration scale (500 VMs or up to cluster capacity limitations)" | ||
isDisabled | ||
/> | ||
</StackItem> | ||
<StackItem> | ||
<Radio | ||
id="got-this" | ||
label="I got this" | ||
name="got-this" | ||
description="Create a cluster that can support a big migration scale (5000 VMs or up to cluster capacity limitations)" | ||
isDisabled | ||
/> | ||
</StackItem> | ||
<StackItem> | ||
<TextContent style={{ paddingBlock: "1rem" }}> | ||
<Text component="h3">Target cluster</Text> | ||
</TextContent> | ||
</StackItem> | ||
<StackItem> | ||
<Radio | ||
id="new-cluster" | ||
label="New cluster" | ||
name="new-cluster" | ||
description="Let's use our OpenShift assisted installer to create a new bare metal cluster" | ||
checked | ||
/> | ||
</StackItem> | ||
<StackItem> | ||
<Radio | ||
id="use-existing-cluster" | ||
label="Use existing cluster" | ||
name="use-existing-cluster" | ||
description="Choose one of your Openshift cluster" | ||
isDisabled | ||
/> | ||
</StackItem> | ||
<StackItem> | ||
<Radio | ||
id="use-sandbox" | ||
label="Use Openshift developer sandbox (Coming Soon)" | ||
name="use-sandabox" | ||
description="" | ||
isDisabled | ||
/> | ||
</StackItem> | ||
</Stack> | ||
); | ||
}; | ||
|
||
PrepareMigrationStep.displayName = "PrepareMigrationStep"; |