Commit graph

41 commits

Author SHA1 Message Date
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
Jacob Kozol
4d987eb05e CreateImageWizard: filter already added packages
When a user searches for available packages, already chosen packages are
filtered from the available packages list. This prevents the user from
adding duplicate packages.
2021-11-30 15:58:20 +01:00
Jacob Kozol
db6aa5158d CreateImageWizard: display message for invalid chosen packages filter
When the user filters the chosen packages list they may find no packages
containing the entered string. In this case we display a message that no
packages are found. There are now tests for both the available and
chosen packages lists for when packages are not found.
2021-11-30 13:22:01 +01:00
Jacob Kozol
8c3a60a7ed CreateImageWizard: only display upload review for selected destinations 2021-11-30 12:45:14 +01:00
Jacob Kozol
28a76a6dcb CreateImageWizard: redo package search default message
Having the available packages list be either undefined, empty, or with
elements requires complicated logic. Instead, initialize
packagesAvailable to an empty array. In order to display an error state
when the packages search returned no packages, now use a boolean flag if
available packages were found. This check also sets us up in case we
want to provdie further feedback on failed package searches.
2021-11-29 20:35:23 +01:00
Sanne Raymaekers
a16212ddc3 CreateImageWizard: Fix deselecting selected packages
Deselecting a selected set of package didn't change the state correctly.
2021-11-29 18:15:51 +01:00
Katerina Koukiou
292d14e36f CreateImageWizard: Show "no package results are found" when no packages are found
Fixes #463
2021-11-28 18:16: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
86158bd94e CreateImageWizard: add loading icon when creating image 2021-11-23 10:54:11 +01:00
Jacob Kozol
3e38a71c4a CreateImageWizard: show previously chosen packages
If a user choses packages and then changes to a different step, the
packagesChosen state is wiped. These packages are now stored in the form
state under 'selected-packages'. When the packages step is mounted, if
there are 'selected-packages', these are the initial state for
packagesChosen.
2021-11-23 10:41:58 +01:00
Jacob Kozol
dd895e014e CreateImageWizard: fix add all packages
When adding all packages we no longer depend on the state update.
Instead, we initialize an object with the chosen packages and pass that
to both the step's state and the form's state. Using the step state to
set the form's state was causing the form's state to be set from the
prior step state and not the state with the new package list.
2021-11-23 10:35:21 +01:00
Jacob Kozol
940e40409c CreateImageWizard: fix Enter key for packages search
The addEventListener call needs to have the useCapture field set to
true. The data-driven-forms patternfly 4 wizard will continue to the
next step when the Enter key is pressed. If we add our keydownHandler as
an event listener with useCapture set to True, the keydownHandler will
trigger before the wizards handler. This will effectively override the
wizard's handling of the Enter key so that it can be used to search when
the user has either package search bar in focus.
2021-11-22 16:58:25 +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
0357ed57f9 CreateImageWizard: add default state to package selection 2021-11-12 19:12:17 +01:00
Jacob Kozol
1593402192 CreateImageWizard: fix indentation in the review step 2021-11-11 22:44:21 +00:00
Gianluca Zuccarelli
49ac292ca0 CreateImageWizard: sort packages by relevance
Sort the package results in the CreateImageWizard
first by exact matches and then by pacakge results
that start with the same letters as the search term,
otherwise sort alphabetically.
Fixes #256
2021-11-08 11:38:59 +01:00
Jacob Kozol
4b62b91733 CreateImageWizard: add placeholder text to packages search bars 2021-11-02 00:26:51 +00:00
Jacob Kozol
9feccc66d6 CreateImageWizard: packages can be searched with enter key
When focused on either the available packages or chosen packages search
bar, pressing the enter key will search/filter the packages.
2021-11-02 00:26:01 +00:00
Jacob Kozol
58f866088e CreateImageWizard: update packages to use custom callbacks
PF4 now allows more control over the DualListSelector. This component is
rewritten to use custom callbacks which allow us to display a more
customized version of the DualListSelector. Currently, the component is
visually identical to the existing implemention except for the addition
of a search button to filter the chosen packages.
2021-10-29 13:39:08 +01:00
Jacob Kozol
7e8911a40c CreateImageWizard: fix packages addAll button
When clicking the packages add all button the list of available packages
did not get added to the list of chosen packages. Now the chosen
packages and available packages are concatenated together.
2021-10-25 16:52:15 +01:00
Jacob Kozol
a51328e426 CreateImageWizard: update azure redirect
On authorization of image builder on azure, the user will be redirected
to portal.azure.com. The response mode is changed to query instead of
form_post because form_post makes a POST request while query makes a GET
request. portal.azure.com does not respond when we make a POST request
to it so users will not be redirected unless we use the response mode
of query.
2021-10-19 14:44:30 +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
Simon Steinbeiss
9ff2139930 CreateImageWizard: Switch away from TextListItem 2021-08-10 11:32:25 +02:00
Simon Steinbeiss
6d08382fce CreateImageWizard: Align all values on the review step
Closes #194
2021-08-10 11:32:25 +02:00
Simon Steinbeiss
bec1183c5a CreateImageWizard: Show Azure information on review page
Closes #202
2021-08-02 19:26:28 +02:00
Simon Steinbeiss
c8fe2252ce CreateImageWizard: Only show subscription info for RHEL* 2021-07-21 10:47:39 +02:00
Simon Steinbeiss
98c7758781 CreateImageWizard: Only show Registration section in Review if applicable
Closes #252
2021-07-15 12:12:02 +02:00
Simon Steinbeiss
93b7e4950a CreateImageWizard: Make instructions on Review page normal font size
Closes #253
2021-07-13 10:10:05 +02:00
Sanne Raymaekers
14062a771e CreateImageWizard: Remove non-existent import 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
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
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
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
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