Commit graph

2971 commits

Author SHA1 Message Date
Cockpit Project
7bf15f40b4 package.json: Update @babel/runtime
Closes #148
2021-04-19 10:58:30 +02:00
Cockpit Project
a24015882e package.json: Update @redhat-cloud-services/frontend-components-utilities
Closes #146
2021-04-19 10:57:55 +02:00
Cockpit Project
a47956c1f2 package.json: Update react
Closes #145
2021-04-19 10:57:10 +02:00
Cockpit Project
e04a3b1eda package.json: Update @redhat-cloud-services/frontend-components
Closes #144
2021-04-19 10:37:14 +02:00
Sanne Raymaekers
28cc248335 CreateImageWizard: Move steps into separate components 2021-04-14 17:34:30 +02:00
Sanne Raymaekers
c270991b85 test: Use the real redux store in testing also 2021-04-14 17:34:30 +02:00
Cockpit Project
3906f822a1 package.json: Update @patternfly/react-table, @patternfly/patternfly, @patternfly/react-core
Closes #143
2021-04-14 10:41:16 +02:00
Cockpit Project
92abf57180 package.json: Update @redhat-cloud-services/frontend-components-notifications
Closes #137
2021-04-14 10:35:14 +02:00
Cockpit Project
3fba1903a8 package.json: Update react-router-dom
Closes #142
2021-04-14 10:26:15 +02:00
Jacob Kozol
01c5a5f202 store: refactor redux hierarchy
The redux reducers and actions are moved to subdirectories within the
store directory. The goal of this is to improve the understandability of
the directory structure and to prepare for future scaling of the actions
and reducers.
2021-04-13 20:55:34 +02:00
Cockpit Project
f8cbbf9ed7 package.json: Update react-dom
Closes #133
2021-04-13 11:54:44 +02:00
Sanne Raymaekers
2e5eaa85d9 package.json: Pin exact versions 2021-04-12 15:58:58 +02:00
Sanne Raymaekers
b43b938f28 app: Allow the IdentifyApp call to fail 2021-03-31 15:01:04 +01:00
Sanne Raymaekers
41f506219c routes: Remove root element mutation 2021-03-30 19:23:13 +01:00
Tomas Hozza
4777cdac76 Handle all valid image_status.status values
osbuild-composer and as a result also Image Builder are returning an
invalid `image_status.status` value "running" for composes which are in
progress.

Extend the front-end to handle all valid `image_status.status` values,
specifically also "building", "uploading" and "registering". Also keep
support for the invalid value "running" for some time to ensure backward
compatibility with older osbuild-composer versions.

Modify test cases in `ImagesTable.test.js` to verify all possible
`image_status.status` values. Also modify the `image_status` values used
for testing to what is actually returned by osbuild-composer Cloud API
and as a result also by Image Builder's API.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-03-25 16:45:23 +01:00
Tom Gundersen
782d6c684c ImagesTable: update empty-table message
Update the message now that we support CentOS Stream, Azure+GCP support as well as package selection.
2021-03-23 18:34:50 +01:00
Jacob Kozol
f00cf08506 CreateImageWizard: add registration validation
If register now is selected, an activation key is required. If no
activation key is entered the Next and Create buttons are disabled.
Also, if the activation key is empty an error message will appear to
prompt the user to enter an activation key.

The subscription errors variable is removed in favor of declaring the
error message directly in the registration step component. The
validateSubscription function is removed in favor of validating the
activation key field on change.
2021-03-23 18:34:27 +01:00
Jacob Kozol
6d147c95fc CreateImageWizard: default to register the image later 2021-03-23 18:34:27 +01:00
Chloe Kaubisch
a686fd970b CreateImageWizard: single upload_request
Change imageRequest to accept a single uploadRequest instead of
an array of uploadRequests.
2021-03-22 12:04:48 +01:00
Sanne Raymaekers
c6c616a9dc travis: Fork main to prod-beta
Let the prod-beta branch instead of the main branch push to the
prod-beta branch in the -build repository.
2021-03-19 11:15:52 +01:00
Jacob Kozol
f268441d41 CreateImageWizard: validate upload destination
The user should not be able to continue without selecting an upload
destination. The uploadDestination fields are now checked to see if one
is selected before enabling the Next button in the footer. Also, the
onSaveInProgress variable is changed to isSaveInProgress to conform with
the other validation variables.
2021-03-15 14:37:27 +01:00
Sanne Raymaekers
b0614ae750 CreateImageWizard: Notification on successful compose response 2021-03-09 21:41:17 +00:00
Sanne Raymaekers
ef0f5e4a8d CreateImageWizard: Move footer to custom component
Adds an error message in some error cases.
2021-03-09 21:41:17 +00:00
Sanne Raymaekers
c325a310a2 ImagesTable: Instead of the image type show the upload target
Fixes #105
2021-03-08 13:33:46 +00:00
Ondřej Budai
afd0a81236 azure: fix the oauth link
Multi-tenant access needs the v2.0 route that requires:
- scope
- response_type

