Michal Gold
2c414fb089
Wizard: remove confirmPassword from Mapper
...
this commit remove confirmPassword from Mapper because we decide that
this field is not relevant anymore to Users step, and it should remove
from the mapper as well
2025-02-04 14:08:54 +01:00
regexowl
d7a331b6a4
Wizard: Add firewall to Review step
...
This adds a firewall expandable to the Review step.
2025-02-04 13:32:25 +01:00
regexowl
f11ab64262
Wizard: Add validation to ChippingInput
...
This adds step validation to ChippingInput, allowing to validate imported values.
2025-02-04 11:37:16 +01:00
Sanne Raymaekers
fea03a8c72
CreateImageWizard: hide package group alert in cockpit plugin
...
Searching for groups isn't possible sadly, as the search works slightly
differently than content sources. Replace the alert with an alert on how
to use globbing.
2025-02-04 10:22:19 +01:00
Gianluca Zuccarelli
eac03ddc7d
store/cockpit: add package search
...
Add initial package search. Include the version, release & arch information
in the summary, since some packages might have a release with the specific
architecture and a `noarch` version.
2025-02-03 13:40:30 +01:00
Gianluca Zuccarelli
bc1564eddb
store/cockpit: add content sources api
...
Add a `contentSourcesApi` for the on-prem frontend. We need to add a small
workaround and put these endpoints under the `cockpitApi` reducer.
since RTK query here, doesn't like splitting out apis when they are
fundamentally the same.
To workaround this we can will just chain the endpoints so:
`emptyCockpitApi` -> `contentSourcesApi` -> `cockpitApi`
This allows us to keep the `contentSourcesApi` separate so
we can export some of the endpoints so that the `cockpitApi`
doesn't become a monolith.
2025-02-03 13:40:30 +01:00
Gianluca Zuccarelli
ed1b4c4b97
CreateImageWizard: hide registration on-prem
...
Hide the registration step for on-prem frontend
2025-02-03 13:40:30 +01:00
Michal Gold
5f7f958d07
Wizard: Add Administrator field to review step
...
this commit add administrator field to review step
2025-02-03 12:53:49 +01:00
regexowl
4145157858
Wizard: Add firewall services
...
This adds firewall services, using the `<ChippingInput>` components. New tests were also added.
2025-01-29 14:48:15 +01:00
Gianluca Zuccarelli
94f24ce085
store/cockpitApi: add create blueprint mutation
2025-01-28 13:29:21 +01:00
Gianluca Zuccarelli
c104f30cd2
store/cockpitApi: add list snapshot mutation
...
This is not ideal, but we needed to add an empty endpoint for
this, even though we're ignoring it on prem. The frontend for
the service makes the api call regardless, so we can't ignore
this.
2025-01-28 13:29:21 +01:00
Gianluca Zuccarelli
a3529f9108
CreateImageWizard: ignore org-id for on-prem
...
We can ignore the org-id when trying to get the state of the
blueprint during the blueprint creation. This is unnecessary
info for `on-prem`
2025-01-28 13:29:21 +01:00
Gianluca Zuccarelli
d0a69082f3
CreateImageWizard: disable analytics for on-prem
2025-01-28 13:29:21 +01:00
Michal Gold
6e36232e1a
Wizard: Add remove user button in users step
...
this adds remove user button and add unit test as well.
2025-01-27 14:30:22 -06:00
regexowl
96d68583a3
Wizard: Add kernel to Review step
...
This adds a kernel expandable to the Review step.
2025-01-27 13:48:39 -06:00
Michal Gold
aa8086176b
wizard: create new component with add eyeIcon button inside textInput
...
this commit create new component with add eyeIcon button inside textInput,
for password field
2025-01-27 13:35:18 -06:00
Gianluca Zuccarelli
45b83bd4fb
CreateImageWizard: initialize on-prem with host arch
...
Initialize the create image wizard with the host arch for the
on-prem frontend.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
44af2f278b
CreateImageWizard: initialize on-prem with host distro
...
Initialize the create image wizard with the host's distribution for the
on-premise frontend.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
29b7e02de2
CreateImageWizard: hide activation keys for on-prem
...
Subject says it all
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
e64008aec7
CreateImageWizard: disable steps for on-prem
...
For a start, we will disable custom repositories and the OpenSCAP steps
for the on-prem version of the frontend.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
6e9bd89b08
store/backendApi: create a useBackendPrefetch hook
...
Create a helper hook for RTK prefetch queries. This wrapper function
is needed since the imagebuilderApi and cockpitApi aren't at parity
yet.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
5a70e31d5a
store/cockpitApi: empty get oscap profiles function
...
Create the boilerplate function for getting the Oscap profiles. We will
need to make a call to the `oscap` binary to get this information. So
we will leave it empty for now.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
34bf64debc
store/cockpitApi: get blueprint endpoint
...
Create a get blueprint endpoint for the on-prem store.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
5988c42b6f
store/cockpitApi: getArchitectures endpoint
...
We were making a call to a dead endpoint to get the architectures.
Instead, create a custom query function to return the list of architectures
and image types.
2025-01-27 17:03:06 +01:00
Gianluca Zuccarelli
aef3f4a3e4
multi: on-prem can't use the unleash flag
...
Switch the useFlag usage to the stub function defined in the
`useGetEnvironment` utility
2025-01-27 17:03:06 +01:00
regexowl
6a29f7f344
Wizard: Remove redundant code, fix addItem
...
Removed redundant code and updated `addItem` to check for duplicate arguments in both required and non-required list.
2025-01-27 13:21:48 +01:00
regexowl
1b21852518
Wizard: Add kernel append input
...
This adds the kernel append input. New arguments can be added by pressing the "Add" button or hitting Enter after the argument.
The kernel arguments linked to a selected OpenSCAP profile are rendered in a category marked as "Required by OpenSCAP" and are read only.
2025-01-27 13:21:48 +01:00
Michal Gold
771a582916
wizard: add support of TextArea for ssh_key field
...
this commit add support of TextArea for ssh_key field
2025-01-25 17:07:53 -06:00
Michal Gold
7d34d30b08
wizrad: add validation to ssh key field (HMS-5349)
...
this commit add validation to ssh key field
JIRA: HMS-5349
2025-01-23 14:08:24 +01:00
regexowl
0f86336af6
Wizard: Services step basics
...
This adds basic structure of the Services step.
2025-01-23 09:56:24 +01:00
regexowl
db52b869b5
Wizard: Reset error text and validate on plus button
...
This updates `<ChippingInput>` component to resolve two bugs:
- validation wasn't triggered when using the plus button on Timezone and Locale steps
- error text wasn't reset when the value was changed or cleared
2025-01-22 11:48:10 +01:00
regexowl
adf802174c
Wizard: Fix "and build images" buttons
...
The "Create / Save changes to a blueprint and build images" buttons were disabled by default.
2025-01-22 11:38:58 +02:00
Michal Gold
25f124077c
wizard: add Administrator checkbox to users step (HMS-4903)
...
this commit add Administrator checkbox to users step
2025-01-21 13:29:25 +01:00
regexowl
30d77faeb5
this commit add validation to name field in Users step
2025-01-21 11:36:33 +01:00
Michal Gold
5a7ce1efee
wizard: extand steps only if there are values in the step
...
add condition that check if there is value in Hostname, Locale, Timezone steps
and if there is no value, we dont see the extendable part in review step
FIX ISSUE: (#2718 )
after changes when there is no value in Timezone step, we should update
test if we want to see the extendable section
2025-01-21 10:06:19 +01:00
regexowl
bfef28999d
Wizard: Add validation for kernel step
...
This adds validation for the Kernel step.
2025-01-21 08:33:52 +01:00
regexowl
2d011c52e1
Wizard: Add custom kernel name warning
...
This adds a warning when custom kernel name is selected.
2025-01-21 08:33:52 +01:00
regexowl
addd933451
Wizard: Switch kernel name dropdown to typeahead with custom options
...
This replaces previously used single dropdown with a typeahead that allow creating a custom option.
2025-01-21 08:33:52 +01:00
regexowl
86add0ee38
validators: Remove kernel name validator
...
We currently don't use this validator.
2025-01-21 08:33:52 +01:00
regexowl
1fce574146
Wizard: Swap kernel name input with drop down
...
This replaces the kernel name input with a static drop down populated with valid values.
2025-01-21 08:33:52 +01:00
regexowl
c121e5caba
Wizard: Add Kernel name input
...
This adds a kernel name input.
2025-01-21 08:33:52 +01:00
regexowl
6918313d6f
validators: Remove undefined where only string value expected
...
This removes checks for an `undefined` value in validators that take only `string`.
2025-01-20 13:23:34 +01:00
regexowl
563ff04054
Wizard: Parse old snapshot dates when editing
...
This updates format of the snapshot date when the blueprint with the old format gets edited.
2025-01-20 11:43:40 +01:00
regexowl
6e6e3b1ccc
Wizard: Fix repo status formatting
...
This fixes the formatting of repositories status.
2025-01-17 09:11:41 -06:00
regexowl
4802d08214
Wizard: Firewall ports input
...
This adds chipping input for ports on the Firewall step.
2025-01-16 11:23:56 -06:00
Michal Gold
568b8c83cf
wizard: add ssh_key to review step
...
this commit add ssh_key to review step under Users
2025-01-15 10:42:43 +01:00
regexowl
3167effa1b
Wizard: Add unleash flag and update tests
...
This gates the step behind an unleash flag and updates the existing tests so they pass with the new step added.
2025-01-14 14:11:22 -06:00
Lucas Garfield
e6bc0d429a
Wizard: Firewall customization scaffolding
2025-01-14 14:11:22 -06:00
regexowl
5696d1805f
Wizard: Do not show warning icon if warning === ''
...
Fixes #2743
This hides the warning under FSC min size if the body of warning is empty.
2025-01-14 15:46:30 +01:00
Michal Gold
b3a8597b66
Revert "wizard: add confirm password to users step (HMS-4903)"
...
This reverts commit ba70753a80 .
2025-01-08 12:47:05 -06:00