Commit graph

93 commits

Author SHA1 Message Date
Sanne Raymaekers
cfaa8a463d CreateImageWizard: RHEL 9
Expose rhel-90, it has reached GA.
2022-05-18 15:24:04 +02:00
Sanne Raymaekers
294cb08a0f CreateImageWizard: Use 'gcp' image type for gcp
The vhd alias for gcp was dropped, as image-builder includes extra repos
for gcp.
2022-04-25 14:00:54 +02:00
Jacob Kozol
2f5f6dcc46 CreateImageWizard: move name image step to end
The Details step is renamed to Name Image and moved to the last step
before Review. Also, the validation is removed since all utf-8
characters are supported for image names.
2022-04-19 14:07:46 +02:00
Gianluca Zuccarelli
78123bff0e CreateImageWizard: target env validation
Validation is not enforced on the image output step
when selecting and then deselecting an image type. This
is because the only validation which is set is `Required`.
However, after deselecting an image type the input becomes
a key-value object with all the values set to false. This
commit adds a custom validator to check that at least one
value in the object is set to true. Fixes #575
2022-04-04 15:11:45 +02:00
lucasgarfield
e649e5c385 CreateImageWizard: Override Data Driven Form Enter behavior
Resolves #466. The default behavior for the DDF Wizard is to either advance to
the next step or submit the form when the ENTER is pressed.

This is inappropriate for complex forms that contain many different
types of elements that are typically interacted with using ENTER. For
instance, the default behavior when a link is focused and ENTER is pressed
is not to open the link in a browser but to advance or submit the form.

