dependabot[bot]
c20a120ec9
build(deps): bump @data-driven-forms/pf4-component-mapper
...
Bumps [@data-driven-forms/pf4-component-mapper](https://github.com/data-driven-forms/react-forms/tree/HEAD/packages/pf4-component-mapper ) from 3.15.7 to 3.16.0.
- [Release notes](https://github.com/data-driven-forms/react-forms/releases )
- [Commits](https://github.com/data-driven-forms/react-forms/commits/v3.16.0/packages/pf4-component-mapper )
---
updated-dependencies:
- dependency-name: "@data-driven-forms/pf4-component-mapper"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-07 00:19:53 +01:00
dependabot[bot]
878b8a88fd
build(deps-dev): bump babel-jest from 27.4.1 to 27.4.2
...
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest ) from 27.4.1 to 27.4.2.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v27.4.2/packages/babel-jest )
---
updated-dependencies:
- dependency-name: babel-jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-01 19:58:34 +01:00
dependabot[bot]
2f744d3c17
build(deps-dev): bump jest from 27.4.1 to 27.4.3
...
Bumps [jest](https://github.com/facebook/jest ) from 27.4.1 to 27.4.3.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v27.4.1...v27.4.3 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-01 19:01:16 +01:00
Sanne Raymaekers
104707fb87
CreateImageWizard: Detail what subscription means
...
Fixes #126
2021-12-01 18:08:24 +01:00
Sanne Raymaekers
6567323ef6
Router: Replace landing with catch-all route
...
This also mitigates the issue where clicking the image-builder nav link
would redirect you to `image-builder/image-builder` if image-builder was
already opened. And `/` didn't catch that path.
2021-11-30 16:12:43 +01: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
c230d41d88
ImagesTable: add title to Instance column
...
Also, test the table has expected headers.
2021-11-30 12:08:52 +01:00
dependabot[bot]
cb8c25b743
build(deps-dev): bump jest from 27.4.0 to 27.4.1
...
Bumps [jest](https://github.com/facebook/jest ) from 27.4.0 to 27.4.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v27.4.0...v27.4.1 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 11:11:22 +01:00
dependabot[bot]
8394e79130
build(deps-dev): bump sass from 1.43.5 to 1.44.0
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.43.5 to 1.44.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.43.5...1.44.0 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 11:00:43 +01:00
dependabot[bot]
ee4f08a3ab
build(deps-dev): bump babel-jest from 27.3.1 to 27.4.1
...
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest ) from 27.3.1 to 27.4.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v27.4.1/packages/babel-jest )
---
updated-dependencies:
- dependency-name: babel-jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 10:54:15 +01:00
dependabot[bot]
9a2bba6784
build(deps-dev): bump jest from 27.3.1 to 27.4.0
...
Bumps [jest](https://github.com/facebook/jest ) from 27.3.1 to 27.4.0.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v27.3.1...v27.4.0 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 10:43:26 +01:00
Sanne Raymaekers
af5f734328
App: Drop permission check
2021-11-29 20:59:15 +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
Sanne Raymaekers
0d5ab8b86b
CreateImageWizard: Correct name for packages step
2021-11-29 18:15:51 +01:00
Sanne Raymaekers
36d54a94e0
store: Drop unused pendingCompose section
...
With the introduction of the DDF wizard this part of the store isn't
used anymore.
2021-11-29 18:07:55 +01:00
Sanne Raymaekers
8ac1f8ae1d
CreateImageWizard: Prevent dom validation error
...
Prevents `...<div> cannot appear as a descendant of <p>.` when running
`npm run travis:verify`.
2021-11-29 17:58:53 +01:00
dependabot[bot]
66f4325efc
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.5.5 to 4.5.6.
- [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>
2021-11-29 17:51:25 +01:00
dependabot[bot]
4f1e8c0172
build(deps): bump redux-thunk from 2.4.0 to 2.4.1
...
Bumps [redux-thunk](https://github.com/reduxjs/redux-thunk ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/reduxjs/redux-thunk/releases )
- [Commits](https://github.com/reduxjs/redux-thunk/compare/v2.4.0...v2.4.1 )
---
updated-dependencies:
- dependency-name: redux-thunk
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 17:51:06 +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
dependabot[bot]
054a8d1752
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.5.4 to 4.5.5.
- [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>
2021-11-26 13:56:55 +01:00
dependabot[bot]
505fd21887
build(deps-dev): bump sass from 1.43.4 to 1.43.5
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.43.4 to 1.43.5.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.43.4...1.43.5 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-26 13:56:37 +01:00
dependabot[bot]
b0d7637eb0
build(deps-dev): bump @testing-library/jest-dom from 5.15.0 to 5.15.1
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.15.0 to 5.15.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.15.0...v5.15.1 )
---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 12:29:48 +01:00
dependabot[bot]
ec59f1164c
build(deps): bump @redhat-cloud-services/frontend-components-utilities
...
Bumps [@redhat-cloud-services/frontend-components-utilities](https://github.com/RedHatInsights/frontend-components ) from 3.2.5 to 3.2.6.
- [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-utilities"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 12:00:34 +01:00
dependabot[bot]
40a0678a8e
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.5.3 to 4.5.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-config"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 12:00:15 +01:00
Jacob Kozol
86158bd94e
CreateImageWizard: add loading icon when creating image
2021-11-23 10:54:11 +01:00
Jacob Kozol
24a0f39857
CreateImageWizard: validate the subscription GUID is a valid GUID
2021-11-23 10:47: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
dependabot[bot]
eac76a61eb
build(deps): bump @patternfly/react-core from 4.168.8 to 4.175.4
...
Bumps [@patternfly/react-core](https://github.com/patternfly/patternfly-react ) from 4.168.8 to 4.175.4.
- [Release notes](https://github.com/patternfly/patternfly-react/releases )
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@4.168.8...@patternfly/react-core@4.175.4 )
---
updated-dependencies:
- dependency-name: "@patternfly/react-core"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 12:45:06 +01:00
Jacob Kozol
6468d33d25
ImagesTable: update pending text
...
"Image build is pending" is more in line with the rest of our status
texts.
2021-11-22 00:32:12 +00:00
Jacob Kozol
5612d25f0d
CreateImageWizard: update style
...
The form's gutters were unnecessarily large. They are now slightly
smaller to fit all data without scrolling.
2021-11-19 16:25:23 +00: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
dependabot[bot]
3be89815f4
build(deps): bump @patternfly/react-table from 4.37.8 to 4.44.4
...
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react ) from 4.37.8 to 4.44.4.
- [Release notes](https://github.com/patternfly/patternfly-react/releases )
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.37.8...@patternfly/react-table@4.44.4 )
---
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>
2021-11-19 12:12:16 +01:00
dependabot[bot]
5055813ed1
build(deps-dev): bump eslint-plugin-react from 7.27.0 to 7.27.1
...
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react ) from 7.27.0 to 7.27.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases )
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1 )
---
updated-dependencies:
- dependency-name: eslint-plugin-react
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-19 11:22:46 +01:00
dependabot[bot]
2d8b23aabc
build(deps): bump @redhat-cloud-services/frontend-components-notifications
...
Bumps [@redhat-cloud-services/frontend-components-notifications](https://github.com/RedHatInsights/frontend-components ) from 3.2.4 to 3.2.5.
- [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-notifications"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-19 11:06:13 +01:00
dependabot[bot]
c8a44d9d27
build(deps): bump @patternfly/patternfly from 4.151.4 to 4.159.1
...
Bumps [@patternfly/patternfly](https://github.com/patternfly/patternfly ) from 4.151.4 to 4.159.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.151.4...prerelease-v4.159.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>
2021-11-18 20:44:21 +01:00
dependabot[bot]
fae09f8940
build(deps-dev): bump @babel/plugin-transform-runtime
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.16.0 to 7.16.4.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.4/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 19:44:56 +01:00
dependabot[bot]
2c643cb534
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.5.2 to 4.5.3.
- [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>
2021-11-18 19:14:37 +01:00
dependabot[bot]
1326180f78
build(deps-dev): bump @babel/preset-env from 7.16.0 to 7.16.4
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.16.0 to 7.16.4.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.4/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 19:07:34 +01:00
Jacob Kozol
fef6884650
test: update tests for React Router v6
...
The test Router now takes location and navigator instead of history.
This also means that the history function no longer needs to be mocked
by jest. Instead, the location and pathname can simply be expected.
2021-11-18 19:06:56 +01:00
Jacob Kozol
b71aa75df3
src: replace React Router history with navigate
...
React Router v6 now has useNavigate() instead of useHistory.
useNavigate() is equivalent to useHistory().push();
2021-11-18 19:06:56 +01:00
Jacob Kozol
50a515db1e
Router: change Redirect to a Navigate
...
React router is moving away from redirects in favor of server side
redirecting since redirects are confusing because the initial "invalid"
route will still return a 200 status and redirecting unnecessarily
wastes resources. Instead of server routing we can also place our
Redirect inside of a Route as an element. Also, instead of using a
Redirect we use a Navigate. This is due to changes in how React Router
handles the history.
2021-11-18 19:06:56 +01:00
Jacob Kozol
81acb2bb57
Router: update Route components
...
In React Router v6 the Route paramater 'exact' is replaced by using a
trailing * to indicate the path matches deeply. Also, elements are now
preferred over components. React, itself, has also been making this
switch. Using elements is simpler than components and integrates
better with hooks.
2021-11-18 19:06:56 +01:00
Jacob Kozol
c6f2ed227f
Router: change the Switch component to a Routes component
...
In React Router v6 the Switch element is replaced by Routes. All links
inside a <Routes> are relative and routes can be placed in any order
now.
2021-11-18 19:06:56 +01:00
Jacob Kozol
b34f655524
package.json: update react router to 6.0.2
2021-11-18 19:06:56 +01:00