Commit graph

384 commits

Author SHA1 Message Date
regexowl
0ecf7c9887 Wizard: Unique default key name
Fixes #2353

This adds a random suffix to the default activation key name, making it less predictable.
2024-08-16 16:33:54 +02:00
Andrew Dewar
be95cd9dc0 Fixes 4426: Confirm Image builder is using origin 2024-08-16 10:26:40 +02:00
regexowl
c1049b32ad Wizard: Add analytics tracking for package recommendations
This adds a code snippet to track package recommendations via Amplitude.

Tests were failing without default mock for `analytics.track()` value used to track package recommendations.
2024-08-15 12:31:06 +03:00
regexowl
a5f9339d27 Wizard: Update the code after comments
This reverts Customer portal -> Activation keys page and ensures all the boxes are checked when the "Automatically register" option is checked again.
2024-08-14 15:26:08 +02:00
regexowl
2caddb66c7 Wizard: "Always blue" update to the Registration step
This updates the Registration step as per recent mocks.

There is now only one checkbox which switches between (register everything now / register later). When the checkbox is not checked "register later" option gets selected, activation key dropdown gets disabled and information about activation keys is hidden to support the fact that no activation key will be used.

When the checkbox is checked it either loads previously used activation key in the case of "on edit" scenario, looks for a recently used activation key in localStorage or in a case there are no activationKeys automatically creates and selects one.

The Next button gets disabled only when "register-now" is selected, but there is no activationKey selected. As the option to clear the dropdown got removed this should occur only when fetching/creating activation key.
2024-08-14 15:26:08 +02:00
regexowl
e6a35eaf79 Wizard: Rename FileSystemPartitionMode to FileSystemConfigurationType
This renames `FileSystemPartitionMode` to `FileSystemConfigurationType` in preparation to expose raw/lvm partitioning in the UI.
2024-08-13 14:59:23 +03:00
regexowl
a3abc29f51 Wizard: Add eslint-disable to useEffect
This disables `react-hooks/exhaustive-deps` rule for dependency arrays that should run only once on mount and therefore need to stay empty.
2024-08-12 13:09:58 +03:00
Michal Gold
3c44d9414a createImage: add default name in details step <HMS-4494>
this commit add default name for blueprint name field to be able
to create an image without filling any name
format name: "$OS $ARCH $TARGETS $DATE".
2024-08-12 08:43:26 +02:00
regexowl
5d73adfbd6 src: Absolute imports
While running build there was a bunch of PatternFly imports that were resolved as undefined. This adds an absolute path for each of those imports.
2024-08-09 09:22:17 +02:00
regexowl
79d54eed7b Wizard: Fix information rendered in package recommendations
When a package got selected and deselected again, landing on 0 for selected packages, the information shown in the package recommendations was "Select packages to generate recommendations.No recommendations found for the set of selected packages", this updates the logic to separate the messages.
2024-08-08 12:50:56 +02:00
regexowl
933e65d590 Wizard: Update docs after move to new preview
`/preview` is no longer used in url.
2024-08-05 13:54:13 +02:00
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
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
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
Ondrej Ezr
5fcc80d2db Wizard: Drop the WizardV1 2024-06-19 09:10:22 +02: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
8a25ec66f3 src: Fix "Table headers must have an accessible name" warning
The tests output contained following warning:

```
console.warn
    Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.
```

This fixes the warning by adding an `aria-label` to every empty table heading cell.
2024-05-07 18:20:08 +02:00
regexowl
813c06c5bd Utilities: Migrate remaining files to TypeScript
This migrates remaining JavaScript files in Utilities to TypeScript.
2024-05-03 15:04:45 +02:00
regexowl
e9d28498e1 constants: Move URLs to constants
Fixes #1923