I also also added response_mode=form_post so the token isn't shown in
the address bar.
2021-03-08 11:48:09 +01:00
Ondřej Budai
6bbf141238 azure: open the login screen in a new window
my editor screamed at me that using target="_blank" without rel="noopener"
is dangerous so I added it as well.
2021-03-08 11:48:09 +01:00
Sanne Raymaekers
398eeb8cb2 CreateImageWizard: Add Azure upload step 2021-03-08 10:03:04 +00:00
Sanne Raymaekers
f3887a1d42 CreateImageWizard: Fix google image type
Image type gcp doesn't exist, it should be vhd.
2021-03-05 16:54:40 +00:00
Sanne Raymaekers
76108cb701 CreateImageWizard: Fix google share options
This needs to be an array of strings.
2021-03-05 16:38:36 +00:00
Jacob Kozol
22385fd5ea CreateImageWizard: add google upload step
The user can now specify their authentication settings for Google Cloud
Platform. These can be either a Google account, Service account, Google
group, or a domain.
2021-03-05 16:21:08 +01:00
Sanne Raymaekers
6adab8bd3b CreateImageWizard: Fix review step
The wizard crashed in the review step when registering the system later
was selected.
2021-03-03 12:36:53 +01:00
Sanne Raymaekers
971399aaeb App: Wait for user active session before checking permission 2021-03-02 16:28:28 +01:00
Jacob Kozol
43e87a184d CreateImageWizard: update review page
The review page now uses more patternfly components and has been split
up a little so it is easier to add review fields for additional target
environments.
2021-03-01 17:01:58 +01:00
Sanne Raymaekers
60589dd2c1 CreateImageWizard: Add selected packages to compose request 2021-02-24 20:28:37 +01:00
Jacob Kozol
f4cbf61b22 CreateImageWizard: update aws upload step
Update the text and title to better fit current designs.
2021-02-24 18:53:21 +00:00
Jacob Kozol
6b575c5478 CreateImageWizard: add package step
The additional package selection step is added to the create image
wizard. Users can now query for packages and select them from a list.
These packages are not yet passed into the blueprint customizations and
are just for display. Tests have been updated and added.
2021-02-24 18:50:02 +00:00
Jacob Kozol
36f2970419 package.json: update patternfly react-core 2021-02-24 18:50:02 +00:00
Jacob Kozol
5e81d5daf9 CreateImageWizard: support multiple upload providers
The user can now select between multiple upload providers. AWS, Azure,
and Google. The selection uses tiles and the user can select one or more
destinations. Currently, only aws supports setting the upload
parameters.

The icons point to files hosted on cloud.redhat.com.
2021-02-19 12:10:57 +01:00
Jacob Kozol
61b9c2f3ce package: update patternfly dependencies
Bump patternfly packages to newest version.
2021-02-19 12:10:57 +01:00
Ondřej Budai
2ddbfa5255 add support for CentOS Stream 8
image-builder has recently got support for building CentOS Stream 8 images.
This commit adds the option to build these images in the frontend.
2021-02-18 19:30:01 +01:00
Sanne Raymaekers
005c0d783a CreateImageWizard: Set initial status correctly 2021-02-18 00:44:05 +00:00
Sanne Raymaekers
9a590a946e ImagesTable: Adapt to new compose status response 2021-02-17 19:16:14 +00:00
Sanne Raymaekers
17ff7d1c6d ImagesTable: Don't poll status when compose is complete 2021-02-17 19:16:14 +00:00
Sanne Raymaekers
a6938b9f23 ImagesTable: Clean up possible statuses
- building should be running
- registering and uploading aren't separate statuses
2021-02-17 19:16:14 +00:00
Sanne Raymaekers
7b696ac766 LandingPage: Add signup button to the under construction page 2021-02-16 13:51:56 +01:00
Sanne Raymaekers
6d77171be4 codecov: Add configuration 2021-02-09 15:48:57 +01:00
Sanne Raymaekers
3414607a48 App: Show under construction page if getversion fails 2021-02-09 15:48:57 +01:00
Sanne Raymaekers
158392839f travis: Let main push to prod-beta as well 2021-02-05 13:30:31 +01:00
Sanne Raymaekers
0a575399c1 CreateImageWizard: Change image type to ami
Once we have multiple image types we need to make this dynamic based on
upload type. But qcow2 doesn't work under any circumstance so let's use
ami.
2021-02-05 12:28:14 +01:00
Jacob Kozol
b17d9b5325 CreateImageWizard: display in modal
The wizard now displays inside a modal.
2021-02-04 17:19:02 +01:00