This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Advanced Options Step to Plan Wizard
* Add VM/Playbook selection table * Custom reactabular formatters to enable dual selection columns * Extract some common helpers shared with VMStep table * Make modifications to BootstrapSelect for this use case * Confirm modal for case when a user selects a playbook, but does not select any VMs on which to run service * Form data is reset if user navigates back from Advanced Options Step to the VM Selection Step * Add schema validator for ServiceTemplateAnsiblePlaybook
- Loading branch information
1 parent
18a306f
commit 431f7ca
Showing
35 changed files
with
1,315 additions
and
47 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
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,8 @@ | ||
import { string, object } from 'yup'; | ||
|
||
export const playbookSchema = object().shape({ | ||
href: string().required(), | ||
id: string().required(), | ||
name: string().required(), | ||
description: string().nullable() | ||
}); |
6 changes: 6 additions & 0 deletions
6
app/javascript/data/models/serviceTemplateAnsiblePlaybooks.js
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,6 @@ | ||
import { array } from 'yup'; | ||
import { playbookSchema } from './serviceTemplateAnsiblePlaybook'; | ||
|
||
export const playbooksSchema = array() | ||
.of(playbookSchema) | ||
.nullable(); |
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
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
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
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
9 changes: 9 additions & 0 deletions
9
app/javascript/react/screens/App/Overview/screens/PlanWizard/PlanWizard.scss
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,9 @@ | ||
@import './components/PlanWizardAdvancedOptionsStep/PlanWizardAdvancedOptionsStep.scss'; | ||
|
||
.plan-wizard-confirm-backdrop { | ||
z-index: 1050; | ||
} | ||
|
||
.plan-wizard-confirm-modal { | ||
margin-top: 140px; | ||
} |
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
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
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
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
Oops, something went wrong.