Commit graph

52 commits

Author SHA1 Message Date
lucasgarfield
c28e0d15b6 CreateImageWizard: Make steps autofocus on first input upon render
The default behavior of Data Driven Forms when moving to the previous or
next step is to maintain focus on the previous or next button,
respectively.

This commit makes the UI more friendly to keyboard users by focusing
on the first input element of a given step when it is rendered.

Whenever possible, autofocus is achieved by passing components the
autoFocus prop. When this is not possible, then useRef and useEffect hooks
are used to set focus.

At the moment, it is not possible to autofocus the image output step's
release selector or the file system configuration step's toggle using the
above methods. This is because these PatternFly components do not
currently pass props to the appropriate child component and do not
support ref forwarding. The best option for autofocus in these cases is
currently being investigated.
2022-03-25 15:47:48 +01:00
Sanne Raymaekers
a0883793ba CreateImageWizard: Step template with id
The template is the default template from data driven forms, with the id
added.

Fixes #642
2022-03-25 12:43:31 +01:00
Gianluca Zuccarelli
29f82bc248 CreateImageWizard: gcp popover padding/margin
The margin on the `ul` list inside the gcp
information popover was causing the popover
to look unevenly spaced. Removing the left
margin resolves this. This commit fixes #630
2022-03-24 14:55:44 +01:00
Jacob Kozol
7aaedd67ab CreateImageWizard: rename google to gcp in form state 2022-03-23 12:30:42 +01:00
lucasgarfield
0c9b0f1070 CreateImageWizard: Add image output instructions
Resolves #596. Adds the text `Image builder allows you to create a
custom image and push it to target environments.` and a link to the
documentation to the image output step.
2022-03-04 16:44:12 +01:00
Gianluca Zuccarelli
1ec63ba357 CreateImageWizard: prefocus aws input field
Autofocus the input field in the aws step
of the CreateImageWizard modal.
2022-03-04 12:18:15 +01:00
Sanne Raymaekers
531e2ac1b0 CreateImageWizard: Expose centos 9 stream 2022-03-02 17:03:09 +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
Gianluca Zuccarelli
9c9be31677 CreateImageWizard: fix gcp popover
Update the popover for the gcp step
in the CreateImageWizard. This commit
changes the default popover position
to the right of the modal.
2022-03-01 17:17:41 +01:00
Sanne Raymaekers
350acbd21b CreateImageWizard: File system configuration 2022-02-28 15:27:09 +01:00
Sanne Raymaekers
280ed7d884 CreateImageWizard: Make packages step a substep 2022-02-28 15:27:09 +01:00
Chloe Kaubisch
9519fabf11 createimagewizard: update aws step text
fixes #600
2022-02-25 14:58:06 +01:00
lucasgarfield
86e624f321 CreateImageWizard: Change GUID to ID in Azure step 2022-02-25 14:30:57 +01:00
lucasgarfield
dfe8d3e19e CreateImageWizard: Change Image Destination to Destination Azure step 2022-02-25 14:30:57 +01:00
Jacob Kozol
f278f049a9 CreateImageWizard: Add expandable section for azure description
The azure step's descriptive text under the `Authorizing an Azure
account` title text is now expandable. Clicking the title shows or
hides it.
2022-02-25 14:30:57 +01:00
Jacob Kozol
1a6938ef1f CreateImageWizard: set azure field length to 50% width
Azure form fields only need to take in 36 characters for the ID so they
don't need to take up the full width of the wizard. These fields are
now 50% width. The resource group doesn't have the same character limit
but is set to the same 50% for visual consistency.
2022-02-25 14:30:57 +01:00
Jacob Kozol
92f963c49a CreateImageWizard: add activation keys to registration
The registration step now provides users with a type ahead input so they
can select from all activation keys associated with their accounts.

The testing for this requires that we wait for the mocked api response.
2022-02-14 16:31:19 +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
0b45e7bc4f CreateImageWizard: validate azure resource group
Resource group names only allow alphanumeric characters, periods,
underscores, hyphens, and parenthesis and cannot end in a period. A
regex validation is now added to ensure this.

Documented by azure here:
https://docs.microsoft.com/en-us/rest/api/resources/resource-groups/create-or-update
2022-01-11 10:54:04 +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
104707fb87 CreateImageWizard: Detail what subscription means
Fixes #126
2021-12-01 18:08:24 +01:00
Sanne Raymaekers
0d5ab8b86b CreateImageWizard: Correct name for packages step 2021-11-29 18:15:51 +01:00
Chloe Kaubisch
c6f74efcb3 CreateImageWizard: don't obscure activation key
Activation key was previously obscured by stars, instead just show it
(both in the input and in the review step) as it isn't secret.
2021-11-26 16:27:58 +01:00
Jacob Kozol
24a0f39857 CreateImageWizard: validate the subscription GUID is a valid GUID 2021-11-23 10:47:11 +01:00
Jacob Kozol
56fdc730e5 CreateImageWizard: decrease aws account id field length 2021-11-12 19:19:14 +01:00
Sanne Raymaekers
b986067079 constants: Introduce RHEL_8 constant
Bump rhel-84 to rhel-85.
2021-11-11 19:13:48 +01:00
Jacob Kozol
fe891eb56f CreateImageWizard: update azure help text to present tense 2021-11-07 17:57:22 +00:00
Ondřej Budai
40b0cdaa45 CreateImageWizard: fix the description for google group
and and
2021-11-01 10:53:21 +01:00
Jacob Kozol
d9a2fd1886 CreateImageWizard: use GUID instead of ID in azure step 2021-10-18 18:27:40 +02:00
Jacob Kozol
913cd9a785 CreateImageWizard: update azure text and field order
The info text is updated and the authorize button is moved below tenant
ID. The tenant ID is now validated as a valid GUID and if is not valid
the authorize button is disabled. This tenant id is now used to validate
image builder on azure because the authorize url containing the tenant
id will authorize for any microsoft account type. Tests are also
updated.
2021-10-18 18:27:40 +02:00
Gianluca Zuccarelli
28f415e292 CreateImageWizard: add gcp email validation
Add email address input validation to GCP
step in CreateImageWizard.
Closes #260
2021-10-14 12:27:41 +02:00
Sanne Raymaekers
6449111c5d CreateImageWizard: Use rhel minor versions everywhere
Fallout from switching to minor versions everywhere.
2021-09-03 17:11:57 +02:00
Simon Steinbeiss
7afb07328f CreateImageWizard: Fix inconsistent casing Google products
Closes #259
2021-07-13 10:11:28 +02:00
Simon Steinbeiss
fd2f937688 CreateImageWizard: Fix inconsistent casing 'Target environment'
Closes #261
2021-07-13 10:11:28 +02:00
Simon Steinbeiss
a46ab6ba05 CreateImageWizard: Reorder Azure form
Closes #258
2021-07-13 10:09:50 +02:00
Sanne Raymaekers
d8de57508d ImageCreateWizard: Use imageOutputStepMapper in all imageOutput steps
Also renamed the stepMapper to clarify that it's just meant for the
imageOutput steps.
2021-06-30 14:15:01 +02:00
Sanne Raymaekers
dc5a198df7 CreateImageWizard: Remove unecessary lint rule disable 2021-06-30 14:15:01 +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
09f467ffb7 Update src/Components/CreateImageWizard/steps/msAzure.js
Co-authored-by: jkozol <jacobdkozol@gmail.com>
2021-06-30 14:15:01 +02:00
Karel Hala
9a56b859ef Fix popover visibility
DDF wizard and popover has some issues with visibility, this is a quick hack so we should try fix it a bit nicer, but for time being it's fine
2021-06-30 14:15:01 +02:00
Karel Hala
0c7a1500ec Fix review comments 2021-06-30 14:15:01 +02:00
Karel Hala
a67e014dbe Fix failing tests
DDF requires a bit altered tests to click trough the wizard so the tests won't fail
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
342bea611e Add all steps except packages
New component to show packages needs to be created, let's create a dummy component to unblock implementing rest of the steps.
2021-06-30 14:15:01 +02:00