Commit graph

3098 commits

Author SHA1 Message Date
Anna Vítová
58ec84c61e Wizard: add Satellite registration to review step 2025-04-11 10:18:46 +02:00
Anna Vítová
f34531667a Wizard: add satellite registration, add jwt-decode
The jwt decode dependency helps us to keep track of the token that is
present in the Satellite command. jwt-decode is the most popular
dependency for the job, and very easy to use.
2025-04-11 10:18:46 +02:00
regexowl
ecce7c3b1e Wizard: Fix linting errors 2025-04-11 09:39:50 +02:00
Simon Steinbeiss
fef8685830 Wizard: Promote WSL to prod-stable 2025-04-11 09:39:50 +02:00
Simon Steinbeiss
966e0297c1 Wizard: Add Popover to show WSL is not supported
This Popover will inform users that despite being available in Insights
Image Builder in production, the WSL images for RHEL are not officially
supported by Red Hat.
2025-04-11 09:39:50 +02:00
dependabot[bot]
9c0aa08555 build(deps-dev): bump stylelint from 16.16.0 to 16.18.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.16.0 to 16.18.0.
- [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/16.16.0...16.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-11 08:35:18 +02:00
Simon Steinbeiss
463bfddae5 ImagesTable: Fix AWS regions indicator (off by one)
The AWS regions indicator that is currently baked into each row
containing an AWS image is currently off by one due to incorrect
parentheses in the code.
This is now fixed, so it displays '(1)' when there is one region (which
is the default, us-east-1) instead of '(0)' which was both wrong and
confusing.
2025-04-10 12:04:56 +02:00
dependabot[bot]
0d11bfff16 build(deps): bump @reduxjs/toolkit from 2.6.0 to 2.6.1
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](https://github.com/reduxjs/redux-toolkit/compare/v2.6.0...v2.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 10:25:31 +02:00
dependabot[bot]
2baab02013 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.29.0 to 8.29.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.29.1/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 08:45:51 +02:00
dependabot[bot]
f8eb152577 build(deps-dev): bump typescript from 5.8.2 to 5.8.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.2...v5.8.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-09 08:51:41 +02:00
regexowl
ae8c51c68a Wizard: Fix status error 2025-04-08 18:03:49 +02:00
regexowl
ba4b45c4cd Wizard: Removed nav status override
The override for registration step nav status got removed as it allowed user to continue without selected activation key.
2025-04-08 18:03:49 +02:00
regexowl
e9b73c55a4 Wizard: "No results" option should be disabled
This moves the "No results" option outside of options and renders it as a disabled option when `selectOptions.lenght === 0`.
2025-04-08 18:03:49 +02:00
regexowl
f3776bbf1a Wizard: Update useChrome import
This updates the way we import the `useChrome` hook.
2025-04-08 18:03:49 +02:00
regexowl
0431ac98dc Wizard: Switch from deprecated select in ActivationKeys
This replaces a deprecated select in `ActivationKeys` for a non-deprecated one.
2025-04-08 18:03:49 +02:00
regexowl
a34d5895d9 Wizard: Move PopoverActivation and ManageKeysButton
This moves `PopoverActivation` and `ManageKeysButton` outside from `ActivationKeysList` to their own separate components.
2025-04-08 18:03:49 +02:00
red-hat-konflux[bot]
9d55d76ac9 Update Konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-04-07 14:38:51 +02:00
dependabot[bot]
9e3d2de13b build(deps): bump vite from 6.2.4 to 6.2.5
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.4 to 6.2.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.2.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 09:31:28 +02:00
dependabot[bot]
67bd5646c0 build(deps-dev): bump @currents/playwright from 1.11.4 to 1.12.0
Bumps [@currents/playwright](https://github.com/currents-dev/currents-playwright-changelog) from 1.11.4 to 1.12.0.
- [Changelog](https://github.com/currents-dev/currents-playwright-changelog/blob/main/CHANGELOG.md)
- [Commits](https://github.com/currents-dev/currents-playwright-changelog/commits)

---
updated-dependencies:
- dependency-name: "@currents/playwright"
  dependency-version: 1.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 09:03:20 +02:00
regexowl
2b8fbad7da devDeps: Bump vitest deps
This bumps `vitest` and `@vitest/coverage-v8` from 3.0.9 to 3.1.1 (need to be bumped in tandem).
2025-04-04 08:39:30 -05:00
Amir
46216ead04 fedora-services: add tests 2025-04-03 11:50:51 +02:00
Amir
1d86950f45 Fedora-services: add support for fedora env 2025-04-03 11:50:51 +02:00
regexowl
72aed71662 Playwright: Add check for admin access popup
The admin access popup is different for passwordless user and a user with a password.

This checks what popup got rendered and based on that acts to get administrative access.
2025-04-03 10:48:45 +02:00
Justin Sherrill
38458810a0 change repo snapshot step to repeatable builds 2025-04-03 10:17:37 +02:00
Anna Vítová
a4034e8787 Wizard: add satellite registration, add jwt-decode
The jwt decode dependency helps us to keep track of the token that is
present in the Satellite command. jwt-decode is the most popular
dependency for the job, and very easy to use.
2025-04-03 09:46:41 +02:00
dependabot[bot]
739c0538fe 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.28.0 to 8.29.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.29.0/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 09:23:19 +02:00
dependabot[bot]
acc4e7aa8d build(deps): bump @unleash/proxy-client-react from 4.5.2 to 5.0.0
Bumps [@unleash/proxy-client-react](https://github.com/Unleash/unleash-proxy-react) from 4.5.2 to 5.0.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.5.2...v5.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 08:59:37 +02:00
Katarina Sieklova
8da57f5790 Wizard: make optional steps clickable on prem 2025-04-02 14:53:08 -05:00
regexowl
3adf864c42 Wizard: Fix OpenSCAP select width
This adds a maxWidth prop to the OpenSCAP select. Previously the options overflowed on the right side of the screen.
2025-04-02 13:26:48 +02:00
regexowl
9e1285c6f3 Wizard: Update microcopy on Locale step (HMS-5656)
This updates microcopy on Locale step as suggested in the linked bug report.
2025-04-02 12:45:45 +02:00
regexowl
74e774e986 Wizard: for ... in loop to for ... of loop 2025-04-02 12:17:23 +02:00
regexowl
3953c397dd test: Update tests 2025-04-02 12:17:23 +02:00
regexowl
698037a0ae Wizard: Replace deprecated select in OpenSCAP step
This replaces v4 deprecated select for a non-deprecated one and moves some functions to separate files.
2025-04-02 12:17:23 +02:00
regexowl
248bc1d67a Wizard: Move stuff around, split into more components
This moves several files into `components` subdirectory and splits `Oscap.tsx` into more components to make the file shorter and easier to navigate.
2025-04-02 12:17:23 +02:00
schutzbot
430bba8094 Post release version bump
[skip ci]
2025-04-02 08:35:22 +00:00
Ondřej Budai
11d36f4d6c Wizard: show a specific error message when description validation fails
Prior to this commit, the wizard showed "Invalid description" when
the description was too long. This was rather unhelpful for users.

The actual size check happens in validators.ts, but the functions there
just return a boolean value, even if they check for multiple criteria.

I'm not entirely sure, why the validation functions live in a separate
file, so I decided to move this specific condition to useValidation.tsx
so the condition, and the relevant user-facing error message can be
defined next to each other.
2025-04-02 09:50:44 +02:00
dependabot[bot]
f90b3974c4 build(deps): bump @scalprum/react-core from 0.9.4 to 0.9.5
Bumps [@scalprum/react-core](https://github.com/scalprum/scaffloding) from 0.9.4 to 0.9.5.
- [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/compare/@scalprum/react-core-0.9.4...@scalprum/react-core-0.9.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 09:00:50 +02:00
rjagadal
2936e87243 Fix: Ensure wizard footer remains visible in repo step
Adjust wizard layout to limit scrolling

Fix: Improve button positioning and scrolling behavior in the repo step

Adjust footer layout and flex changes for wizard content

Fix: Removed outdated comments for code consistency
2025-04-01 11:46:17 +02:00
regexowl
25368675bc Wizard: Make Select responsive 2025-04-01 11:07:38 +02:00
regexowl
b767c3bfde Wizard: Replace deprecated select in AwsSourcesSelect
This replaces a deprecated select in `AwsSourcesSelect` for a non-deprecated one.
2025-04-01 11:07:38 +02:00
dependabot[bot]
0f230c18d9 build(deps): bump vite from 5.4.14 to 6.2.4
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.14 to 6.2.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.4/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.2.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 10:35:52 +02:00
dependabot[bot]
92288f74f3 build(deps-dev): bump @typescript-eslint/parser from 8.28.0 to 8.29.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.28.0 to 8.29.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.29.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 10:09:08 +02:00
dependabot[bot]
6ae2a621ce build(deps-dev): bump chart.js from 4.4.7 to 4.4.8
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.7 to 4.4.8.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v4.4.7...v4.4.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 09:42:58 +02:00
Ondrej Ezr
dbba5e65f4 ci: add required SAST tasks to Konflux pipelintes 2025-04-01 09:18:05 +02:00
regexowl
39a0a6f6a2 test: Add new tests to check user group functionality
This adds two tests:
- 'user groups can be added and removed'
- 'adding wheel group checks Administrator checkbox'
2025-03-31 19:46:52 -05:00
regexowl
7a225e4146 Wizard: Add group input to User step
This adds a group input to the User step. The input is implemented as a `LabelInput`, when Administrator checkbox is checked, `wheel` group gets added and it's removal automatically unchecks the Administrator checkbox again.
2025-03-31 19:46:52 -05:00
regexowl
47b5eb8392 Wizard: Turn required category name into LabelInput prop
This swaps hardcoded value of the required `categoryName` in `LabelInput` for a prop, allowing to customize text for the reuired category independently on the component.
2025-03-31 19:46:52 -05:00
Gianluca Zuccarelli
e5a513a4cb CreateImageWizard: refactor oscap availability
Refactor the OpenSCAP on-premise availability check. Add the check to
the component so we run the check everytime the step is loaded. The
benefits to this is that if the user installs the packages, they won't
need to reload the page to use the OpenSCAP step. The downside is that
the check is not very quick, so a spinner was added just to indicate
that the check is running.
2025-03-31 18:02:11 -05:00
Gianluca Zuccarelli
20447f753a CreateImageWizard: on-prem prefetch
The openscap customizatoins endpoint for on-prem is quite slow since it
has to call the run the oscap tool to generate the customization
options. Running this request lazily, as we do for the service, is too
slow, so we can just prefetch the customizations for on-prem.
2025-03-31 18:02:11 -05:00
Gianluca Zuccarelli
18c329be2a CreateImageWizard: oscap options add spinner
The select `loadingVariant` seems to do nothing. Add a loader for when the
oscap profiles are being loaded.
2025-03-31 18:02:11 -05:00