regexowl
f60e80b4e8
Wizard: Fix disable Next on Registration step
...
When the option to register with rhc and insights was added back the disableNext condition wasn't updated, allowing user to continue with registration even without selecting activation key.
2024-08-20 12:44:20 +02:00
Ondrej Ezr
39a5e93c4a
Blueprints: change diff modal button label
...
For the diff modal, we want to change the button label.
In this context Synchronize images is more appropriate label.
2024-08-19 15:33:39 +02:00
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
regexowl
b7ccc2cca0
testUtils: Merge renderCustomRoutesWithReduxRouter and renderWithReduxRouter
...
`renderCustomRoutesWithReduxRouter` and `renderWithReduxRouter`are functionally the same apart from routes they use to render components.
We could just use `renderCustomRoutesWithReduxRouter` and use the routes from `renderWithReduxRouter` as a default value for an optional parameter `routes`.
2024-08-12 09:46:10 +02: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
1554d78cba
test: Move mocks to setup file
...
This moves all the mocks used throughout our test files into the test setup file.
2024-08-08 16:53:49 +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
Anna Vítová
a799d70a85
blueprint: Add preview label to import button
2024-08-08 12:56:27 +03:00
Ondrej Ezr
e0b33fd6f5
Bluperint: Allow selecting targets from diff modal
2024-08-06 11:16:34 +02:00
Ondrej Ezr
e1057208f3
Blueprint: show basic version diff
2024-08-05 18:48:08 +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
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