This commit overrides the default behavior by passing an onKeyDown prop
to the wizard which calls a custom onKeyDown function. The new custom
function does not define any behavior for when ENTER is pressed,
but does recreate DDF's default ESCAPE behavior, which is to close the
modal.
2022-03-25 15:47:48 +01:00
Jacob Kozol
20c1537d8e CreateImageWizard: navigate to review step on recreate
When recreating an image navigate to the review step instead of the
initial step. This requires forming the step history to enable a
functional sidebar.
2022-03-23 12:30:42 +01:00
Jacob Kozol
d16f71c98f ImagesTable: add ability to recreate image type 2022-03-23 12:30:42 +01:00
Jacob Kozol
c3f86f3575 CreateImageWizard: enable passing initial state to CreateImageWizard 2022-03-23 12:30:42 +01:00
Jacob Kozol
7aaedd67ab CreateImageWizard: rename google to gcp in form state 2022-03-23 12:30:42 +01:00
lucasgarfield
db9bb31887 CreateImageWizard: Update Wizard description to match UI design
Changes the Wizard's description (defined in the schema) to `Image
builder allows you to create a custom image and push it to target
environments` as indicated in the UI design prototype. The previous
description (`Create a RHEL image and push it to cloud providers`)
is no longer accurate since CentOS images are also currently supported.
2022-03-04 16:44:12 +01:00
Jacob Kozol
c257eec540 CreateImageWizard: add image name field
Add a details step where the user can enter a descriptive image name.
This name is displayed in the review step above the Release. Both these
fields are now horizontal to save vertical space.
2022-03-02 16:24:35 +01:00
Sanne Raymaekers
350acbd21b CreateImageWizard: File system configuration 2022-02-28 15:27:09 +01:00
Jacob Kozol
e48e2ca659 CreateImageWizard: redesign registration step
Update the registration options to include registering without insights.
Also, improve the text info in the step.

The org id is also removed from the registration step since we no
longer display the id in this step.
2022-01-21 11:57:04 +01:00
Jacob Kozol
f1f3c0cd66 CreateImageWizard: add new image types
The image types 'vsphere', 'guest-image', and 'image-installer' are now
supported by the CreateImageWizard. They require no additional
customizations and support the current registration and packages
customizations.
2022-01-14 22:23:50 +01:00
Jacob Kozol
919919173d CreateImageWizard: move org id to custom component
Loading the organization ID is now done in the registration step. This
prevents the entire wizard from waiting on the org id and prevents the
wizard from remounting when the async getUser() completes.
2022-01-05 11:51:55 -05:00
Sanne Raymaekers
6567323ef6 Router: Replace landing with catch-all route
This also mitigates the issue where clicking the image-builder nav link
would redirect you to `image-builder/image-builder` if image-builder was
already opened. And `/` didn't catch that path.
2021-11-30 16:12:43 +01:00
Sanne Raymaekers
8ac1f8ae1d CreateImageWizard: Prevent dom validation error
Prevents `...<div> cannot appear as a descendant of <p>.` when running
`npm run travis:verify`.
2021-11-29 17:58:53 +01:00
Jacob Kozol
2602ff346f CreateImageWizard: improve review step
The review step is improved. The create button now states 'Create
image'. The step description text is updated. The fields to be reviewed
are now split into tabs for 'Target environment', 'Registration',
'System Configuration'. The target environments show the logo of the
environment now. The quantity of packages selected also displays now.
Tests are also updated.
2021-11-19 16:25:23 +00:00
Jacob Kozol
b71aa75df3 src: replace React Router history with navigate
React Router v6 now has useNavigate() instead of useHistory.
useNavigate() is equivalent to useHistory().push();
2021-11-18 19:06:56 +01:00
Jacob Kozol
cd8175fe73 CreateImageWizard: insert new compose on top of images list
The composeAdded action includes a field 'insert'. When set to true
`insert` will place the added compose at the beginning of the images
list. The test is modified so the new composes are added to the
beginning of the list.
2021-11-16 10:14:48 +00:00
Jacob Kozol
7ea8168443 CreateImageWizard: add creation failure alert
When image creation failed to start the wizard would get stuck in the
saving state with no notice to the user. Now the user will get an error
alert contain the status code and message. The wizard no longer gets
stuck in the saving state.
2021-10-21 19:19:36 +01:00
Martin Maroši
d3a5a3adc1 Fix incorrect CSS prefix on DDF wizard. 2021-10-12 15:03:04 +02:00
Karel Hala
a01d00c3fe Rename image creator and image wizard
The names of component and files were not matching
2021-06-30 14:15:01 +02:00
Karel Hala
9bf30059f6 Fix rendering of wizard by wrapping it in act
Tests were failing because we are now calling getUser when wizard is shown. This call is asynchronous and requires wrapping the wizard in act to wait for it to be fulfilled
2021-06-30 14:15:01 +02:00
Karel Hala
74f1293773 Skip registration for non rhel output
Based on new changes in master the registration step should be skipped if no RHEL output is selected
2021-06-30 14:15:01 +02:00
Karel Hala
902480dab4 Disable buttons on submit
Add custom submit buttons component to disable these buttons while image is created
2021-06-30 14:15:01 +02:00
Karel Hala
dbcd753bb9 Reorder the target envs
Update the order of envs based on new changes in master
2021-06-30 14:15:01 +02:00
Karel Hala
47f626e94f Call api to create image
Copy over the previous call to create image with new values from DDF wizard
2021-06-30 14:15:01 +02:00
Karel Hala
0644cbd584 Add Radio with popover
New commponent Radio with popover is required to show properly popover in DDF wizard
2021-06-30 14:15:01 +02:00
Karel Hala
2d777bd30d Add registration key
Fully implement registration step with conditional text fields
2021-06-30 14:15:01 +02:00
Karel Hala
fb1c949a97 Add packages selector component
Write fully the packages selector component which was previously registered in DDF components mapper.
2021-06-30 14:15:01 +02:00
Karel Hala
2f3f9f9367 Add image output tiles
First step includes tiles so let's create output tiles component to show in this step
2021-06-30 14:15:01 +02:00
Karel Hala
c040b004ad Add all steps and write review step
Basic steps with text inputs to test the navigation and formatting, add final review step component to show all values
2021-06-30 14:15:01 +02:00
Karel Hala
06d4fd718b Add initial branching
Add DDF package and include initial branching based on text fields
2021-06-30 14:15:01 +02:00
Sanne Raymaekers
e86b210a22 src: Use rhel-84 instead of rhel-8 2021-06-16 11:35:05 +02:00
Jacob Kozol
043b775ced CreateImageWizard: only enable registration for rhel images 2021-06-08 13:37:03 +02:00
Jacob Kozol
93d0fdb6fc CreateImageWizard: alphabetize upload destinations
The upload destinations now display in alphabetical order.
2021-06-02 15:45:08 +02:00
Sanne Raymaekers
c7e8fc57ec src: Update documentation links 2021-05-20 11:00:02 +02:00
Sanne Raymaekers
b11fbe42df CreateImageWizard: Pass organization as a number
This should be changed in the api. But will take some more work. For now
just pass it as a number, that is what the api expects at this point in time.
2021-05-20 10:49:37 +02:00
Sanne Raymaekers
4658f59d0b src: Adapt to insights-chrome 2.0 2021-05-06 11:26:41 +02:00
Sanne Raymaekers
106f867e97 CreateImageWizard: Show previously selected packages
This should fix the bug where chosen packages would disappear from the
ui when switching steps and returning to the packages step.
2021-04-28 12:46:55 +02:00
Jacob Kozol
e8192ad3f7 CreateImageWizard: remove nested p tag
The patternfly Wizard component's description is wrapped in a p tag. The
patternfly Text component also uses a p tag. A p tag should not be
nested inside another p tag.
2021-04-22 11:19:53 +02:00
Sanne Raymaekers
1b9cf6df7b src: Remove SmartComponents/PresentationalComponents split
Just have a directory per component.
2021-04-22 10:23:51 +02:00
Renamed from src/SmartComponents/CreateImageWizard/CreateImageWizard.js (Browse further)