Commit graph

2619 commits

Author SHA1 Message Date
regexowl
34b4f243ff ImagesTable: Fix compose filtering by selected blueprint
The filtering was defaulting to version '1', making images of other versions not appear when selecting a blueprint.

How to reproduce:
1. create a blueprint
2. build an image
3. edit the blueprint to get it to version 2
4. build another image

Current behaviour:
- only image with version 1 is visible

After fix:
- both image for version 1 and image for version 2 of the blueprint should be visible when the blueprint is selected
2025-01-08 13:11:38 +01:00
Michal Gold
ba70753a80 wizard: add confirm password to users step (HMS-4903)
this commit add confirm password to users step
2025-01-08 11:10:29 +01:00
dependabot[bot]
b9d6cc886a build(deps): bump @patternfly/react-core from 5.4.1 to 5.4.12
Bumps [@patternfly/react-core](https://github.com/patternfly/patternfly-react) from 5.4.1 to 5.4.12.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.4.1...@patternfly/react-core@5.4.12)

---
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>
2025-01-08 09:22:02 +01:00
dependabot[bot]
c6f76cf4bd build(deps-dev): bump sass-loader from 16.0.3 to 16.0.4
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 16.0.3 to 16.0.4.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v16.0.3...v16.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-08 08:36:36 +01:00
Bryttanie House
29736d8d0c Wizard: switch snapshot date in wizard to RFC3339 2025-01-07 14:37:34 +01:00
Anna Vítová
e5934452ca src: add checkbox to confirm custom repos import
Importing custom repositories on behalf users might be unexpected. This
commit adds a checkbox to opt out.
2025-01-07 12:11:25 +01:00
Anna Vítová
b7b9d2ac24 src: add notification for custom repo imports
Show notification about imported custom repositories
2025-01-07 12:11:25 +01:00
Anna Vítová
e805c65f81 src: add custom repositories import feature
This allows sharing blueprints cross organizations even with custom
repositories.
2025-01-07 12:11:25 +01:00
dependabot[bot]
2bee0ef49b build(deps-dev): bump react-chartjs-2 from 5.2.0 to 5.3.0
Bumps [react-chartjs-2](https://github.com/reactchartjs/react-chartjs-2) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/reactchartjs/react-chartjs-2/releases)
- [Changelog](https://github.com/reactchartjs/react-chartjs-2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactchartjs/react-chartjs-2/compare/v5.2.0...v5.3.0)

---
updated-dependencies:
- dependency-name: react-chartjs-2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-07 09:14:21 +01:00
dependabot[bot]
406e42f52f build(deps): bump @patternfly/react-table from 5.4.12 to 5.4.13
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 5.4.12 to 5.4.13.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.4.12...@patternfly/react-table@5.4.13)

---
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>
2025-01-07 08:40:19 +01:00
regexowl
d77ac55482 Wizard: Skip directly to Review
When clicking "Review and finish" the user skips directly to the Review step and the name of the blueprint gets automatically populated.
2025-01-06 18:22:50 -06:00
regexowl
4af4b56332 this commit adds ssh_key to users step 2025-01-06 13:05:41 +01:00
Michal Gold
6a5871bf14 wizard: add users to review step (HMS-4906) 2025-01-06 12:28:20 +01:00
regexowl
5e4f20edf1 src: Make spinners spin
This replaces the `<InProgressIcon>` with animated spinners to indicate that something is happening.
2025-01-06 10:17:49 +01:00
dependabot[bot]
fe0e20319b build(deps): bump @unleash/proxy-client-react from 4.3.1 to 4.4.0
Bumps [@unleash/proxy-client-react](https://github.com/Unleash/unleash-proxy-react) from 4.3.1 to 4.4.0.
- [Release notes](https://github.com/Unleash/unleash-proxy-react/releases)
- [Changelog](https://github.com/Unleash/proxy-client-react/blob/main/Changelog.md)
- [Commits](https://github.com/Unleash/unleash-proxy-react/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: "@unleash/proxy-client-react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 09:14:16 +01:00
red-hat-konflux[bot]
06e9e865fa chore(deps): update konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-01-06 08:37:00 +01:00
dependabot[bot]
8214285335 build(deps-dev): bump @testing-library/react from 16.0.1 to 16.1.0
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 16.0.1 to 16.1.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v16.0.1...v16.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-03 08:42:22 +01:00
regexowl
5f9f30d97b Wizard: Fix "form in form" warning
This resolves `Warning: validateDOMNesting(...): <form> cannot appear as a descendant of <form>.` warning in test output. There were two `<Form>` components nested in each other.
2025-01-02 13:18:00 +01:00
red-hat-konflux[bot]
f4ac576ab8 chore(deps): update konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-01-02 11:27:28 +01:00
dependabot[bot]
10674eb3af build(deps-dev): bump @vitejs/plugin-react from 4.3.3 to 4.3.4
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 4.3.3 to 4.3.4.
- [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.4/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>
2025-01-02 09:50:41 +01:00
dependabot[bot]
41a6741e63 build(deps): bump @sentry/webpack-plugin from 2.22.6 to 2.22.7
Bumps [@sentry/webpack-plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins) from 2.22.6 to 2.22.7.
- [Release notes](https://github.com/getsentry/sentry-javascript-bundler-plugins/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/2.22.6...2.22.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 10:09:29 +02:00
dependabot[bot]
d25ac93ff8 build(deps-dev): bump sass from 1.82.0 to 1.83.0
Bumps [sass](https://github.com/sass/dart-sass) from 1.82.0 to 1.83.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.82.0...1.83.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-31 22:02:36 +02:00
Gianluca Zuccarelli
47156c4e95 store/cockpitApi: use existing blueprint converter
Use the blueprint existing blueprint converter to convert
the on-prem blueprint to the hosted blueprint
2024-12-21 08:19:15 -06:00
Gianluca Zuccarelli
a9ebfb7e2e store/cockpitApi: scan for blueprint files
Add an initial commit to scan a preset directory for user blueprint
files. This makes use of the cockpit files api.
2024-12-21 08:19:15 -06:00
Gianluca Zuccarelli
2b82fa3c4b tsconfig: cockpit plumbing
It was necessary to do a bit of plumbing to get typescript, webpack &
vitest all happy. To do this we had had to create a separate tsconfig
for the on-prem version and the service frontend.

We override the module resolution for both config files. For on-prem we
check modules in `pkg/lib` and for the service we resolve the modules to
stub functions of the `cockpit` & `cockpit/fsinfo` modules. This was so
typescript and webpack would not complain.

For on-prem we had to intruct webpack to resolve modules from both
`node_modules` and `pkg/lib`. While for the service we set the
resulotion for the two modules to false, which means they won't get
bundled with the service.

Lastly, we needed to set some aliases in the vitest config so that
vitest could resolve the `cockpit` & `cockpit/fsinfo` modules.

Using the cjs `require` keyword to import cockpit would have worked to
make typescript and webpack compile since these imports are not
statically analysed like the `import` keyword is. However, this approach
broke the tests as `require` imports are not supported in vitest.
2024-12-21 08:19:15 -06:00
Gianluca Zuccarelli
4235885541 test/mocks: add cockpit lib mocks
Add some stub functions for the cockpit library, these will be needed
for tests to pass and for stubbing out the library for the service.
2024-12-21 08:19:15 -06:00
Gianluca Zuccarelli
cb6f2573d0 Konflux: fix cockpit workaround
Limit the cockpit workaround to only delete the `cockpit` directory at
the root of the project. Otherwise this command would delete some of the
mocks that we need to compile the project.
2024-12-21 08:19:15 -06:00
Gianluca Zuccarelli
c0ccec545a Makefile: add some convenenience functions
The on-prem version of this repo depends on the `cockpit` project. Some
of the files from the `cockpit` repo are needed to build and run this
project. These files are saved into the `pkg/lib` directory, this commit
adds some convenience scripts to the Makefile to do this.
2024-12-21 08:19:15 -06:00
Gianluca Zuccarelli
570cb3eba2 store: add emptyCockpitApi
This is just to follow the convention already used in the project.
2024-12-21 08:19:15 -06:00
Michal Gold
d0f2317649 wizard: add user information step (HMS-4903)
This commit introduces the user information step with the following fields:
(*) `userName` field
(*) `password` field
(*) add unit tests for create and edit mode
2024-12-20 12:35:15 -06:00
regexowl
7da478791e devDeps: Manually bump msw from 2.6.6 to 2.7.0
This bumps msw from 2.6.6 to 2.7.0
2024-12-20 07:13:18 -06:00
dependabot[bot]
68c7b566e9 build(deps): bump @reduxjs/toolkit from 2.3.0 to 2.5.0
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.3.0 to 2.5.0.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](https://github.com/reduxjs/redux-toolkit/compare/v2.3.0...v2.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-20 08:36:49 +01:00
dependabot[bot]
36163d984d build(deps-dev): bump @typescript-eslint/parser from 8.18.0 to 8.18.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.18.0 to 8.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/v8.18.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-12-19 09:06:46 +01:00
dependabot[bot]
51eaf853d3 build(deps-dev): bump eslint-plugin-react-hooks from 5.0.0 to 5.1.0
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-19 08:21:27 +01:00
dependabot[bot]
80d7c3785d 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.17.0 to 8.18.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.18.1/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-12-18 08:39:50 +01:00
regexowl
cf4289f692 Wizard: Move two files
This moves two files:
- timezonesList to the Timezone step, same as lists used for Locale
- ImportBlueprintModal.test.tsx to the test folder so all the test files are in one place
2024-12-17 17:01:34 -06:00
dependabot[bot]
60a5b65acd build(deps): bump react-redux from 9.1.2 to 9.2.0
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 9.1.2 to 9.2.0.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/react-redux/compare/v9.1.2...v9.2.0)

---
updated-dependencies:
- dependency-name: react-redux
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 08:55:06 +01:00
regexowl
ae795c3b6a Wizard: Extract ChippingInput to reusable component
This extracts input with chips from the NTP servers into a separate reusable ChippingInput component.
2024-12-16 12:12:56 -06:00
regexowl
8e046e3018 Wizard: Kernel step basics
This adds foundation for Kernel step, including gating and basic tests.
2024-12-16 10:53:06 +01:00
dependabot[bot]
8004ed75e4 build(deps): bump @patternfly/react-table from 5.4.11 to 5.4.12
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 5.4.11 to 5.4.12.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.4.11...@patternfly/react-table@5.4.12)

---
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-12-16 09:15:23 +01:00
red-hat-konflux[bot]
7b00182ec7 chore(deps): update konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2024-12-16 08:24:59 +01:00
dependabot[bot]
a60e280dc7 build(deps-dev): bump eslint-plugin-testing-library from 7.0.0 to 7.1.1
Bumps [eslint-plugin-testing-library](https://github.com/testing-library/eslint-plugin-testing-library) from 7.0.0 to 7.1.1.
- [Release notes](https://github.com/testing-library/eslint-plugin-testing-library/releases)
- [Changelog](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/.releaserc.json)
- [Commits](https://github.com/testing-library/eslint-plugin-testing-library/compare/v7.0.0...v7.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 14:44:02 +01:00
Anna Vítová
74c352e235 Wizard: Add popover to suggest importing on-prem
In order to hint users that on-premise blueprints are accepted in
import, we are adding a popover with a message.
2024-12-13 14:27:05 +01:00
dependabot[bot]
ec2b6acf54 build(deps-dev): bump chart.js from 4.4.4 to 4.4.7
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.4 to 4.4.7.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v4.4.4...v4.4.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 08:40:30 +01:00
regexowl
a5966b2f29 test: Add edit tests for hostname
This adds an edit test for the Hostname step.
2024-12-12 14:53:18 -06:00
regexowl
9b6934438a validators: Allow only lowercase characters for hostname
Validation error mentions only lowercase characters, this updates the regex accordingly.
2024-12-12 14:53:22 +02:00
regexowl
3bd4dc89c4 test: Add test to check hostname length
This adds a test to check the length of the hostname.
2024-12-12 14:53:22 +02:00
regexowl
dc24ba24e4 Wizard: Add Hostname expandable to Review step
This adds a new expandable to the Review step.
2024-12-12 13:47:09 +02:00
regexowl
73eaecc51e Wizard: Add hostname to on-prem mapper
This adds hostname to on-prem mapper and updates a test that checks if the value got parsed correctly.
2024-12-12 11:19:16 +01:00
dependabot[bot]
8c8e446200 build(deps-dev): bump @babel/preset-react from 7.25.9 to 7.26.3
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.25.9 to 7.26.3.
- [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.26.3/packages/babel-preset-react)

---
updated-dependencies:
- dependency-name: "@babel/preset-react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 10:23:28 +01:00