regexowl
60175aa911
Wizard: Remove category and fix Review alignment
...
This removes the chip category and adds a version slug to make the alignment on Review step work properly.
2024-12-06 13:53:56 -06:00
regexowl
1483ff9e9e
Wizard: Replace the list of timezones
...
This replaces the list of timezones created via `Intl.supportedValuesOf('timeZone')` by tzdata-2024b list.
2024-12-06 13:53:56 -06:00
regexowl
39f618c3d8
Wizard: Update the way of adding NTP servers
...
This updates the way NTP servers can be added:
- helper text was removed
- add button (PlusCircle) was added to the input group utilities
- remove input button is now rendered always, but gets disabled when there's no input
- chip group was moved under the input
Also I've noticed that the "clear input" button completely cleared the list of NTP servers which would make me very angry as a user. Fixed it, so now the clear input button only clears the input field and the `clearNtpServers` action was removed as we don't use it anywhere else.
2024-12-06 13:53:56 -06:00
regexowl
b8915da3fd
test: Add more test coverage for Timezone step
...
This adds more tests for the Timezone step:
- 'Step Timezone' -> 'revisit step button on Review works'
- 'Timezone request generated correctly'
- 'Timezone edit mode'
2024-12-06 13:53:56 -06:00
regexowl
c851d4abac
Wizard: Add Timezone step to Review lists
...
This adds a Timezone overview to the Review step.
2024-12-06 13:53:56 -06:00
regexowl
6427dc5285
Wizard: Add Timezone dropdown and NTP servers input
...
This adds a Timezone select, the select is typeahead and allows to filter through all defaultTimezones. It's also scrollable so it doesn't take up all of the space.
The NTP servers are currently in a text input, the server is added by confirming with a space, comma or an Enter, making the server a chip and adding it to the array of NTP servers.
2024-12-06 13:53:56 -06:00
regexowl
ab446c2a36
Wizard: Add timezone structure to store and mapper
...
This creates structure and actions for the timezone customization in the wizardSlice and requestMapper.
2024-12-06 13:53:56 -06:00
Gianluca Zuccarelli
0d4bb26e0f
multiple: check when var is possibly undefined
...
In cases where a field on an object might be undefined,
rather omit the value than set the field to undefined.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
d4436dc6a9
multiple: set sane defaults
...
Set sane defaults for some types rather than setting them to `undefined`.
This is so that we can set `exactOptionalPropertyTypes` to true in our
tsconfig.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
877497f81c
pagination
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
4125a9cd3b
multiple: set pagination defaults
...
Set pagination defaults, otherwise these might be `undefined`.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
bad77421ae
api: union undefined
...
Set the option to generate union undefined types for objects that have
optional items. This will allow us to enable `exactOptionalPropertyTypes`
in our tsconfig [1].
[1] This is a recommended setting, see:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
2024-12-06 12:02:34 -06:00
regexowl
e4e83d4417
Wizard: Add locale structure to store and mapper
...
This creates structure and actions for the locale customization in the wizardSlice and requestMapper.
2024-12-05 11:06:11 -06:00
regexowl
6e97304327
Wizard: Basic Locale step
...
This adds Locale step basics and file structure.
2024-12-04 12:45:35 -06:00
regexowl
c268267146
devDeps: Manually bump msw from 2.6.0 to 2.6.6
...
This bumps msw from 2.6.0 to 2.6.6
2024-12-04 12:02:07 -06:00
regexowl
b16243f68a
Wizard: Conditionally hide package recommendations
...
This shows package recommendations only when RHEL 8 or RHEL 9 are selected as a distribution.
2024-12-04 10:51:39 -06:00
Sanne Raymaekers
c0801cd73d
src/test: Add test for HyperV generation
2024-12-04 12:37:23 +01:00
Sanne Raymaekers
c1378a7913
Wizard: Integrate HyperV selection in Azure target options
...
This determines the generation the image will get registered as in
Azure. V2 supports UEFI and more instance types than V1.
2024-12-04 12:37:23 +01:00
Sanne Raymaekers
b4e7fe8923
Wizard: Add component to select Azure HyperV generation
2024-12-04 12:37:23 +01:00
Simon Steinbeiss
c4a06e2ac9
CreateImageWizard: Add RHEL10beta search parameter
...
This means we can easily link to the wizard and pre-select RHEL 10 Beta
which will be nice for the release announcement blog post.
2024-11-29 14:22:37 +01:00
Ondrej Ezr
a99c26143e
api: update imagebuilder schema
2024-11-28 09:01:08 +01:00
Ondřej Ezr
f270139ec1
ImagesTable: add RHEL 9.5 display value
2024-11-28 09:01:08 +01:00
Sanne Raymaekers
ee19ba1546
Wizard: rely on feature flag constraints for openscap step title
...
Feature flags can be constrained to preview / stable.
2024-11-27 13:49:30 +01:00
Anna Vítová
70462be0b7
Wizard: add more tests for on prem filesystem
2024-11-26 17:12:48 +01:00
Anna Vítová
80f7980676
Wizard: add suport for json on prem
2024-11-26 17:12:48 +01:00
Anna Vítová
b2401afe27
src: add flag to measure on prem import
...
The flag can be used later to track the usage of on prem import feature.
2024-11-26 13:03:55 +01:00
Anna Vítová
5cfab75813
api: update image-builder api
2024-11-26 13:03:55 +01:00
regexowl
f48e1bfcb5
ImagesTable: Unify pagination format with Repositories
...
This makes bottom pagination format on ImagesTable consistent with the format being used in Repositories service.
2024-11-25 19:04:54 +01:00
Sanne Raymaekers
ece0738150
store/enhancedImageBuilderApi: handle empty error data
...
There's a case where the IB api returns an error without more data in
it, though it might be coming from a component which treats the request
before the image builder api.
2024-11-25 17:07:37 +01:00
regexowl
d8bb3485d8
Wizard: Add v5 PF slug to classNames
...
This adds v5 PF slug to classNames throughout the code base, making the formatting work properly.
2024-11-25 16:54:59 +01:00
regexowl
4f728874f7
ImagesTable: Fix image name spacing
...
This adds a component value to the image name, making the spacing work correctly.
2024-11-25 16:32:10 +01:00
Simon Steinbeiss
6208596b35
ImageBuildStatus.css: Add version to status colors
...
Add the v5 slug to the status colors as the unversioned colors don't
seem to be defined in PatternFly anymore. I haven't looked at the
history, but I presume this was done at some point during v6
development, as the upstream colors now contain the v6 slug:
https://www.patternfly.org/components/banner/design-guidelines/#usage
Fixes #2611
2024-11-25 13:22:46 +01:00
Anna Vítová
c75dc5da21
Wizard: add warning for the min size in bytes
2024-11-21 15:29:42 +01:00
Anna Vítová
63e9610beb
src: Add on prem blueprints import support
2024-11-21 14:11:10 +01:00
regexowl
dc9ba5121f
Wizard: Fix package recommendations
...
Previously the Wizard crashed when looking for recommendations for packages that had none.
How to reproduce the crash:
- go to the Packages step
- search for and select `tmux` package
After fix:
- when selecting a `tmux` package or any other package without recommendations, the recommendations stay empty, but the Wizard doesn't crash
2024-11-20 11:43:02 +01:00
regexowl
54f482bddc
Wizard: Update description fetching for recommended packages
...
This update the way recommended packages' descriptions are fetched.
contentSources API was updated to accept an array of packages as a searchRpm argument, meaning we can now send a request to fetch all package descriptions at once.
2024-11-19 18:44:49 -06:00
regexowl
ad784b9ab9
api: Update contentSources schema
...
This updates the contentSources schema and regenerates the API.
2024-11-19 18:44:49 -06:00
regexowl
b526ad3c60
Wizard: Basic Timezone step
...
This adds bare bones Timezone step with appropriate file structure and basic unit tests.
2024-11-19 13:01:34 -06:00
regexowl
b8c852c836
Wizard: Prefetch the list of activation keys on Image output step
...
This prefetches the list of activation keys upon entering the Wizard, making the loading times on the Registration step better for the user.
2024-11-19 11:40:51 -06:00
Sanne Raymaekers
4637a2a5d8
image-builder-frontend: only show Beta releases if flag is on
...
Betas are only available for a few weeks at a time, so they should be
able to be hidden on demand.
2024-11-19 16:40:27 +01:00
regexowl
d13eae23dd
Wizard: Disable rhc for RHEL 10 Beta
...
This temporarily disables rhc option for RHEL 10 Beta registration as it currently doesn't work.
2024-11-19 16:20:37 +01:00
Sanne Raymaekers
15ac21f988
Wizard: hide unsupported steps for RHEL 10 Beta
2024-11-19 11:21:57 +01:00
Sanne Raymaekers
73dad35e45
src/ImagesTable: support RHEL 10 Beta
2024-11-19 11:21:57 +01:00
Sanne Raymaekers
83125863e6
api: update image-builder api
2024-11-19 11:21:57 +01:00
Sanne Raymaekers
b8b9b8f846
src/Utilities: RHEL 10 support for isRhel
2024-11-19 11:21:57 +01:00
Sanne Raymaekers
3ada1ceb68
Wizard: RHEL 10 support
2024-11-19 11:21:57 +01:00
Sanne Raymaekers
79e0676c7c
src/constants: add RHEL_10_BETA
...
RHEL_10 is defined but not added to the releases yet. This way utility
functions and helpers can be updated without showing RHEL_10 in the UI
yet.
2024-11-19 11:21:57 +01:00
Anna Vítová
7c99415822
Wizard: Add bytes to min_size partitioning <HMS-4981>
2024-11-14 11:07:45 +01:00
Sanne Raymaekers
7b365dcb4d
Wizard: handle dos scripts in first boot
...
Scripts in which lines are terminated by CRLF break the first boot
service, so let's make sure the line termination is correct.
2024-11-14 10:33:44 +01:00
Michal Gold
ba9546193e
Wizard: add support for other input type in HookValidatedInput
...
adds `type` prop to `HookValidatedInput` with a default of 'text', to be able to support other type input like 'password'
2024-11-14 10:24:00 +01:00