Commit graph

2830 commits

Author SHA1 Message Date
Sanne Raymaekers
5b6259854d cockpit/spec: correct minimum required composer version
Package search was only added recently.

 Requires:       cockpit
 Requires:       cockpit-files
-Requires:       osbuild-composer >= 103
+Requires:       osbuild-composer >= 131

 %description
 The image-builder-frontend generates custom images suitable for
2025-02-07 15:13:09 +01:00
Sanne Raymaekers
894868ce9c cockpit/spec: add obsoletes for cockpit-composer 2025-02-07 15:13:09 +01:00
Sanne Raymaekers
de0d295e8d .github/workflows/release: fix make dist step
The upstream release step cleans the checkout, so move it out.
2025-02-07 15:13:09 +01:00
schutzbot
a03a2595be Post release version bump
[skip ci]
2025-02-07 09:50:00 +00:00
regexowl
e74675ae7f devDeps: Manually bump vitest
This bumps vitest and @vitest/coverage-v8 from 2.0.5 to 3.0.5.
2025-02-07 10:35:18 +01:00
Sanne Raymaekers
0624f4a23d test/CreateImageWizard: test hostname step on cockpit 2025-02-07 09:30:03 +01:00
Sanne Raymaekers
9def3f61cb CreateImageWizard: enable locale step in cockpit 2025-02-07 09:30:03 +01:00
Sanne Raymaekers
d10620cc56 test/CreateImageWizard: add basic render for cockpit tests 2025-02-07 09:30:03 +01:00
Sanne Raymaekers
73afbc2b51 cockpit/spec: fix source url
Downstream the "v" got dropped from the version by #2831, but then the
source url is wrong. The path has got a "v" in it, and the artefact
doesn't.

The workflow already got fixed in #2860.
2025-02-06 17:58:03 +01: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
Sanne Raymaekers
4d9a1f294f .github/workflows/release: fix artefact name
After the upstream tag template changed, packit is now looking for the
artefact matching the template, so without the "v".
2025-02-06 16:26:30 +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
Sanne Raymaekers
2da55e20b2 .github/workflows: run cockpit unit tests in github workflows 2025-02-06 10:55:45 +01:00
Sanne Raymaekers
e46a575186 package.json: add script to run unit tests with cockpit 2025-02-06 10:55:45 +01:00
Sanne Raymaekers
a0a1fa223c test/ImagesTable: support basic render with cockpit 2025-02-06 10:55:45 +01:00
Sanne Raymaekers
dc98ca032f test/mocks: expand cockpit mocks
Use the data from the regular fixtures, but through cockpit APIs.

There are a few hacks to get around the fact that there are no composes
without blueprints, and the lack of paging support in the cockpit api.
2025-02-06 10:55:45 +01:00
Sanne Raymaekers
b2f56e26f2 test/testUtils: support rendering with cockpit 2025-02-06 10:55:45 +01:00
Sanne Raymaekers
e601a299be test/fixtures: add blueprint for cockpit
This blueprint is a hack, when the cockpit mocks encounter this
blueprint, the cockpit mocks will return all composes. This is to get
around the fact that in cockpit, there are no images without blueprints,
while that's possible in the service.
2025-02-06 10:55:45 +01: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
Sanne Raymaekers
874f6bdd5c store/cockpit: Add notifications for blueprints
Also just dump the entire `err` in the notification in case of
errors. The error we get from the custom query in cockpit is not at all
predictable.
2025-02-05 16:58:47 +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
16ae455b67 store/cockpit: Add osbuild-composer's cloudapi 2025-02-05 15:54:57 +01:00
Sanne Raymaekers
a65d17ba4e api: Add osbuild-composer's cloudapi 2025-02-05 15:54:57 +01:00
Sanne Raymaekers
76044ddccd store/cockpitApi: add notification when composing images 2025-02-05 13:11:14 +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
8dd85a3c1e store/cockpitApi: fix deleting blueprints 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
Sanne Raymaekers
0204bcced5 store/wizardSlice: default to 'register-later' when on-premise 2025-02-05 13:11:14 +01:00
Sanne Raymaekers
61107e122e Utilities/useGetEnvironment: support feature flags on prem
These are just hardcoded, but enable the new customizations in the on
premise UI.
2025-02-05 13:11:14 +01:00
regexowl
3e542a60d3 README: Update scripts for running prod and stage
This updates the scripts used to run prod and stage locally.
2025-02-05 11:53:21 +01:00
schutzbot
0d1b264511 Post release version bump
[skip ci]
2025-02-05 08:27:01 +00: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
a27c300431 AppCockpit: render not ready component
Render the nont ready component when the osbuild-composer.socket is
not running.
2025-02-04 23:08:50 +01:00
Gianluca Zuccarelli
87ce805c74 Utilities: add useComposerStatus hook
Add a custom hook to check to see if the osbuild-composer.socket
is enabled & running.
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
Michal Gold
7d2ca8f1ee fec: enable useFileHash
this commmit enable useFileHash in fec.config.js -
when set it to true Webpack will append a hash (a unique identifier) to the filename based on its content.
This helps prevent the browser from using an outdated cached version of a file when its content has changed.
2025-02-04 12:39:09 +01:00
schutzbot
19613366af Post release version bump
[skip ci]
2025-02-04 10:55:28 +00: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