Klara Simickova
75770dc97f
Revert "Wizard: Sticky footer returns"
...
This reverts commit e875f99f6b .
2025-02-13 17:02:29 +01:00
regexowl
e875f99f6b
Wizard: Sticky footer returns
...
The original solution that broke some time ago works again. Removing the comments and temporary workaround.
2025-02-13 16:48:51 +01:00
regexowl
34720c799e
src: Remove snapshots fallthrough logic
...
Snapshotting is available in prod-stable now. We can probably remove the fallthrough logic now.
2025-02-13 15:51:31 +01:00
regexowl
87d6c57174
Wizard: Fix nav status icon
...
Status icon rendered only when the step was previously visited, this caused problems with imported blueprints.
How to reproduce a bug:
1. import a blueprint with invalid hostname
2. skip to Review
Current behaviour:
- the Create blueprint button is disabled, but there is no indication of error next to the Hostname step in navigation
After fix:
- the error status should be rendered next to the Hostname nav item
2025-02-13 13:29:36 +01:00
Sanne Raymaekers
fd4fe79b41
CreateImageWizard/ImageOutput: hide description in cockpit
...
Lifecycle information isn't available yet, so let's just hide it.
2025-02-11 21:17:18 +01:00
Sanne Raymaekers
76f86c3711
CreateImageWizard: default to major releases on prem
...
In RHEL, VERSION_ID actually refers to the minor release. Let's strip
the minor component from it until we actually support those explicitly.
2025-02-11 21:17:18 +01:00
regexowl
4ccf932c21
Wizard: Remove CodeBlocks for "None" as a value
...
Render "None" just as a plain text when there are no values to be shown in the review expandable.
2025-02-10 10:47:55 +01:00
regexowl
ac725f3ae1
Wizard: Gate kernel info behind feature flag
...
This gates the visibility of kernel information behind a flag on the OpenSCAP step.
2025-02-07 18:32:52 +02:00
regexowl
87a908af35
Wizard: Gate services on OpenSCAP step behind flag
...
This gates the visibility of services on the OpenSCAP step behing a flag.
2025-02-07 18:32:52 +02:00
Michal Gold
a34251d0a7
Wizard: remove extendable section from Review step when there is no value
...
this removes extendable users from Review step when there is no user or kernel name
2025-02-06 17:02:00 +01:00
Michal Gold
7f54147a64
Wizard: change password to **** if there is value in pasword field
...
this changes password to **** if there is value in pasword field
2025-02-06 15:18:14 +01:00
regexowl
eeb70e38c3
Wizard: Add services to Review step
...
This adds systemd services expandable to the Review step.
2025-02-06 14:09:28 +01:00
regexowl
68d33130f7
src: Align to center
...
This ensures that both Landing page and Wizard are aligned to center within wide windows.
2025-02-06 13:30:23 +02:00
regexowl
5cc479115d
requestMapper: Fix snapshot date parsing
...
Regex was wrong, would take "2025-01-01T00:00:00.000Z" even though it's a valid RFC 3339 date.
2025-02-06 09:31:49 +01:00
regexowl
c2cdb84e77
validators: Remove unneeded condition for service validator
...
After the regex was fixed this condition should be removed.
2025-02-05 16:48:02 +01:00
Sanne Raymaekers
b574a7cabc
CreateImageWizard: fix systemd validator
...
The naming of systemd services don't follow the RFC in the comments. See
`man systemd.unit` for the specification.
2025-02-05 13:11:14 +01:00
Sanne Raymaekers
52a43b0f2d
CreateImageWizard: support edit mode on premise
...
The way the on premise wizard is initialized needed to be tweaked to
make it work for isEdit. Let's assume that the host distro and host
architecture are already correct in the blueprint.
2025-02-05 13:11:14 +01:00
regexowl
8bafe6cb80
Wizard: Add validation to Systemd services step
...
This adds validation to ChippingInputs on the Systemd services step.
2025-02-04 15:15:49 +01:00
regexowl
1e0cf96457
Wizard: Add inputs for disabled and enabled services
...
This adds inputs for disabled and enabled systemd services. New tests are also added.
2025-02-04 15:15:49 +01:00
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