Commit graph

3098 commits

Author SHA1 Message Date
regexowl
1643b96330 Wizard: Set hasPassword in requestMapper
Add `hasPassword` setter to `getUsers` function.
2025-04-23 14:36:59 +02:00
regexowl
a07fbb6477 store: Remove unused selectors
This removes selectors that are no longer used.
2025-04-23 13:42:39 +02:00
regexowl
0b843a64d9 Wizard: Update Users review text list
Only the first user got rendered, this should render them all and correctly add password indicator in import/edit mode when `hasPassword` is true.
2025-04-23 13:42:39 +02:00
regexowl
319880fc0b Wizard: Add password placeholder for edit mode
This uses the `hasPassword` value to render a password placeholder in edit mode.

The placeholder will indicate to the user that a password is present, but will not allow to show the password.
2025-04-23 13:42:39 +02:00
regexowl
01d0eba70e store: Update imageBuilder API 2025-04-23 13:42:39 +02:00
regexowl
22925f5005 Wizard: Update WSL popover wording
This updates WSL popover wording based on UX suggestions.
2025-04-23 11:16:58 +02:00
dependabot[bot]
34bfebd95f build(deps-dev): bump @babel/preset-typescript from 7.26.0 to 7.27.0
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.26.0 to 7.27.0.
- [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.27.0/packages/babel-preset-typescript)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-23 10:11:39 +02:00
dependabot[bot]
39640bc37e build(deps-dev): bump http-proxy-middleware from 2.0.7 to 2.0.9
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.7 to 2.0.9.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-version: 2.0.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-23 09:46:36 +02:00
dependabot[bot]
81e4286052 build(deps-dev): bump chart.js from 4.4.8 to 4.4.9
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.8 to 4.4.9.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v4.4.8...v4.4.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-23 09:19:02 +02:00
red-hat-konflux[bot]
34c8c6d656 Update Konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-04-23 08:52:01 +02:00
regexowl
6b0af16471 src: Addressing comments
- addressed AI comments
- fix tab indexing
- added username to the title of Remove user modal
- ensured "Invalid password" is not in the errors object before a password is filled in
- removing a user with empty user, password and ssh key fields does not prompt "Remove user" modal
- check for duplicate username
- focus on new user tab
- remove redundant tabIndex
2025-04-18 16:45:59 -05:00
regexowl
8d74022ab1 test: Dancing around snyk 2025-04-18 16:45:59 -05:00
regexowl
5737c01dd0 test: Add new tests 2025-04-18 16:45:59 -05:00
regexowl
ca9d3035ee test: Cleanup tests a bit 2025-04-18 16:45:59 -05:00
regexowl
5cc5dd1258 Wizard: Add support for multiple users
This adds support for multiple users in the Wizard. The users are rendered in tabs and can be both added and removed. When clicking on remove button, modal pops up to inform user that the changes cannot be undone.

Neither password nor SSH keys are further required, making it possible to create a user with just a username.
2025-04-18 16:45:59 -05:00
regexowl
f903d617c0 Wizard: Resolve failing tests
Some tests started failing, this should hopefully resolve them.
2025-04-17 12:45:00 -05:00
regexowl
457d423d83 Wizard: Remove "Support" column
This removes "Support" column as per recent mocks.
2025-04-17 12:45:00 -05:00
regexowl
7f3d4efb6a Wizard: Add expandable rows
This makes the rows of packages table expandable and moves description down the level from a column to the expandable content.
2025-04-17 12:45:00 -05:00
regexowl
14590c1c41 Wizard: Minor changes
Render selected package count only when higher than 0. Rename "Package name" column to just "Name".
2025-04-17 12:45:00 -05:00
regexowl
ad2d5d8e2b Wizard: Replace toggle with tabs
This replaces the previously used "Included/Other repos" toggle with tabs with the same functionality.
2025-04-17 12:45:00 -05:00
regexowl
b0709ca9ce api: Update content-sources API schema
This updates content-sources API schema and regenerates it.
2025-04-17 12:45:00 -05:00
regexowl
70a97acc10 Wizard: Update periods at the end of lines
Removing/adding some periods for the sake of consistency.

