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
90bf5cf91f
src: Rely only osbuild-composer's cloudapi types
...
Use the predefined types in the status row and the onprem to hosted
mapper.
2025-02-05 15:54:57 +01:00
Sanne Raymaekers
41869611db
Blueprints/helpers: fix mapping hosted to on prem
...
`isAdministrator` isn't an option onPrem.
2025-02-05 13:11:14 +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
Gianluca Zuccarelli
b469775ef5
Components/Cockpit: NotReady
...
Add a secondary button that takes the user to the `osbuild-composer.socket`
services file inside the cockpit services plugin.
2025-02-04 23:08:50 +01:00
Gianluca Zuccarelli
abca3ac760
Components/Cockpit: add a not ready component
...
Add a component to display when the osbuild-composer socket
is not running. We could potentially try start the socket
in the future when clicking the button, rather than re-directing
to the cockpit services plugin.
2025-02-04 23:08:50 +01:00
regexowl
9e4cd302b5
Wizard: Add services to on-prem mapper
...
This adds services to on-prem mapper.
2025-02-04 17:21:50 +01:00
Anna Vítová
608b0f1593
CreateImageWizard: fix users ssh key naming in mapper
...
The naming of the ssh key was misspelled, this commit fixes it so that
it is according to docs.
2025-02-04 15:47:44 +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
3cd3aa0176
Wizard: Add users to on-prem mapper
...
this adds users to on-prem mapper.
2025-02-04 14:39:34 +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
7524bb1eef
ImagesTable: Format status text
...
This adds formatting to the status text, ensuring it's the same as on Repositories step.
2025-02-04 13:55:30 +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
6ec433f9d3
ImagesTable: fix local target status
...
The local target status in osbuild-composre ended up being called
`artifact_path`.
2025-02-04 10:22:19 +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
Sanne Raymaekers
1b4ecdb271
ImagesTable: ensure local target is copyable
...
To ensure the local file target is copyable and usable in
`cockpit-files`, the artefact directory needs to be readable.
2025-02-03 14:13:31 +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
9c3581f21c
store: split apis into sub directories
...
Since we will need to add other api endpoints, e.g. `contentSourcesApi` for
the on-prem frontend, this PR restructures the store directory to make future
changes more manageable.
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
73e7a51ab0
Wizard: Add firewall to on-prem mapper
...
This adds firewall to on-prem mapper.
2025-02-03 10:56:14 +01:00
Sanne Raymaekers
9b9de0bba5
ImagesTable/Instance: open cockpit's file browser for local imgs
...
Uses `cockpit.jump` to prevent the page actually loading, which makes it
very easy to navigate back to image builder.
2025-01-31 11:38:36 +01:00
Sanne Raymaekers
c8c62dda9d
store/cockpitApi: compose status support
...
Finds the relevant compose, asks for its status and reads the original
compose request from disk.
2025-01-30 10:53:01 +01:00
Sanne Raymaekers
7bd5e2fa95
ImagesTable: switch to mixed api for getting composes
2025-01-30 10:53:01 +01:00
Sanne Raymaekers
449aad5306
Blueprints/BuildImagesButton: switch to mixed api
...
The mixed api supports both the service and on-prem.
2025-01-30 10:53:01 +01:00
Sanne Raymaekers
d13276eeee
store/cockpitApi: support building images from blueprint
...
The structure of the local cache is now:
```
└── blueprint
└── blueprint.json
└── image1
└── image2
└── blueprint2
└── blueprint2.json
└── image1
```
Building an image reads the blueprint, and creates a new image file
under the relevant blueprint folder, which contains the image request.
The image request that's sent off to composer and the request that's
saved differs slightly in the upload structures.
2025-01-30 10:53:01 +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
regexowl
a4d672b4e8
Blueprints: Add kernel to on-prem mapper
...
This adds kernel to the on-prem mapper.
2025-01-28 11:35:44 +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