regexowl
c7a80d0e85
node: Bump NODE_BUILD_VERSION
...
This bumps NODE_BUILD_VERSION in `build_deploy` and `pr_check` scripts from the default 16 to version 18.
2024-01-24 11:44:39 +01:00
Ondrej Ezr
25144511ad
api: split pulling API changes and regenerating new API
...
For checking wether the api was tempered with, we need separate action,
that just checks the code against the currently pulled spec.
This introduces two subactions for `npx api`.
These are `npx api:generate` and `npx api:pull`.
2024-01-23 12:39:32 +01:00
lucasgarfield
82e096a19c
Travis: Remove Travis CI
...
We have replaced the Travis CI with a Github action, `dev-checks.yml`.
Travis is less reliable than the Github dev checks, recently it has been
flaking on timeouts. Additionally, removing it will allow us to move the
owner of the image-builder-frontend repository from RedHatInsights to
osbuild.
2024-01-22 16:37:35 +01:00
lucasgarfield
46ac78b1de
api: update image builder api via npm run api
...
There have been some recent updates to the /experimental/ routes related
to blueprints, this commit pulls them in.
2024-01-22 15:31:33 +01:00
lucasgarfield
7982ec4981
api: Modify api.sh so it downloads image builder api spec
...
Use curl to download `api.yaml` from `osbuild/image-builder` in
`api.sh`.
Now we do not need to manually download `api.yaml` from `image-builder`
before running `npm run api`.
2024-01-22 15:31:33 +01:00
lucasgarfield
819863835b
LandingPage: Hotfix to remove exposed blueprint buttons
...
Commit bae6435fd9 adds scaffolding for the
blueprint table. Blueprint features should be hidden behind experimental
flags. The new buttons related to creating blueprints and rebuilding
images in the header were not hidden behind the experimental flag, this
commit fixes that and does so.
bae6435fd9 also changed the header title
from "Image Builder" to "Images". This change has been a long time
coming - it is being left in for now. We may want to revisit the copy in
the popovers to align it as the term "Image Builder" is still being used
in those.
2024-01-22 10:06:40 +01:00
dependabot[bot]
86e75f525b
build(deps-dev): bump @testing-library/dom from 9.3.3 to 9.3.4
...
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library ) from 9.3.3 to 9.3.4.
- [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/v9.3.3...v9.3.4 )
---
updated-dependencies:
- dependency-name: "@testing-library/dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 08:52:29 +01:00
Amir
c2e7c34d6e
feat(HMS-3386): add blueprints initial layout
2024-01-19 17:20:21 +01:00
regexowl
0982cbe8db
test: Update tests
...
After bumping redux from 4.2.1 to 5.0.1 and @reduxjs/toolkit from 1.9.5 to 2.0.1 some tests started to fail. Added async logic solves the issue.
2024-01-19 10:23:02 +01:00
regexowl
fdad6adb92
deps: Bump redux and @reduxjs/toolkit
...
This bumps redux from version 4.2.1 to 5.0.1 and @reduxjs/toolkit from 1.9.5 to 2.0.1
2024-01-19 10:23:02 +01:00
regexowl
2a9fcd7470
Wizard: Indicate disabled packages
...
When a package is added to the chosen packages it stays in the list of available packages, but gets disabled as an option.
This adds a visual indication in a form of greyed out name of the package.
2024-01-19 09:47:46 +01:00
dependabot[bot]
3db7995194
build(deps-dev): bump @typescript-eslint/parser from 6.18.1 to 6.19.0
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 6.18.1 to 6.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.19.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 08:47:34 +01:00
dependabot[bot]
dc747eaefa
build(deps): bump @scalprum/react-core from 0.5.1 to 0.6.6
...
Bumps [@scalprum/react-core](https://github.com/scalprum/scaffloding ) from 0.5.1 to 0.6.6.
- [Release notes](https://github.com/scalprum/scaffloding/releases )
- [Changelog](https://github.com/scalprum/scaffolding/blob/main/release.config.js )
- [Commits](https://github.com/scalprum/scaffloding/commits/@scalprum/react-core-0.6.6 )
---
updated-dependencies:
- dependency-name: "@scalprum/react-core"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-18 08:40:46 +01:00
regexowl
f90718815b
test: Replace .getBy queries by awaited .findBy
...
Components sometimes render slower than tests run which causes failures when the test suite expects elements that did not finish their rendering yet.
This should help to prevent most of possible problems with the rendering speed.
2024-01-17 17:19:57 +01:00
regexowl
7b61700c06
V2Wizard: Enable tests for the Registration step
...
This re-enables all the tests that are checking the behavior of the Registration step.
2024-01-17 09:33:13 +01:00
regexowl
360984df7c
V2Wizard: Add components to the Registration step
...
This migrates all the needed components from Javascript and DDF to Typescript and RTK.
New slices were added for registration type and activation key.
Disabling the "Next" button should work correctly now.
2024-01-17 09:33:13 +01:00
regexowl
9ce438295d
V2Wizard: Create a folder for Registration step and copy needed components
...
This created a new folder for the Registration step and copies components that will be needed:
- ActivationKeyInformation.tsx
- ActivationKeys.tsx
- Registration.tsx
- RegistrationKeyInformation.tsx
2024-01-17 09:33:13 +01:00
dependabot[bot]
1706448670
build(deps-dev): bump @types/react from 18.2.36 to 18.2.48
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 18.2.36 to 18.2.48.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-17 08:50:36 +01:00
lucasgarfield
d26a7658db
V2Wizard: Fix wizard initializeWizard action
...
Fixes #1552 .
The wizardSlice's initializeWizard action was not working because when it
was passed to `dispatch()` as an argument it was missing the `()`...
oops!
It also needs to be dispatched inside of a useEffect hook with an empty
dependency array so that it is only dispatched once, when the wizard
opens.
2024-01-16 17:23:22 +01:00
dependabot[bot]
14d80945e7
build(deps-dev): bump moment from 2.29.4 to 2.30.1
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.4 to 2.30.1.
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.29.4...2.30.1 )
---
updated-dependencies:
- dependency-name: moment
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 09:00:07 +01:00
regexowl
55686cc844
V2Wizard: Improve validators
...
Follow up to https://github.com/RedHatInsights/image-builder-frontend/pull/1548
This cleans up implementation for the AWS account ID ad GCP e-mail validators.
2024-01-15 17:37:28 +01:00
lucasgarfield
3ed2192358
V2Wizard: Enable GCP tests
...
All tests passing except when required to move to registration step as
it has not been implemented yet.
2024-01-15 16:42:28 +01:00
lucasgarfield
ce23667833
V2Wizard: Add datatest-id support to <ValidatedTextInput>
...
Adds a `dataTestId` prop to the `<ValidatedTextInput>`.
2024-01-15 16:42:28 +01:00
lucasgarfield
698037a7dc
V2Wizard: Uncomment relevant GCP tests and add data-testids
...
The tests have not been modified at this point, only uncommented, so the
next commit will have a clear diff.
Some data-testids were added to radio selectors and the Google principle
input as well for use in the tests.
2024-01-15 16:42:28 +01:00
lucasgarfield
5a3726a4c8
V2Wizard: Update GCP validator and state management
...
The e-mail validator now requires a domain.
Switching from 'withGoogle' to 'withInsights' now sets the other GCP
related options to 'undefined' in order to keep the store state such
that it accurately reflects the current wizard state.
This is done in the reducer, not via a listener. That is a bit
inconsistent with the current listeners in place but this is an evolving
design and the inconsistency is acceptable for now. We may either accept
it, move the reducer actions here into listeners, or move the existing
listeners into reducers at some point in the future.
2024-01-15 16:42:28 +01:00
lucasgarfield
7c8cfe7f63
V2Wizard: Add <Gcp> step
...
`<Aws>` state is now managed with RTK instead of DDF.
2024-01-15 16:42:28 +01:00
dependabot[bot]
2caa1e8f72
build(deps-dev): bump @typescript-eslint/parser from 6.13.0 to 6.18.1
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 6.13.0 to 6.18.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.18.1/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 08:59:21 +01:00
mgold1234
3f51acdb85
Oscap: convert oscap javaScript file to typeScript file
...
this commit convert oscap file from JavaScript to TypeScript
2024-01-12 13:12:33 +01:00
dependabot[bot]
ad2a6151e1
build(deps-dev): bump @types/react-dom from 18.2.17 to 18.2.18
...
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 18.2.17 to 18.2.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 08:51:12 +01:00
Sanne Raymaekers
54a560670e
api: update image builder api
...
Include the experimental blueprint endpoints.
2024-01-11 15:15:37 +01:00
lucasgarfield
9953207d25
V2Wizard: Refactor Aws step
...
We encountered a number of bugs with the previous implementation where
going to the next or previous step and returning to the AWS step
resulted in incorrectly displayed information about the selected source,
etc...
All state that needs to be available during the entire wizard life cycle
has been moved to RTK.
2024-01-11 09:22:18 +01:00
lucasgarfield
617b36ba4f
V2Wizard: Enabled tests for <Aws> substep of Image Output step
...
Most tests now passing, the one test that requires submission (not
implemented yet) is still disabled.
2024-01-11 09:22:18 +01:00
lucasgarfield
091c34431e
V2Wizard: Implement <Aws> subset of Image Output step
...
DDF has been dropped, RTK being used for state management now.
2024-01-11 09:22:18 +01:00
lucasgarfield
e5c55828e3
V2Wizard: Copy <AwsSourcesSelect> and convert to Typescript
...
No changes made, file simply copied so future commits have clear diffs
when dropping DDF.
2024-01-11 09:22:18 +01:00
lucasgarfield
f778b5431c
V2Wizard: Create foundation for Target Environments substep AWS
...
Substep for an AWS target environment created in wizard, component to
follow in subsequent commit.
2024-01-11 09:22:18 +01:00
dependabot[bot]
9a0e8da0f1
build(deps-dev): bump @babel/core from 7.23.6 to 7.23.7
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.23.6 to 7.23.7.
- [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.23.7/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 08:58:55 +01:00
dependabot[bot]
6e33a19706
build(deps): bump @data-driven-forms/react-form-renderer
...
Bumps [@data-driven-forms/react-form-renderer](https://github.com/data-driven-forms/react-forms/tree/HEAD/packages/react-form-renderer ) from 3.22.1 to 3.22.2.
- [Release notes](https://github.com/data-driven-forms/react-forms/releases )
- [Commits](https://github.com/data-driven-forms/react-forms/commits/v3.22.2/packages/react-form-renderer )
---
updated-dependencies:
- dependency-name: "@data-driven-forms/react-form-renderer"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 08:17:14 +01:00
dependabot[bot]
8ac60d1418
build(deps): bump redux-promise-middleware from 6.1.3 to 6.2.0
...
Bumps [redux-promise-middleware](https://github.com/pburtchaell/redux-promise-middleware ) from 6.1.3 to 6.2.0.
- [Release notes](https://github.com/pburtchaell/redux-promise-middleware/releases )
- [Commits](https://github.com/pburtchaell/redux-promise-middleware/compare/6.1.3...6.2.0 )
---
updated-dependencies:
- dependency-name: redux-promise-middleware
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 09:49:06 +01:00
dependabot[bot]
0dff24ee32
build(deps-dev): bump css-loader from 6.8.1 to 6.9.0
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 6.8.1 to 6.9.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases )
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.8.1...v6.9.0 )
---
updated-dependencies:
- dependency-name: css-loader
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 08:29:27 +01:00
mgold1234
a0a08ff5e8
app: useEffect warning fixes
...
This commit addresses warnings related to the react-hooks/exhaustive-deps rule.
It resolves these warnings by adding the missing dependencies to the useEffect hook.
2024-01-09 14:23:10 +01:00
dependabot[bot]
b6ff3323d5
build(deps): bump follow-redirects from 1.15.3 to 1.15.4
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.4 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 10:20:47 +01:00
dependabot[bot]
0fd8c937d4
build(deps): bump classnames from 2.3.2 to 2.5.1
...
Bumps [classnames](https://github.com/JedWatson/classnames ) from 2.3.2 to 2.5.1.
- [Changelog](https://github.com/JedWatson/classnames/blob/main/HISTORY.md )
- [Commits](https://github.com/JedWatson/classnames/compare/v2.3.2...v2.5.1 )
---
updated-dependencies:
- dependency-name: classnames
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 09:56:24 +01:00
lucasgarfield
e5f37450a1
V2Wizard: Enable <TargetEnvironment> specific tests
...
These tests have been updated to satisfy Typescript and are passing.
2024-01-08 11:59:23 +01:00
lucasgarfield
0acb93fe12
V2Wizard: Copy TargetEnvironment specific tests
...
No changes have been made to this file yet, it has just been copied for
the V2 wizard and converted to .tsx.
2024-01-08 11:59:23 +01:00
lucasgarfield
0153b98d25
V2Wizard: Enable tests for Image Output step
...
Tests for the Image Output step are enabled and passing.
2024-01-08 11:59:23 +01:00
lucasgarfield
f41f3c51b7
V2Wizard: Add <CentOSAcknowledgement> to Target Output step
...
The state from RTK is now used to determine whether or not to display
the CentOS acknowledgement.
2024-01-08 11:59:23 +01:00
lucasgarfield
779416785f
V2Wizard: Correctly enable/disable Next button for Image Output step
...
The 'next' button is now disabled if no target environments are selected
on the Image Output step.
2024-01-08 11:59:23 +01:00
lucasgarfield
788a63ead7
V2Wizard: Add listeners for <TargetEnvironment> in Image Output step
...
Listeners are used to monitor changes to the release (aka distribution)
and architecture. If either of these values is changed, the listener
will correct the list of target environments by removing unsupported
targets. e.g. aarch64 images do not support azure, if azure is a
selected target and the arch is changed from x86 to aarch64, azure will
be removed from the list of selected targets.
2024-01-08 11:59:23 +01:00
lucasgarfield
a3ef0cc2f7
V2Wizard: Add <TargetEnvironment> to Image Output step
...
DDF has been dropped from `<TargetEnvironment>`, state is managed with
RTK.
2024-01-08 11:59:23 +01:00
lucasgarfield
937219ba51
V2Wizard: Add <ArchSelect> to Image Output step
...
This commit drops the DDF dependency from the `<ArchSelect>`.
2024-01-08 11:59:23 +01:00