Commit graph

685 commits

Author SHA1 Message Date
Jacob Kozol
4fa71cede8 update style across the project
The eslint updates require style changes in all components.
2022-05-23 12:47:20 +02:00
Jacob Kozol
7959f2a563 eslintrc: update eslint config
Use the "@redhat-cloud-services/eslint-config-redhat-cloud-services"
eslint config. This allows our styling to be standardized with other
Red Hat Insights apps. Also, remove now unneeded eslint packages.
2022-05-23 12:47:20 +02:00
Sanne Raymaekers
4c881fb2b1 CreateImageWizard: Make RHEL 9 the default release 2022-05-19 12:04:27 +02:00
lucasgarfield
480c754b37 CreateImageWizard: Add /tmp mountpoint
/tmp was added to the list of valid mountpoints in the filesystem
customization step.

No validation is necessary at this time because rhel-86, centos-8, and
centos-9 all support a /tmp mountpoint.
2022-05-19 11:50:53 +02:00
Sanne Raymaekers
e160aec170 test: Add test to check for all the available releases
This obsoletes the 'non-rhel releases on beta' test, as it checks all
releases.
2022-05-18 15:24:04 +02:00
Sanne Raymaekers
2e39b47095 test: Remove commented out image output test 2022-05-18 15:24:04 +02:00
Sanne Raymaekers
cfaa8a463d CreateImageWizard: RHEL 9
Expose rhel-90, it has reached GA.
2022-05-18 15:24:04 +02:00
Jacob Kozol
40f7be170c CreateImageWizard: require max image name length of 100 chars 2022-05-13 12:51:48 +02:00
Sanne Raymaekers
8c4cc5c472
.github: Rename sync-branches workflow ref check job (#724)
Make the name of the check job more like the name of the sync job.
2022-05-13 09:20:37 +02:00
Sanne Raymaekers
070e507933 constants: Switch to rhel-86 2022-05-12 15:20:41 +02:00
Gianluca Zuccarelli
90d15807a6 ImagesTable: add error status
Add error information for failed image
builds. The error details are only displayed
for failed builds and the error highest up
the error chain is displayed in the expandable
section of the image.
2022-04-29 17:13:37 +02:00
Sanne Raymaekers
700441da63 .github: Use SCHUTZBOT_GH_TOKEN to push 2022-04-28 12:58:59 +02:00
Sanne Raymaekers
afe4cddf3b .github: Add schutzbot token to gh workflow 2022-04-27 19:48:28 +02:00
Sanne Raymaekers
9b71513462 .github: Sync branches workflow
This workflow syncs the main branch with the stage-stable branch.

It also includes a production target which needs to be dispatched
manually. The production target pushes the input ref to both prod-beta
and prod-stable branches.

This results in the main branch always being deployed on stage-beta and
stage-stable, and the prod-beta and prod-stable branches being synced on
release.
2022-04-27 17:48:43 +02:00
lucasgarfield
d7035d544b ImagesTable: Show UUID in expandable details row
This commit displays the UUID in an expandable details row. This is
necessary because if an image was named, the UUID was not displayed.
It is important that a user know the UUID for troubleshooting, for
example in the case of requesting help with an image.

To facilitate this, the original Table component was converted to a
TableComposable component. TableComposable is newer and recommended over
the older Table by PatternFly.
2022-04-26 16:11:30 +02:00
Gianluca Zuccarelli
110c0c674b
Fix docker stack (#713)
* devel: update composer config

Update some of the config for the docker-compose
file since there have been a few changes and the
config is slightly out of date. Additionally, a
refresh_token parameter was added to the oauth_url
since this is used by composer's mock openid provider
to generate the `rh-id-org` key in the jwt token.

* distribution: update frontend entrypoint

Update the command for spinning up the frontend
to match the new script command.

* devel: remove offline token

Remove the offline token and replace
with a client secret instead.

* devel: add metrics profile

Only launch the metrics containers when
explictly requested. This helps decrease
the logging output when the metrics are
not required. The metrics can be called
with `docker-compose --profile metrics up`
2022-04-26 14:00:53 +01: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
Sanne Raymaekers
445d56273f test: Use userEvent.click for checkboxes 2022-04-22 16:44:48 +02:00
Sanne Raymaekers
4da829ff8f CreateImageWizard: Don't show centos on non-beta
The distinction is made by checking if the distribution contained
'rhel'. This is the same way the review page determins if it should show
a registration tab.
2022-04-22 16:44:48 +02:00
Sanne Raymaekers
94c0dbbf3f package.json: Add prod-stable script 2022-04-22 16:44:48 +02:00
Gianluca Zuccarelli
2d6ed25cb9
README: update start scripts (#711)
Update the start scripts to match the updated scripts
in the `package.json`. Additionally, add instructions
for forwarding the domains to localhost for the stage
and prod since this is only mentioned in the `devel/`
readme.
2022-04-22 15:38:48 +01:00
Jacob Kozol
787b0180de CreateImageWizard: fix validation for activation keys
The validators are passed values by the useFieldApi hook. Adding this to
the activation key component allows the `required` validation to work.
2022-04-21 18:36:19 +02:00
lucasgarfield
fa7b0ca553 CreateImageWizard: Package search reset buttons and typeahead filter
Resolves #604. The available and chosen package search inputs now have a
reset button which resets the search and list elements to their default
states. This fixes a cosmetic issue related to the focus-visible width
being smaller than the search input width. This is accomplished by passing
an onClear prop to the search input.

The functions used to add all and selected packages were split from two
functions into four functions. The functions appear similiar but this is only
superficial; the logic is actually quite different and there is very
little code reuse. Four separate functions will be easier to understand and
maintain.

This commit includes several other modifications:
1. The chosen package search is now a typeahead filter. This brings it
   in line with PatternFly dual list selector examples.
2. The available package search button has changed to be in line with
   the PatternFly <SearchInput /> component examples.
3. Package sorting behavior is now consistent. Previously, packages would be
   sorted if 'add all' was used but not if 'add selected' was used. Now
   the default behavior is to always sort the package list.
2022-04-21 16:05:18 +02:00
Sanne Raymaekers
cc6a96c05d .travis: Enable stage-stable and prod-stable branches 2022-04-21 14:42:55 +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
Sanne Raymaekers
3a74c564de .travis: Introduce simplified custom release script
The default release script doesn't push `main` to stage-beta, so
reintroduce the custom_release script. This script is simplified
however, and doesn't push to the ci/qa environments as those aren't used
by image-builder anyway.
2022-04-14 14:22:49 +02:00
Sanne Raymaekers
940caa87bd .travis: Drop custom release script 2022-04-14 13:43:03 +02:00
Sanne Raymaekers
ceb7f3ceef config: Let frontend-components set deployment in prod config
This got broken in #696, `deployment` never actually got set during the
release build process, and now we default to
`apps`. `frontend-components` will automatically do the right thing and
set the deployment based on the branch name.
2022-04-14 13:05:02 +02:00
Sanne Raymaekers
dd6f91c599 config: Prep prod webpack config for ga 2022-04-12 20:03:38 +02:00
Sanne Raymaekers
d09108aef2 config: Move deployment under general webpack config
`deployment` is not specific to the proxy.
2022-04-12 20:03:38 +02:00
Sanne Raymaekers
c124439112 package.json: Simplify scripts
It's important to have NODE_ENV=production during build time in travis,
as packages can have different build artifacts depending on the NODE_ENV
value.
2022-04-12 20:03:38 +02:00
Sanne Raymaekers
7a6f177aa5 config: Remove duplicate value in dev webpack conf 2022-04-12 20:03:38 +02:00
Sanne Raymaekers
ce2d1d6dcc config: Drop skipChrome2
This defaults to false.
2022-04-12 20:03:38 +02:00
Sanne Raymaekers
1b471b762d test: Wait for rendering to finish in keyboard accessability test
Waits for components to finish rendering before continuing. This gets
rid of the test warnings.
2022-04-12 13:07:50 +02:00
Sanne Raymaekers
bbd3623414 CreateImageWizard/FileSystem: Default to 0 if size input is NaN
This gets rid of prop warnings during tests.
2022-04-12 13:07:50 +02:00
dependabot[bot]
f9d003995d build(deps): bump @patternfly/patternfly from 4.183.1 to 4.185.1
Bumps [@patternfly/patternfly](https://github.com/patternfly/patternfly) from 4.183.1 to 4.185.1.
- [Release notes](https://github.com/patternfly/patternfly/releases)
- [Changelog](https://github.com/patternfly/patternfly/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/patternfly/patternfly/compare/prerelease-v4.183.1...prerelease-v4.185.1)

---
updated-dependencies:
- dependency-name: "@patternfly/patternfly"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 12:48:22 +02:00
dependabot[bot]
bc981299cc build(deps): bump @patternfly/react-table from 4.67.19 to 4.71.16
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 4.67.19 to 4.71.16.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.67.19...@patternfly/react-table@4.71.16)

---
updated-dependencies:
- dependency-name: "@patternfly/react-table"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 11:44:21 +02:00
dependabot[bot]
1f389e5453 build(deps): bump @redhat-cloud-services/frontend-components
Bumps [@redhat-cloud-services/frontend-components](https://github.com/RedHatInsights/frontend-components) from 3.8.3 to 3.8.4.
- [Release notes](https://github.com/RedHatInsights/frontend-components/releases)
- [Commits](https://github.com/RedHatInsights/frontend-components/commits)

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/frontend-components"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 09:59:55 +02:00
dependabot[bot]
d07aa8b249 build(deps-dev): bump @redhat-cloud-services/frontend-components-config
Bumps [@redhat-cloud-services/frontend-components-config](https://github.com/RedHatInsights/frontend-components) from 4.6.6 to 4.6.7.
- [Release notes](https://github.com/RedHatInsights/frontend-components/releases)
- [Commits](https://github.com/RedHatInsights/frontend-components/commits)

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/frontend-components-config"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 09:33:12 +02:00
dependabot[bot]
83383281ed build(deps): bump moment from 2.29.1 to 2.29.2
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 18:23:58 +02:00
Sanne Raymaekers
f6aa58e3e3 CreateImageWizard: Single css file
All css applies to the entire page. To make it clearer having a single
css file for the entire wizard.
2022-04-11 17:49:16 +02:00
dependabot[bot]
c5dca74092 build(deps-dev): bump stylelint from 14.6.0 to 14.6.1
Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.6.0 to 14.6.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/14.6.0...14.6.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 17:36:30 +02:00
dependabot[bot]
7a9143c79e build(deps-dev): bump @testing-library/dom from 8.11.4 to 8.13.0
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library) from 8.11.4 to 8.13.0.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases)
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v8.11.4...v8.13.0)

---
updated-dependencies:
- dependency-name: "@testing-library/dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 15:49:18 +02:00
dependabot[bot]
f8c7b1f551 build(deps-dev): bump eslint from 8.11.0 to 8.13.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.11.0 to 8.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.11.0...v8.13.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 13:41:12 +02:00
Jacob Kozol
7a58581740 package.json: temporarily include @babel/eslint-parser
This can be reverted once our eslintrc is updated to the insights
standards.
2022-04-11 13:18:30 +02:00
Jacob Kozol
c136458735 babel: update the babel config
The babel config and dependencies now match those used by the
https://github.com/RedHatInsights/frontend-starter-app. This includes
switching the file type of the babel config and cleaning up the babel
dependencies.
2022-04-11 13:18:30 +02:00
Chloe Kaubisch
10f774a8c5 CreateImageWizard: fix label spacing
Decrease the spacing below labels from 8px to 4px in accordance with the mocks.
Fixes #597
2022-04-08 14:08:48 +02:00
Sanne Raymaekers
ed12903519 Revert "CreateImageWizard: Disable vmware and installer images"
This reverts commit 8e4b4ff6d5.
2022-04-06 11:30:09 +01: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
Sanne Raymaekers
787e1ba5ce FileSystemConfiguration: Remove redundant dragging state changes
This is covered by onDragEnd, which always gets called when onDrop gets
called.
2022-04-04 15:06:29 +02:00