Commit graph

1112 commits

Author SHA1 Message Date
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
regexowl
916596d5cb test: Cleanup TargetEnvironment tests
This cleans up structure of `src/test/Components/CreateImageWizardV2/steps/TargetEnvironment`, removing the subfolders and surfacing Aws and Azure test files.

We also had two `TargetEnvironment.test.tsx` files, both testing functionality of the Image Output step. For now those were merged into one file under `ImageOutput` step and can be later renamed to `ImageOutput.test.tsx` for consistency.
2024-06-21 16:49:24 +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
Sanne Raymaekers
a812d8caea CreateImageWizardV2: fix removing recommended repository
Only remove it when there's no packages or groups selected from those
repositories.
2024-06-21 10:12:39 +02:00
Sanne Raymaekers
737074eb49 CreateImageWizardV2: test included packages in group popover 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
d0f52bb1d6 CreateImageWizardV2: fix pagination when search is empty 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
3cb9fe0670 CreatEImageWizardV2: while searching show either pkgs or groups 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
db4e80eb67 CreateImageWizardV2: add info alert to packages step
Inform users how to search for package groups.
2024-06-21 10:12:39 +02:00
Sanne Raymaekers
4f647ef6ef CreateImageWizardV2: search for groups in recommended repos 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
648bd0c65b CreateImageWizardV2: add package groups to the review step 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
e37782ebf6 CreateImageWizardV2: add tests for package groups 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
7759c122df CreateImageWizardV2: include the package groups in the request 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
3739b2b8f5 CreateImageWizardV2: package groups for custom repositories 2024-06-21 10:12:39 +02:00
Sanne Raymaekers
177e4b227c CreateImageWizardV2: search package groups in distro repositories
By prepending an `@`, users can search for package groups. A single `@`
just lists all groups.
2024-06-21 10:12:39 +02:00
Sanne Raymaekers
69367ba1d9 V2Wizard: search when distro rpms get updated 2024-06-21 10:12:39 +02:00
regexowl
da1d76ad94 test: Add edit mode tests
This adds basic edit mode tests for the remaining steps.
2024-06-20 00:05:41 +02:00
Anna Vítová
d7726c30a6 fix(HMS-4310): Disable editing of Blueprint file 2024-06-19 16:04:41 +02:00
regexowl
c97665da52 V2Wizard: Hide package recommendations for CentOS
This hides the package recommendations expandable when CentOS is selected as a distribution.
2024-06-19 13:54:36 +02:00
regexowl
0ac68864f4 Wizard: Cleanup after removing V1
This removes files that are no longer needed and uninstalls DDF dependencies.
2024-06-19 11:19:33 +02:00
Ondrej Ezr
5fcc80d2db Wizard: Drop the WizardV1 2024-06-19 09:10:22 +02:00
Amir
54d09d636e feat(HMS-4200): remove blueprint endpoints /experimental 2024-06-18 17:29:50 +02:00
regexowl
3b699f99ce test: Update tests to reflect name changes
The target acronyms on the Review step were replaced by full names of the targets. This reflects the change in the unit tests.
2024-06-18 09:19:45 +02:00
regexowl
388069ec11 V2Wizard: Move targets to a constant
This moves mapping between target short and full names to the const to make it reusable.
2024-06-18 09:19:45 +02:00
Jakub Rusz
be814dab6f Packages: Add ouiaIds
Need some ouiaIds for this step to simplify testing.
2024-06-12 16:27:12 +02:00
regexowl
a2ad644fb9 test: Edit mode tests for repositories
This adds a new 'repositories' fixture to the blueprints as was done for 'oscap'.

Newly added unit tests check that repositories get parsed from and back to request correctly and that when removing previously used repositories an 'Are you sure?' modal pops up.
2024-06-12 16:05:30 +02:00
regexowl
3d9e26469e test: Add test for CentOS 8 Stream alert
This adds a new test for CentOS 8 Stream alert and updates the fixtures accordingly.
2024-06-12 15:28:59 +02:00
regexowl
e0b435cd0a ImagesTable: Add alert for CentOS Stream 8 blueprints
This adds an alert about CentOS Stream 8 being EOL.
2024-06-12 15:28:59 +02:00
Ondřej Budai
642cb10036 drop centos stream 8
CentOS Stream 8 is EOL, thus we should no longer offer it in the
service, because it can pose a security risk.

See https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/
2024-06-12 10:07:33 +02:00
regexowl
a23cc9321b test: Update tests after adding SaveAndBuild modal
This updates tests with a `openAndDismissSaveAndBuildModal` function that handles closing the SaveAndBuild modal after clicking on Create blueprint for the first time.
2024-06-06 16:58:59 +02:00
regexowl
b8f45ff883 V2Wizard: Remove line breaks on Review step
When all the expandables are open by default the extra line breaks looked a bit weird so this removes them.
2024-06-06 16:58:59 +02:00
regexowl
39a6c93f6b V2Wizard: Add modal for Save and build images
When the button "Create blueprint" is clicked for the first time, a modal about "Save and build" functionality is opened.
2024-06-06 16:58:59 +02:00
regexowl
5b260a5d26 V2Wizard: Make expandables open and add Revisit button
This makes all expandables be open by default and adds a Revisit button to each of the expandable headers.
2024-06-06 16:58:59 +02:00
regexowl
b7f7f0a073 V2Wizard: Add blueprint name and description to the Review step 2024-06-06 16:58:59 +02:00
regexowl
ca3baea7d6 LandingPage: Make buttons disabled on Immutable
This makes the "Create blueprint" button and the "Import" button disabled when the Immutable tab is selected.
2024-06-06 13:47:30 +02:00
regexowl
054dc42842 V2Wizard: Add descriptions to package recommendations
After the list of package recommendations is fetched, each of the packages gets queried as a searchTerm against the list of distribution repositories.

This fetched the summary of the package which can be used as a description.
2024-06-06 10:33:26 +03:00
regexowl
38d6224675 V2Wizard: Deduplicate RH repository definition
This moves the RH repository used in "Package repository" column to an exportable const.
2024-06-06 10:33:26 +03:00
regexowl
45a42ce549 src: Migrate remaining files to TypeScript
This migrates remaining JavaScript files to TypeScript and updates imports.
2024-06-06 08:38:41 +02:00
regexowl
67138ad99a V2Wizard: Add tests for WSL/OpenSCAP behaviour
This adds two new tests:
- test that alert is rendered and OpenSCAP dropdown is disabled for WSL target only
- test that alert is rendered, but OpenSCAP dropdown is still enabled for target list that includes WSL
2024-06-05 17:04:14 +02:00
regexowl
dd87459b7a V2Wizard: Disable OpenSCAP for WSL
This adds an alert about OpenSCAP being incompatible with WSL when a WSL target is selected.

In a case of only WSL being selected as a target the OpenSCAP dropdown gets disabled.
2024-06-05 17:04:14 +02:00