Commit graph

19 commits

Author SHA1 Message Date
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
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
38abec12bf test: use userEvent click to fix react 17 test failures
screen.click() was being used but in React 17 the registration fields
will not be loaded into the dom until the user selects the radio option.
So, userEvent.click() must be used instead.
2021-10-21 19:20:17 +01:00
Jacob Kozol
7ac9b27870 test: package selector is now option not button 2021-10-21 15:33:50 +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
Jacob Kozol
c56ae8328b package.json: update eslint-plugin-jest-dom
Also, add @testing-library/dom because this is needed by the newer
user-event. Fix tests for new style standards.
2021-10-14 15:18:11 +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
Karel Hala
ace808943f Remove old implementation of create image wizard
We don't need the old implementation anymore, this PR fully covers what the previous steps did
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
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
Sanne Raymaekers
e86b210a22 src: Use rhel-84 instead of rhel-8 2021-06-16 11:35:05 +02:00
Jacob Kozol
0e5ec4fb7e CreateImageWizard: use your image instead of the image 2021-06-03 17:04:54 +02:00
Sanne Raymaekers
b648ffaca4 store: Insert new composes on top of the table
Fixes #161
2021-06-02 17:56:47 +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
Jacob Kozol
6cd58557c5 CreateImageWizard: improve packages step
Update the text description and replace "options" with "packages". Also,
add styling to increase the size of the available and chosen packages
list.
2021-05-26 17:02:31 +02:00
Yuxin Sun
a10e1746e5 Correct the text to match the button text label
Signed-off-by: Yuxin Sun <yuxisun@redhat.com>
2021-04-30 20:08:48 +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
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/test/SmartComponents/CreateImageWizard/CreateImageWizard.test.js (Browse further)