regexowl
44dc900370
src: Fix new errors after linter bump
...
This addresses problems caused by dependency updates.
2024-08-05 11:51:20 +02:00
Michal Gold
4b85ad064a
createImageWizrad: add scroll to the creation image
...
this commit change the resoluiton of wizard__outer-wrap to solve
the problem that user should scroll to see the next, backl and cancel buttons
2024-08-05 09:07:48 +02:00
regexowl
9a1d348a77
src: Resolve problems ater updating API
...
'centos-8' was dropped from Distributions, causing a few problems. This resolves them.
2024-08-02 11:31:20 +02:00
regexowl
8a5dea7abf
Wizard: Fix On Edit startIndex
...
With Snapshotting being only hidden startIndex needs to be updated.
2024-08-01 18:05:01 +02:00
regexowl
d88cd216a5
Wizard: Add isHidden to snapshotting step
...
Replace conditional rendering with `isHidden` for snapshotting step.
2024-08-01 18:05:01 +02:00
regexowl
3174dbd706
Wizard: Gate snapshots behind an unleash flag
...
This gates snapshots behind a 'image-builder.snapshots.enabled' unleash flag instead of `isBeta()`.
2024-08-01 17:34:03 +02:00
regexowl
703a65049f
Wizard: Migrate WSL from isBeta() to unleash flag
...
This gates WSL target behind an 'image-builder.wsl.enabled' unleash flag instead of `isBeta()`.
2024-08-01 17:24:42 +02:00
regexowl
fddf520864
Wizard: Fix nav issues On Edit
...
Since the FirstBoot step is now always rendered but conditionally hidden, Wizard was opening on the Details step in Edit.
2024-08-01 17:16:36 +02:00
regexowl
8dd042aa05
Wizard: Fix death by thousand reviews
...
When switching between preview and non-preview the Wizard nav got messy. This should fix the problem.
2024-08-01 17:16:36 +02:00
regexowl
b0725c054e
Wizard: Replace isBeta() with conditional flag
...
This replaces `isBeta()` with a constraint added to the 'image-builder.pkgrecs.enabled' unleash flag.
2024-08-01 13:17:59 +02:00
Sanne Raymaekers
90f7ce111a
Wizard: Fix bulk select on repositories step
...
Don't select repositories that are disabled.
2024-07-31 16:30:01 +02:00
regexowl
fee43d8917
ImagesTable: Update wording of CentOS 8 alert
...
This adds information about CentOS 8 being automatically replaces with CentOS 9 when editing a blueprint.
2024-07-30 16:16:43 +02:00
regexowl
517ff8ccd3
requestMapper: Automatically replace CentOS 8 with CentOS 9
...
CentOS 8 was deprecated and is no longer used, but 'On Edit' for a no longer valid blueprint with 'centos-8' as their distribution defaulted to RHEL 9.
2024-07-30 16:16:43 +02:00
Sanne Raymaekers
4ebd0cec36
Wizard: disable non-snapshot repositories when needed
...
If a snapshot date is selected, all repositories need to have
snapshotting enabled.
2024-07-29 14:32:09 +02:00
Ondrej Ezr
dbfa934b38
Firstboot: validate shebang is defined
2024-07-26 11:57:24 +02:00
regexowl
6e138b5274
lint: Fix linting error
2024-07-26 10:49:36 +02:00
Simon Steinbeiss
3b83a6a72b
wizard/registration: Add missing article (typo)
2024-07-26 10:49:36 +02:00
Jakub Rusz
3fe703e60f
Fix typo in Snapshot step
...
Not actually a radio.
2024-07-25 17:01:53 +02:00
Michal Gold
2c61a70fb4
buildImagesButton: change the name of build selected button <HMS-4066>
...
this commit change the name of build selected button to build images
2024-07-25 15:49:23 +02:00
Michal Gold
1b35aa88da
imageTable: link images to parent blueprint <HMS-4353>
...
this commit add link to parent blueprint from specific image
2024-07-25 09:35:05 +02:00
regexowl
eb2cfe9a2f
test: Move @testing-library/jest-dom import to test setup file
...
This removes `@testing-library/jest-dom` from single test files and adds it to the shared setup.ts file.
2024-07-22 15:49:18 +02:00
regexowl
4fb37c187e
src: Rename "V2" folders to just Wizard
...
This replaces all occurences of "CreateImageWizardV2" with just "CreateImageWizard" as it is the only version now.
2024-07-17 11:17:06 +02:00
regexowl
a5f69a2559
test: Move shared imports to setup.ts file
2024-07-16 16:55:31 +02:00
regexowl
98c17e55df
test: Move beforeEach blocks inside describe
...
This moved the `beforeEach` blocks inside the `describe` blocks as per documentation.
Previously the code inside `beforeEach` didn't trigger which lead to problems with asynchrocinity as mocks didn't get cleared.
2024-07-16 16:55:31 +02:00
regexowl
e036f9b892
src: Move .scrollTo mock implementation to setup.ts
...
This moves the `.scrollTo` mock implementation to a setup file for other test files to use.
2024-07-16 16:55:31 +02:00
regexowl
8597929ff3
test: test: Remove act() warnings
...
This removes `Warning: An update to <component> inside a test was not wrapped inact(...)` warnings.
2024-07-16 16:55:31 +02:00
regexowl
2a48966bba
test: Update test files to work with Vitest
...
This updates the files to be compatible with Vitest. Changes include:
- adding `@testing-library/jest-dom` import to enable custom jest matchers
- renaming `jest.` to `vi.`
- setting flags to false as default where needed
2024-07-16 16:55:31 +02:00
regexowl
ac60043199
Wizard: Fix repositories recommendations
...
Repositories were not getting recommended after https://github.com/osbuild/image-builder-frontend/pull/2226 got merged. This fixes the problem.
2024-07-16 15:31:53 +02:00
Ondrej Ezr
22c3686e2e
Firstboot: Add testid to empty state buttons
2024-07-16 13:15:12 +02:00
Ondrej Ezr
e0ec56c94d
Wizard: fix blueprint unique name validation in Edit mode
2024-07-16 12:27:42 +02:00
regexowl
c89b73687f
Wizard: Fix 400 when fetching packages
...
The request for package search in custom repositories was sent even when no custom repositories were selected, ending in 400. This fixes the problem.
2024-07-14 22:13:46 +02:00
Ondrej Ezr
e8b3814074
Wizard: feature flag to decide environments to be enabled in
...
Feature flags now support enablement in Preview specifically.
This allows us to use single feature flag for rollout.
2024-07-11 14:33:35 +02:00
Ondrej Ezr
4044b9eba1
Wizard: enable nav items properly in Edit mode
2024-07-11 09:37:36 +02:00
Ondrej Ezr
549ef37ab7
Blueprint: enable import/export in ephemeral
...
Adds ability to enable a feature flag in Ephemeral environment by default.
2024-07-10 19:48:58 +02:00
Justin Sherrill
10c9375ee3
V2Wizard: revert add alert on snapshot step
2024-07-08 10:27:21 +02:00
Ondrej Ezr
ff2ccc4101
Wizard: set status on step
...
This implements error status for a step navigation.
It helps user to see on what step there is an validation error and why they can't create the blueprint.
2024-07-05 13:23:58 +02:00
Gianluca Zuccarelli
f0d723686e
wizard/compliance: re-enable stig profiles
...
The stig profiles have been fixed downstream, so we can re-enable these.
2024-07-04 12:01:06 +02:00
Michal Gold
f218109fa4
CreateDropdown: change navigation to specific image when creating and building image HMS-4258
...
this commit change navigation to specific image when creating and building new
image
2024-07-03 15:09:11 +02:00
regexowl
c0508e00ce
src: Add betaPath helper function
...
This replaces all occurences of `isBeta() ? CONTENT_BETA : CONTENT_STABLE` with `betaPath(CONTENT_URL, isBeta())`.
2024-07-01 13:54:15 +02:00
regexowl
b198768ca6
src: Move content urls to const
...
This moves both preview and stable links to content to the `constants.ts` file.
2024-07-01 13:54:15 +02:00
Jakub Rusz
9f3cb26e0a
Wizard/Review: Rename from Image to blueprint
...
Where applicable renamed Image details or name to blueprint details or name.
2024-06-28 16:06:06 +02:00
Jakub Rusz
9b82b22d75
Add ouiaIds for import Modal and button
...
Adding some missing ouiaIds.
2024-06-28 09:49:14 +02:00
regexowl
345c3bbd06
Wizard: Update text for name validation
...
This updates helper text for blueprint name validation, making the "word characters" more specific.
2024-06-28 09:32:06 +02:00
Ondrej Ezr
facb71ceae
Wizard: validate uniqueness of Blueprint name
2024-06-26 15:41:48 +02:00
regexowl
73848c9ed0
Wizard: Add Lightspeed to package recommendations
...
This adds "Powered by RHEL Lightspeed" text and popover to the recommended packages expandable.
2024-06-25 11:15:07 +02:00
Michal Gold
7138552663
add unit test that check disabling build image button when uncheck all targets
2024-06-25 10:21:03 +02:00
Michal Gold
39b29e303c
buildImageButton: add support of building image with mulitple targets <HMS-4066>
...
this commit add support of building an image with mulitple targets,
when user build an image, he can choose which targets he wants to build.
2024-06-25 10:21:03 +02:00
Ondrej Ezr
4692eae454
Wizard: validate wizard with Redux Hook
...
Use redux hook to validate the form.
This gives us single point of contact for "is the data valid?"
while not requiring every redux action touching form data to perform validation.
It's not perfect and might be improved when using external library solving the problems we're having.
2024-06-21 14:40:41 +02:00
Sanne Raymaekers
fad7648d38
CreateImageWizardV2: recommended repositories in review table
...
Package groups can also come from recommended repositories.
2024-06-21 10:12:39 +02:00
Sanne Raymaekers
469585e59c
CreateImageWizardV2: fix disabling recommended repository
...
In case there are groups selected, the recommended repository should be
disabled.
2024-06-21 10:12:39 +02:00