This moves all URLs from code to constants.
2024-04-26 15:54:46 +02:00
Gianluca Zuccarelli
26066f95f7 V1Wizard: promote oscap to prod stable 2024-04-10 16:16:22 +02:00
Gianluca Zuccarelli
c44f8ea0ac V1Wizard/openscap: disable broken profiles
Currently the two stig profiles build but don't boot. While we wait for a
fix upstream, we should disable the profiles.
2024-04-10 16:16:22 +02:00
regexowl
155962c141 ESLint: Resolve useSelector-prefer-selectors errors
This resolves all occurences of useSelector-prefer-selectors errors.
2024-04-02 20:21:34 +02:00
regexowl
18e0dc0cd7 V1Wizard: Add full bottom pagination to Repositories
This adds a full pagination to the bottom of the Repositories step. This allows the user to get to the very end of the repositories list easily.
2024-04-02 11:50:39 +02:00
regexowl
a213bcb014 Wizard: Resolve deprecation warning in test output
This resolves the following warning: `Deprecation warning: value provided is not in a recognized RFC2822 or ISO format.` in test output.
2024-03-26 16:32:27 +01:00
Michal Gold
71683a1ad1 fix one warning at useEffect on Oscap file
this commit fix a warning-
React Hook useEffect has a missing dependency: 'change'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
2024-03-21 12:06:01 +01:00
Gianluca Zuccarelli
d57cd95c65 V1Wizard: masked services -> disabled services
For the UX the user doesn't really need to know that the services are masked,
rather than disabled in the backend. We can simplify this and show the masked
services as disabled.
2024-03-21 11:16:50 +01:00
lucasgarfield
7c5a040ad7 V1Wizard: Change qcow search param to qcow2 (HMS-3684)
This commit changes the optional search param `target=qcow` to be
`target=qcow2` so it is in alignment with the UI.
2024-03-20 17:29:51 +01:00
regexowl
76fba98773 V1Wizard: Add search parameter for target selection (HMS-3684)
Add an optional search parameter to the V1Wizard like so:

`/insights/image-builder/imagewizard?target=iso`
or
`/insights/image-builder/imagewizard?target=qcow`

This results in wizard being opened and iso or qcow target being pre-selected. The Insights assistant chat bot will make use of this feature.
2024-03-20 17:29:51 +01:00
Gianluca Zuccarelli
0971ebf43c wizard/oscap: masked services customization
Add masked services as a customization option, since disabling systemd
units when the package isn't installed breaks the image build.
2024-03-19 10:59:31 +01:00
Simon Steinbeiss
9020392969 V1 Wizard: Add search parameter for arch selection
Add an optional search parameter to the wizard like so:

/insights/image-builder/imagewizard?arch=aarch64

This results in the wizard being opened and 'aarch64' being pre-selected as the architecture.
The Insights assistant chat bot and our websites (access.redhat.com and
developers.redhat.com) will make use of this feature.

Relates to HMS-3684
2024-03-15 09:08:57 +01:00
regexowl
a7d320e4a8 ESLint: Fix problems so linter check passes
This fixes errors caused by turning `@typescript-eslint/ban-ts-comment` on.
2024-03-14 15:04:12 +01:00
regexowl
e2d46640f9 Wizard: Add FSC alert for bare metal images
FSC customisations are not being applied to bare metal - installer images, this adds an alert to make users aware of the fact.
2024-03-12 10:16:54 +01:00
regexowl
f82b2453f9 V1/V2Wizard: Capitalise ID on Azure step
This capitalises id -> ID in the test of an alert on Azure step to keep consistent with the capitalisation throughout the step.
2024-03-04 15:59:38 +01:00
lucasgarfield
3493772672 V1 Wizard: Add search parameter for release selection
Adding an optional search parameter to the wizard like so:

/insights/image-builder/imagewizard?release=rhel8

results in the wizard being opened and RHEL 8 being pre-selected as the
release.

The Insights assistant chat bot will make use of this feature.
2024-03-01 17:33:08 +01:00
Ondrej Ezr
627f953dfc feat(HMS-3341): pass module_hotfixes flag to compose request 2024-02-28 12:41:20 +01:00