Commit graph

63 commits

Author SHA1 Message Date
regexowl
e6b030ea4c src: Remove ouia-ids
Since we're moving away from IQE the `ouia-id` atributes should be no longer needed. This removes them from the entire code base.
2025-04-25 11:32:43 +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
regexowl
ae8c51c68a Wizard: Fix status error 2025-04-08 18:03:49 +02:00
Amir
1d86950f45 Fedora-services: add support for fedora env 2025-04-03 11:50:51 +02:00
Justin Sherrill
38458810a0 change repo snapshot step to repeatable builds 2025-04-03 10:17:37 +02:00
Katarina Sieklova
8da57f5790 Wizard: make optional steps clickable on prem 2025-04-02 14:53:08 -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
c38e821ae5 CreateImageWizard: warning for unavailable on-prem OpenSCAP
Add a warning if the required packages for the OpenSCAP step are not available.
2025-03-31 18:02:11 -05:00
Gianluca Zuccarelli
9d883a8dfc CreateImageWizard: enable OpenSCAP for on-prem
SSIA
2025-03-31 18:02:11 -05:00
Michal Gold
265ba2ac78 Wizard: Add password validation in User step
This commit adds password validation to the User step:
- Moved password validation logic to a separate `checkPasswordValidity` function, returning detailed results (strength and validation state).
- Simplified validation in `PasswordValidatedInput` by using `checkPasswordValidity` results directly.
- Added dynamic password strength indicator showing success or error based on requirements.
- Integrated environment-specific validation messages (e.g., for Azure).
- Improved code separation between presentation and validation for better maintainability.
- Unit tests: Adds tests for invalid passwords, covering both default and Azure cases.
2025-03-20 13:28:46 +01:00
regexowl
96cf08bf4d src: Remove width limiting for Wizard and ImagesTable
This removes `isWidthLimited` prop from Page component in Wizard and ImagesTable.
2025-03-18 14:37:53 -05:00
Katarina Sieklova
2dcdcebda9 Wizard: make optional steps clickable
Fixes #2947

Optional steps get clickable after Register step was visited.
2025-03-04 11:26:53 +01:00
regexowl
75ddd854e8 src: Remove timezone and locale unleash flags
This removes `image-builder.timezone.enabled` and `image-builder.locale.enabled` gating as both were released to production.
2025-03-04 10:04:26 +01:00
regexowl
609397d411 Wizard: register-later for non-RHEL images
This sets registration type to `register-later` when a non-RHEL distribution is selected.
2025-02-17 14:26:53 +01:00
regexowl
62bbf6d688 Wizard: Add step validation to Locale
This adds step validation to Locale, allowing to properly validate imported values.
2025-02-17 12:49:03 +01:00
regexowl
34720c799e src: Remove snapshots fallthrough logic
Snapshotting is available in prod-stable now. We can probably remove the fallthrough logic now.
2025-02-13 15:51:31 +01:00
regexowl
87d6c57174 Wizard: Fix nav status icon
Status icon rendered only when the step was previously visited, this caused problems with imported blueprints.

How to reproduce a bug:
1. import a blueprint with invalid hostname
2. skip to Review

Current behaviour:
- the Create blueprint button is disabled, but there is no indication of error next to the Hostname step in navigation

