Commit graph

21 commits

Author SHA1 Message Date
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
facb71ceae Wizard: validate uniqueness of Blueprint name 2024-06-26 15:41:48 +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
regexowl
df9ec1499d V2Wizard: Fix FSC units on Edit
This updates the logic of parsing bytesize into size/unit pair.

Currently 'GiB' is set as a default which causes problem with smaller partitions on Edit.

A validation for the min_size is in place and the rule is that the size cannot be smaller than 0 of a given unit. If there was a partition with smaller size in KiB it will break the rule when converted to GiB.
2024-05-01 19:47:41 +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
lucasgarfield
782a8eba7e V2 Wizard: Add custom file system to request customizations (HMS-3690)
The blueprint request now contains a field for the filesystem in its
customizations.
2024-04-16 10:02:19 +02:00
Jakub Rusz
fc9a119933 V2Wizard: Update ouiaIds for File system configuration
Making it consistent with V1 wizard.
2024-04-15 18:21:32 +02:00
Michal Gold
4ba9235b1b V2Wizrd: remove Duplicate mount points warning 2024-04-10 08:30:13 +02:00
Ondrej Ezr
54d032e0f0 WizardV2: filesystem mountpoint size validation 2024-04-09 13:40:35 +02:00
Ondrej Ezr
561e82827e WizardV2: filesystem units and size 2024-04-09 13:40:35 +02:00
Ondrej Ezr
3c3ca3537a WizardV2: Filesystem partitioning suffix 2024-04-09 13:40:35 +02:00
Michal Gold
9cddbdfa38 V2Wizard: Add ouiaIds to File System step
this commit adds ouiaIds to the file system for automation and manual configurations and for text input field.
2024-04-09 12:56:38 +02:00
Amir
e5bfc19194 WizardV2: Add draggable mount point 2024-04-09 12:48:17 +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
Michal Gold
698d21df42 V2Wizrad: fix validation at file system step (HMS-3733)
this commit fix validation when usr choose duplicate mount point
andwhen there is no root partition
2024-04-02 15:25:37 +02:00
Michal Gold
bbf077b98f V2Wizard: fix partition at review step
this commit fix the partition table at review step when user choose manual partition
2024-03-25 15:02:02 +01:00
regexowl
c0dfe0f218 V2Wizard: Disable changing of root partition
This makes the drop down for root partition disabled, preventing the user from creating a configuration without a root partition.

Option to add suffix was also removed for mount points which don't allow suffixes.
2024-03-15 11:35:46 +01:00
Michal Gold
0d2735fe0f V2Wizard: fix remove partition funtionallity (HMS-3753)
this commit add the remove partition functionlity to file system step
2024-03-14 14:21:14 +01:00
Michal Gold
1b6a570f71 V2Wizard: Add partition function (HMS-3752)
this commit add the addPartition function to support the adding partition
at the file system step
2024-03-13 16:04:15 +01:00
regexowl
1c9b2242fa V2Wizard: Add FSC alert for bare metal images
This mirrors the functionality of https://github.com/osbuild/image-builder-frontend/pull/1786 in V2Wizard.

An alert was added to the FSC step to make users aware that customisations are not being applied to bare metal - installer images.
2024-03-12 10:53:48 +01:00
mgold1234
430ea83df0 V2 Wizard: Add File System Configuration Step (HMS-2781)
The FSC step is added to the wizard and takes full advantage of Redux
for state management.

This is still a work in progress.

Supported features:
1. Select partition mountpoint prefix (e.g. /var, /home)
2. Edit partition mountpoint suffix (e.g. /home/videogames)
3. Change displayed units (KiB, MiB, GiB)

Supported but buggy features:
1. Edit partition size

Unsupported features:
1. Add partitions
2. Remove partitions
3. Validation
2024-03-08 18:14:33 +01:00