Commit graph

2396 commits

Author SHA1 Message Date
regexowl
c1edc53c2f devDeps: Install madge
This installs [madge](https://www.npmjs.com/package/madge), a tool for finding circular dependencies. A config file is also added to ignore type-only imports.
2024-10-11 14:55:03 +02:00
dependabot[bot]
14ec62ae8f build(deps-dev): bump sass from 1.79.4 to 1.79.5
Bumps [sass](https://github.com/sass/dart-sass) from 1.79.4 to 1.79.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.79.4...1.79.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-11 08:08:22 +02:00
dependabot[bot]
a54474b90f build(deps-dev): bump @redhat-cloud-services/frontend-components-config
Bumps [@redhat-cloud-services/frontend-components-config](https://github.com/RedHatInsights/frontend-components) from 6.3.0 to 6.3.1.
- [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>
2024-10-10 09:46:20 +02:00
regexowl
42aed9a2b2 test: Clean up Create Image Wizard test a bit
This cleans up the Create Image Wizard test a bit to make it easier to read through the code blocks.
2024-10-10 08:47:49 +02:00
regexowl
4e23c476e8 Wizard/test: Implement keydown for target tiles
This implements onKeyDown functionality for the Public cloud tiles, allowing selecting them with a Space key.

Corresponding test was also re-enabled.
2024-10-10 08:47:49 +02:00
dependabot[bot]
a8234d3d98 build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.8.0 to 8.8.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.8.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 09:37:00 +02:00
dependabot[bot]
cacb623194 build(deps-dev): bump typescript from 5.6.2 to 5.6.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.2...v5.6.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 08:30:20 +02:00
Anna Vítová
3034f48c39 update compliance and content sources api 2024-10-08 17:57:40 +02:00
dependabot[bot]
ce94f00fd1 build(deps-dev): bump @typescript-eslint/parser from 8.8.0 to 8.8.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.8.0 to 8.8.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/v8.8.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 16:42:15 +02:00
regexowl
d46f6b83ac Wizard: Fix repos toggle height
The repos toggle height was slightly bigger than the Available/Selected toggle. This was caused by the popover button. Changes its size to small to fix the issue.
2024-10-08 16:44:36 +03:00
regexowl
49847e9adb test: Enable First boot's shebang test
This re-enables test that checks whether correct error message gets displayed when shebang is missing from the first boot script.
2024-10-08 14:19:38 +02:00
regexowl
f33a050120 Wizard: Default to Included repos in package search
Previously when you searched for package from repositories recommendations and switched to "Other repos", new search left you in Other repos and didn't show results even if they were found in "Included". Since we search for recommendations only when no matches were found in distro and custom repos, the results will be always empty.

This solves the problem by defaulting to "Included repos" toggle with every new search, limiting clicks required from the user.

How to reproduce previous behaviour:
1. search for 'gnuplot' packages
2. no results should be found, switch to "Other repos"
3. search for a distro/custom repo package like "vim"

Previous behaviour - the "Other repos" toggle is still selected, showing no results. When switching to "Included repos" manually, the results can be found there.

New behaviour - "Included repos" gets automatically selected, showing results for packages found in distro and custom repos.
2024-10-08 12:39:12 +03:00
dependabot[bot]
79ace37488 build(deps): bump @redhat-cloud-services/frontend-components
Bumps [@redhat-cloud-services/frontend-components](https://github.com/RedHatInsights/frontend-components) from 4.2.15 to 4.2.16.
- [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>
2024-10-08 09:20:58 +02:00
dependabot[bot]
16f45f8b0e build(deps): bump @reduxjs/toolkit from 2.2.7 to 2.2.8
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](https://github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 08:27:15 +02:00
regexowl
d098d25892 test: Cleanup OpenSCAP tests
This cleans up OpenSCAP test file, utilising helper functions we already have and updating names of test and describe blocks to be consistent throughout the test files.
2024-10-07 16:43:22 +03:00
regexowl
3070f55354 test: Move OpenSCAP tests
This moves OpenSCAP tests from `CreateImageWizard.compliance.tsx` test file directly to `Oscap.test.tsx`.
2024-10-07 16:43:22 +03:00
regexowl
b4ac543dfb test: Re-enable tests that failed for Node 18
This re-enables and updates tests that were failing due to insufficient resources when tested with Node 18.
2024-10-07 14:14:18 +03:00
regexowl
edeee97577 test: Cleanup Custom repositories tests
This moves code blocks to helper functions where possible and cleans up the tests a bit.
2024-10-07 14:14:18 +03:00
regexowl
512d6f8859 test: Move Custom repositories tests to Repositories.test.tsx
This moves Custom repositories tests from `CreateImageWizard.content.test.tsx` to `Repositories.test.tsx`.
2024-10-07 14:14:18 +03:00
regexowl
ae5074a83d test: Update test naming
The incorrect "registration" name is bothering me. Also updated the name of the first describe block to match the pattern we have in other test files.
2024-10-07 13:06:13 +03:00
regexowl
bde02b7eec Wizard: Fix incorrect aria labels
This updates previously incorrect aria labels for VMware popovers.
2024-10-07 10:48:55 +03:00
regexowl
5ad7470031 src: Prefetch list of targets on hover of Create blueprint button
This prefetches list of possible targets based on distribution for `onMouseEnter` event of Create blueprint button.
2024-10-06 11:38:57 +03:00
dependabot[bot]
f75d1ad45d build(deps-dev): bump @redhat-cloud-services/frontend-components-config
Bumps [@redhat-cloud-services/frontend-components-config](https://github.com/RedHatInsights/frontend-components) from 6.2.9 to 6.3.0.
- [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-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 09:25:47 +02:00
dependabot[bot]
46b91a3237 build(deps-dev): bump eslint-plugin-import from 2.30.0 to 2.31.0
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.30.0...v2.31.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 08:22:52 +02:00
dependabot[bot]
ab8b690e34 build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.7.0 to 8.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.8.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 09:28:09 +02:00
dependabot[bot]
0e065ef7be build(deps-dev): bump @types/react from 18.3.10 to 18.3.11
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.10 to 18.3.11.
- [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-10-03 09:20:19 +02:00
dependabot[bot]
e5e8e749a2 build(deps-dev): bump eslint-plugin-react from 7.37.0 to 7.37.1
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.37.0 to 7.37.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.37.0...v7.37.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>
2024-10-03 09:12:23 +02:00
dependabot[bot]
856d84dc53 build(deps): bump @patternfly/patternfly from 5.4.0 to 5.4.1
Bumps [@patternfly/patternfly](https://github.com/patternfly/patternfly) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/patternfly/patternfly/releases)
- [Changelog](https://github.com/patternfly/patternfly/blob/main/release.config.js)
- [Commits](https://github.com/patternfly/patternfly/compare/v5.4.0...v5.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 09:09:35 +02:00
dependabot[bot]
db38f81b93 build(deps-dev): bump @typescript-eslint/parser from 8.7.0 to 8.8.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.7.0 to 8.8.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/v8.8.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-10-02 08:11:54 +02:00
regexowl
c30c499a2b devDeps: Manually bump msw from 2.4.4 to 2.4.9
This bumps msw from 2.4.4 to 2.4.9
2024-10-01 17:40:33 +03:00
regexowl
1e9f2f85d7 deps: Bump @scalprum/react-core from 0.9.1 to 0.9.3
This bumps @scalprum/react-core from 0.9.1 to 0.9.3.
2024-10-01 16:38:18 +03:00
regexowl
7692445572 test: Add a test for combination of OpenSCAP and first boot
This adds a test to check that blueprint request includes enabled services from both OpenSCAP profile and first boot script.
2024-10-01 12:34:30 +02:00
regexowl
ec96df5527 test: Re-enable "First boot request generated correctly" test
This re-enables test that checks whether the request was generated correctly after creating a blueprint that includes a first boot script.
2024-10-01 12:34:30 +02:00
regexowl
d8c3a49c19 vitest.config: Inline @monaco-editor
`@monaco-editor` needs to be inlined in order to run the tests smoothly without any errors.

Note: dependencies include both `@monaco-editor` and `monaco-editor`, only the `@` one needs to be inlined in test dependencies.
2024-10-01 12:34:30 +02:00
dependabot[bot]
525e456bd0 build(deps): bump @patternfly/react-table from 5.4.0 to 5.4.1
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.4.0...@patternfly/react-table@5.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 11:22:28 +02:00
dependabot[bot]
b1c5c6289d build(deps): bump @patternfly/react-code-editor from 5.4.1 to 5.4.3
Bumps [@patternfly/react-code-editor](https://github.com/patternfly/patternfly-react) from 5.4.1 to 5.4.3.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.4.1...@patternfly/react-code-editor@5.4.3)

---
updated-dependencies:
- dependency-name: "@patternfly/react-code-editor"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 09:37:41 +02:00
dependabot[bot]
2f5d5cfcdf build(deps): bump @patternfly/react-core from 5.4.0 to 5.4.1
Bumps [@patternfly/react-core](https://github.com/patternfly/patternfly-react) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.4.0...@patternfly/react-core@5.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 08:37:07 +02:00
Dominik Vagner
2ef545111f Wizard: remove no repos selected message 2024-09-30 16:58:08 +02:00
dependabot[bot]
13892718cd build(deps-dev): bump @vitejs/plugin-react from 4.3.1 to 4.3.2
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.3.2/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 10:41:56 +02:00
dependabot[bot]
ed6915cd4b build(deps-dev): bump @types/react from 18.3.9 to 18.3.10
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.9 to 18.3.10.
- [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-09-30 10:33:59 +02:00
dependabot[bot]
1b9fb747bc build(deps-dev): bump sass from 1.79.3 to 1.79.4
Bumps [sass](https://github.com/sass/dart-sass) from 1.79.3 to 1.79.4.
- [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.79.3...1.79.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 10:22:21 +02:00
Florian Schüller
faa3385054 CreateImageWizard/requestMapper: fix enabling firstboot
Reorder the code to be easier to read:

when there none of service.{enabled|masked|disabled}
firstboot also is not enabled (if requested)
this patch fixes this bug
2024-09-30 10:14:11 +02:00
Florian Schüller
bd8eaaf8b9 CreateImageWizard/requestMapper: fix enabling firstboot
when there none of service.{enabled|masked|disabled}
firstboot also is not enabled (if requested)
this patch fixes this bug
2024-09-30 10:14:11 +02:00
Gianluca Zuccarelli
506e18af77 api: update image-builder api
Adds the new CCN profiles for RHEL9 & Centos 9
2024-09-30 08:50:08 +02:00
Gianluca Zuccarelli
4ff13d7c13 api: update compliance api 2024-09-30 08:50:08 +02:00
dependabot[bot]
aa02ad4e38 build(deps-dev): bump @types/react-redux from 7.1.33 to 7.1.34
Bumps [@types/react-redux](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-redux) from 7.1.33 to 7.1.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-redux)

---
updated-dependencies:
- dependency-name: "@types/react-redux"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 09:16:18 +02:00
dependabot[bot]
26a972342e build(deps-dev): bump eslint-plugin-react from 7.36.1 to 7.37.0
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.36.1 to 7.37.0.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.36.1...v7.37.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 08:08:55 +02:00
dependabot[bot]
1b775f50c4 build(deps-dev): bump eslint from 8.57.0 to 8.57.1
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 8.57.1.
- [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.57.0...v8.57.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 09:29:05 +02:00
dependabot[bot]
3c542b70af build(deps-dev): bump @typescript-eslint/parser from 8.6.0 to 8.7.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.6.0 to 8.7.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/v8.7.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-09-26 08:28:45 +02:00
regexowl
acbb07ad53 Wizard: OpenSCAP profile is not a mandatory field
OpenSCAP profile was marked as a mandatory field, this removes the red asterisk as the profile is optional.
2024-09-25 17:37:33 +02:00