Commit graph

897 commits

Author SHA1 Message Date
regexowl
f48bfd7c21 V2Wizard: Make useHas<target>TargetOnly hook re-usable
This refines `useHasIsoTargetOnly` hook into `useHasSpecificTargetOnly` hook which takes an image type as an argument and can be re-used for non-iso targets as well.
2024-06-05 17:04:14 +02:00
Sanne Raymaekers
a8112410b6 V2Wizard: add alert on snapshot step
Inform users that the snapshots only apply to RHEL content for now.
2024-06-05 14:55:35 +02:00
regexowl
160381908a V2Wizard: Add "clear" to package search
This adds a "clear" button to the package search input. The button appears only when there is already a searchTerm in the input.
2024-06-05 13:56:47 +03:00
regexowl
7e02a3adad LandingPage/ImagesTable: Shrink headings
This bumps the "Blueprints" and "All images" headings from 2XL to XL as per mocks.
2024-06-04 18:02:19 +03:00
Andrew Dewar
5dc4ecb63f HMS-4024: Update repositories step 2024-06-04 14:05:44 +02:00
Andrew Dewar
05080a3e84 V2Wizard: Fix pagination on Packages step (useMemo) 2024-05-29 10:22:16 +02:00
Michal Gold
0e71489a9f add changes at schema to the main branch <HMS-4066> 2024-05-28 14:34:43 +03:00
Sanne Raymaekers
2a7321247a src: add rhel-8.10 2024-05-27 16:21:54 +02:00
Florian Schüller
77fd8d6b45 Status.tsx: show as many different error types as possible (HMS-1442) 2024-05-27 11:11:17 +02:00
Amir
913a7d6406 WizardV2: fix google account typo 2024-05-27 09:42:13 +02:00
regexowl
12fc6b9841 V2Wizard: Set pkg recommendations expandable to open by default
This makes the pkg recommendations expandable open by default and updates the tests accordingly.
2024-05-22 16:48:11 +02:00
Anna Vítová
3018d64df6 Blueprints: Add import Wizard (HMS-3690) 2024-05-22 16:08:06 +02:00
Sanne Raymaekers
9b03fa6882 V2Wizard: Use content-sources for distro package search
This will make it easier to search for distro groups, as those are only
available for searching in the content-sources api.
2024-05-22 10:11:51 +02:00
Michal Gold
8092717197 WizardV2: add 'some' word to image table toolbar title 2024-05-21 14:55:20 +02:00
regexowl
38fe6d567f Blueprints: Fix snapshots + latest release
Previously created blueprints didn't take into account what the current latest RHEL release is and built the specific minor release that was included in the blueprint. This should fix the bug and also fix snapshots.
2024-05-21 13:55:54 +02:00
Andrew Dewar
aecc84bd34 Fixes wizard min-height 2024-05-13 11:47:51 +02:00
Amir
1eb5066967 feat(HMS-4116): support shell,yaml and python in first boot editor 2024-05-13 11:41:17 +02:00
Andrew Dewar
c61fda02b1 Bug - V2 Wizard: trim searchterm to prevent spaces from not producing results 2024-05-08 10:52:23 +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
7ac505fc89 V2Wizard: Make e-mail validation case insensitive
Fixes #1554

Case validation for the e-mail field was previously case sensitive, disallowing uppercase letters. This updates the validation to accept both lower and upper case letters.
2024-05-07 16:47:35 +02:00
regexowl
a6ff016662 LandingPage / ImagesTable: Set max width for the ImagesTable
Fixes #933

This applies `isWidthLimited` to the section containing ImagesTable, ensuring the table doesn't get stretched out too much.

The were also two sets of empty tags around ImagesTable return, this removes one of them.
2024-05-07 16:40:56 +02:00
regexowl
b9aa1c786a V2Wizard: Fix repo/description in review table of package on Edit
Previously the repository in the table of packages on the Review step defaulted to "EPEL". This expands the condition to take into account packages added on Edit.

Description is handled in the same way.