After fix:
- the error status should be rendered next to the Hostname nav item
2025-02-13 13:29:36 +01:00
regexowl
68d33130f7 src: Align to center
This ensures that both Landing page and Wizard are aligned to center within wide windows.
2025-02-06 13:30:23 +02:00
Sanne Raymaekers
52a43b0f2d CreateImageWizard: support edit mode on premise
The way the on premise wizard is initialized needed to be tweaked to
make it work for isEdit. Let's assume that the host distro and host
architecture are already correct in the blueprint.
2025-02-05 13:11:14 +01:00
regexowl
8bafe6cb80 Wizard: Add validation to Systemd services step
This adds validation to ChippingInputs on the Systemd services step.
2025-02-04 15:15:49 +01:00
regexowl
f11ab64262 Wizard: Add validation to ChippingInput
This adds step validation to ChippingInput, allowing to validate imported values.
2025-02-04 11:37:16 +01:00
Gianluca Zuccarelli
ed1b4c4b97 CreateImageWizard: hide registration on-prem
Hide the registration step for on-prem frontend
2025-02-03 13:40:30 +01:00
Gianluca Zuccarelli
45b83bd4fb CreateImageWizard: initialize on-prem with host arch
Initialize the create image wizard with the host arch for the
on-prem frontend.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
44af2f278b CreateImageWizard: initialize on-prem with host distro
Initialize the create image wizard with the host's distribution for the
on-premise frontend.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
e64008aec7 CreateImageWizard: disable steps for on-prem
For a start, we will disable custom repositories and the OpenSCAP steps
for the on-prem version of the frontend.
2025-01-27 17:03:06 +01:00
regexowl
0f86336af6 Wizard: Services step basics
This adds basic structure of the Services step.
2025-01-23 09:56:24 +01:00
regexowl
30d77faeb5 this commit add validation to name field in Users step 2025-01-21 11:36:33 +01:00
regexowl
bfef28999d Wizard: Add validation for kernel step
This adds validation for the Kernel step.
2025-01-21 08:33:52 +01:00
regexowl
1fce574146 Wizard: Swap kernel name input with drop down
This replaces the kernel name input with a static drop down populated with valid values.
2025-01-21 08:33:52 +01:00
regexowl
c121e5caba Wizard: Add Kernel name input
This adds a kernel name input.
2025-01-21 08:33:52 +01:00
regexowl
3167effa1b Wizard: Add unleash flag and update tests
This gates the step behind an unleash flag and updates the existing tests so they pass with the new step added.
2025-01-14 14:11:22 -06:00
Lucas Garfield
e6bc0d429a Wizard: Firewall customization scaffolding 2025-01-14 14:11:22 -06: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
8e046e3018 Wizard: Kernel step basics
This adds foundation for Kernel step, including gating and basic tests.
2024-12-16 10:53:06 +01:00
regexowl
5a514d1d04 Wizard: Add Hostname functionality
This adds a validated hostname input and new tests.
2024-12-11 12:59:41 -06:00
regexowl
8c108fe2ec Wizard: Basic Hostname step
This adds Hostname step basics and file structure.
2024-12-10 12:37:36 -06:00
Gianluca Zuccarelli
d4436dc6a9 multiple: set sane defaults
Set sane defaults for some types rather than setting them to `undefined`.
This is so that we can set `exactOptionalPropertyTypes` to true in our
tsconfig.
2024-12-06 12:02:34 -06:00
regexowl
6e97304327 Wizard: Basic Locale step
This adds Locale step basics and file structure.
2024-12-04 12:45:35 -06:00
Simon Steinbeiss
c4a06e2ac9 CreateImageWizard: Add RHEL10beta search parameter
This means we can easily link to the wizard and pre-select RHEL 10 Beta
which will be nice for the release announcement blog post.
2024-11-29 14:22:37 +01:00
Sanne Raymaekers
ee19ba1546 Wizard: rely on feature flag constraints for openscap step title
Feature flags can be constrained to preview / stable.
2024-11-27 13:49:30 +01:00
regexowl
b526ad3c60 Wizard: Basic Timezone step
This adds bare bones Timezone step with appropriate file structure and basic unit tests.
2024-11-19 13:01:34 -06:00
Sanne Raymaekers
15ac21f988 Wizard: hide unsupported steps for RHEL 10 Beta 2024-11-19 11:21:57 +01:00
Michal Gold
176c64dd47 Wizard: Add Users step to the wizard (HMS-4902)
This commit adds a new step 'Users' that is enabled only in stage-preview,
and will enable it in stage-stable once IQE tests are ready.
The step is not functional yet, this is just the first step.
2024-11-08 00:26:26 +01:00
Michal Gold
830e22fcdc updating useFlag to omit feature flag from onPrem env 2024-10-30 10:36:18 -05:00
Sanne Raymaekers
692b6f1595 Wizard: only show compliance radio in preview
Let's expose compliance in preview while we're ironing out the creases.
2024-10-27 10:49:27 +02:00
regexowl
46b6fda9db src: Resolve last remaining circular dependency
Nothing added, nothing removed, stuff moved around a bit.
2024-10-11 14:55:03 +02:00
Sanne Raymaekers
0908cd2ae9 Wizard: add compliance step to the wizard
The title is changed depending on the flag, to make it easier to change
the IQE tests.
2024-09-25 15:26:09 +02:00
regexowl
b3d7a1606c Wizard: Validate registration with useValidation
This migrated Registration step validation to `useValidation`.

The scenarios in which the Next button and Create/Save button should be disabled are:
- any of "register now" options is chosen, but no activation key is selected
- activation key is selected, but it's invalid (information about it cannot be fetched)
2024-09-16 12:59:43 +03:00
regexowl
4a15b25ceb Wizard: Optional steps
This adds an "Optional steps" section to the Wizard and moves all the non-mandatory customisation options there. "Review and finish" button was also added to allow jumping through the optional section.
2024-09-04 01:21:28 +02:00