I believe the description of the step should end with a period, helped texts and options should not (at least that's the prevailing pattern in the Wizard as of now).
2025-04-17 12:08:09 -05:00
Lucas Garfield
7f585154f2 Wizard/Oscap: Add analytics (HMS-5990)
The Intercom team has some ideas about helping new users determine which
security profile is right for them. Tracking differentiates between
"vanilla" OpenSCAP and Compliance so that any messages from Intercom can
be targeted.
2025-04-17 17:23:33 +02:00
Sanne Raymaekers
cc649ec7a3 test: add test for linting and fixing blueprints 2025-04-17 13:40:10 +02:00
Sanne Raymaekers
ba2346aacf ImagesTable/Toolbar: add alert with blueprint linter errors
Includes a fix button which should resolve the errors automatically.
2025-04-17 13:40:10 +02:00
Sanne Raymaekers
2dde0f2177 api: support linting and fixing of blueprints 2025-04-17 13:40:10 +02:00
Lucas Garfield
e222b13476 ImagesTable/BlueprintsSideBar: Add Segment tracking (HMS-5989)
Needed so the Intercom team can decide whether or not to display an
onboarding video (first time user with no images or blueprints).
2025-04-17 08:58:40 +02:00
Anna Vítová
561e9d164e Wizard: Fix Select's dropdown closing
This fixes a bug - when clicking outside the select dropdown, the
dropdown was not closed.
2025-04-16 16:37:47 +02:00
Katarina Sieklova
d18f25e331 Wizard: add segment tracking 2025-04-16 12:56:03 +02:00
schutzbot
c99157216f Post release version bump
[skip ci]
2025-04-16 08:36:03 +00:00
dependabot[bot]
84ee34cecd build(deps): bump @sentry/webpack-plugin from 3.2.2 to 3.3.1
Bumps [@sentry/webpack-plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins) from 3.2.2 to 3.3.1.
- [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/3.2.2...3.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 08:51:20 +02:00
Sanne Raymaekers
7bceac6a36 .github: new stage user on each playwright run 2025-04-15 14:41:26 +02:00
Tom Koscielniak
7a839d0d3c playwright: Bump Playwright to 1.51.1
Bump Playwright to a newer version so we can use step.skip feature
2025-04-15 14:14:40 +02:00
Tom Koscielniak
0bddb80e94 tests/playwright: Add Hostname customization test
Adds a Hostname customization test that creates a BP, edits BP, exports and imports it back and verifies the BP content.
This test also servers as a template for other customization tests. Includes a refactor of existing helper functions.
2025-04-15 14:14:40 +02:00
Tom Koscielniak
91ceaca760 playwright: Add parallelization
Add parallelization with 4 workers.
2025-04-15 14:14:40 +02:00
Tom Koscielniak
34fdd8f0ea playwright: Increase timeouts
Increase playwright timeout both globally and for individual actions to reduce test flakiness
2025-04-15 14:14:40 +02:00
Ondřej Budai
a50b6bdfae Wizard: fix a rerender loop in AzureResourceGroups
resourceGroup is used in useEffect, so if assigned a new array to it
every time this function is called, it would cause the useEffect to run
every time, leading to an infinite loop. This is because useEffect uses
Object.is to determine if the value has changed, and [] creates a new
array every time. Thus, we use a constant empty array to avoid this
issue.

Alternatively JSON.stringify(resourceGroup), or a deep comparison could
be used as a useEffect dependency, but that feels like just a waste
of resources.
2025-04-15 12:16:07 +02:00
Katarina Sieklova
80327e4972 Wizard: set analytics only on non-prem 2025-04-15 11:42:16 +02:00
Katarina Sieklova
49f2052396 Wizard: add segment tracking to buttons in wizard footer
Added tracking for the "Next", "Back", "Cancel" and "Review and Finish" buttons in the Image wizard footer when creating a blueprint.

Fixes #3087
2025-04-15 11:42:16 +02:00
red-hat-konflux[bot]
0b2de197f5 Update build-tools digest to faea943
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-04-15 11:20:17 +02:00
regexowl
a367faab4a Wizard: Update WSL popover
This updates the text and the link in the WSL popover.
2025-04-15 10:08:05 +02:00
dependabot[bot]
20693ec981 build(deps-dev): bump eslint-plugin-react from 7.37.4 to 7.37.5
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.37.4 to 7.37.5.
- [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.4...v7.37.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-15 09:41:07 +02:00
dependabot[bot]
53d1d9290b 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.1 to 8.30.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.30.1/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-15 09:04:01 +02:00
dependabot[bot]
eb632f05fa build(deps): bump vite from 6.2.5 to 6.2.6
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.5 to 6.2.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.6/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:09:50 +02:00
dependabot[bot]
0aea1ad14e build(deps): bump @babel/runtime from 7.26.0 to 7.27.0
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.26.0 to 7.27.0.
- [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.27.0/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-version: 7.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 09:47:04 +02:00
dependabot[bot]
db075ac8fd build(deps-dev): bump jsdom from 26.0.0 to 26.1.0
Bumps [jsdom](https://github.com/jsdom/jsdom) from 26.0.0 to 26.1.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/26.0.0...26.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 09:22:34 +02:00
red-hat-konflux[bot]
c75aa28fbf Update Konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-04-14 08:52:06 +02:00
Anna Vítová
d2c9b77957 Wizard: add tests for satellite registration 2025-04-11 10:18:46 +02:00
Anna Vítová
75792bcc0a Wizard: rm pem validation, add cert warning
Since we support pem, cer, and der, we'd have to validate against each
of these on the frontend. Let's just check that the file is not empty,
and leave this upto users. On top of that, concatenated certificates are
supported, validating that would be too much. This commit also switches
token expiration error into a warning.
2025-04-11 10:18:46 +02:00
Anna Vítová
b6cdfdb102 Wizard: Add Satellite service and update mapper 2025-04-11 10:18:46 +02:00