The "Not available" text is consistent with how the packages table looks on the Packages step for pkgs populated from the request. A popover with more information was added also to the review table as it contains explanation about the "Not available" text.
2024-05-06 15:15:24 +02:00
Amir
038f6f5ff5 V2Wizard: Hide first boot from review step 2024-05-06 14:27:58 +02:00
regexowl
1bf459ba58 Components: Migrate remaining files to TypeScript
Remaining JavaScript files were migrated to TypeScript. Files that didn't include JSX were renamed from `.tsx` to `.ts`.
2024-05-03 16:36:26 +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
034843a708 src: Add rhel-94
This adds rhel94.
2024-05-02 16:44:33 +02:00
Amir
6f9c4f3864 feat(HMS-3582): add first boot step to wizard 2024-05-02 16:35:26 +02:00
lucasgarfield
c88a0323f2 V2 Wizard: Expose OCI images in stable 2024-05-02 14:38:21 +02:00
Andrew Dewar
ee81385626 Add comment to css change 2024-05-02 15:17:08 +03:00
Andrew Dewar
caa3847990 Update repository modal funcitonality 2024-05-02 15:17:08 +03:00
Andrew Dewar
f9aae48dd1 Wizard V2: Packages refactor, recommendations fix. 2024-05-02 15:17:08 +03:00
lucasgarfield
8271e6d159 LandingPage: Update 'new' alert for blueprints to support quickstarts 2024-05-02 12:35:25 +02:00
Florian Schüller
7fa4c2a927 CreateImageWizard/Repositories: fix description if selected but disabled 2024-05-02 12:09:49 +02:00
Florian Schüller
8ac3fe5409 CreateImageWizard/Repositories: show hint why a repo is disabled 2024-05-02 12:09:49 +02:00
regexowl
0ff0ec9758 V2Wizard: Expandable to alert for disabled EPEL repo
This converts previously used expendable into an info alert.
2024-05-01 19:54:06 +02:00
regexowl
147841b095 V2Wizard: Calculate image size on Review step
This calculates and renders the minimum image size on the Review step.
2024-05-01 19:47: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
lucasgarfield
f14b90cf9a V2 Wizard: Disable snapshotting in prod and stage stable
It will be better to keep the stable branches in sync as much as
possible. If snapshotting is only ready for prod-preview, we should only
expose it in stage-preview.
2024-04-30 17:13:10 +02:00
Andrew Dewar
547436c177 Wizard V2: Prevents snapshot step in prod-stable. 2024-04-30 17:13:10 +02:00
lucasgarfield
8049f95d82 V2 Wizard: Fix edit mode initialization for custom file systems
Properly initializes wizard state in edit mode when custom file system
is in use.
2024-04-30 15:13:50 +02:00
lucasgarfield
61b23216f4 V2 Wizard: OpenSCAP edit tests
Edit mode is now fully tested and working for OpenSCAP profiles. A
handler for the PUT request was added and the fixtures were updated to
support this.

`EditImageWizard.tsx`: Previously we dispatched `initializeWizard()`
while waiting for the blueprintDetails to load. This meant that the
state was incorrect (empty) while the blueprintDetails request was
in flight.

`requestMapper.tsx`: Correctly populate state in edit mode if the
blueprint contains a custom file system – previously custom mountpoints
were dropped and automatic mode was selected.

`spyOnRequest()`: Differentiate between request types (e.g. GET, PUT)
for the same endpoint.
2024-04-30 15:13:50 +02:00
Florian Schüller
c1d6053083 ImagesTable: show detailed time when hovering over the "Updated" column 2024-04-30 10:55:06 +02:00
regexowl
baf58829eb ESLint: Make no-unused-vars rule stricter
This switches the `no-unused-vars` from warning to error and fixes the errors this caused.
2024-04-30 10:48:55 +02:00
regexowl
6e9091fab1 V2Wizard: Consistent capitalisation
This converts all headings and subheadings to sentence case for the sake of consistency.
2024-04-29 16:55:29 +02:00
regexowl
f2daa9c358 V2Wizard: Reinitialize AWS/Azure/GCP after deselecting target
Fixes #1555

This reinitializes the state of AWS/Azure/GCP target after it's tile was deselected. This way the state for the target won't be hanging there.
2024-04-29 15:35:59 +02:00
regexowl
a4eeab7156 V2Wizard: Remove manual partitioning for ISO only images
This hides the "Manually configure partitions" option from the FSC step for blueprints which have only ISO selected as a target.

There is already an alert in place for cases when ISO is combined with another target.
2024-04-29 11:57:30 +02:00
regexowl
ff2d629fc6 V2Wizard: Show packages only with a search term
Fixes #2012

Packages from custom repos stayed in the table upon clearing the search input. This show the results only when searchTerm is not empty.
2024-04-26 16:45:37 +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
bb91840eef V2 Wizard: Fix snapshot_date field
The snapshot_date in the image_request must be a date. snapshot_date is
an optional field and if no snapshot is used, the field should be
undefined. Previously it was an empty string and this caused image
builder to return a code 400 with message "Snapshot date is not in
DateOnly (yyyy-mm-dd) format".
2024-04-26 15:03:17 +02:00
Ondrej Ezr
7246cfbd16 WizardV2: pass module_hotfixes to the request 2024-04-26 13:59:20 +02:00