Commit graph

2841 commits

Author SHA1 Message Date
dependabot[bot]
58d6c14e25 build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.21.0 to 8.24.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.24.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 08:52:46 +01:00
dependabot[bot]
853eaa6ed0 build(deps-dev): bump @babel/core from 7.26.0 to 7.26.8
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.26.0 to 7.26.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.8/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 08:37:54 +01:00
dependabot[bot]
c3183e8f0b build(deps-dev): bump @babel/preset-env from 7.26.0 to 7.26.8
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.26.0 to 7.26.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.8/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 11:57:28 +01:00
regexowl
fd6ab7166d dependabot: Increase limit of opened pull requests
This will temporarily increase limit of opened pull requests, until the frontend-components bumps get resolved.
2025-02-10 11:21:40 +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
16b3d60db1 test: Services edit tests
This adds services tests for the edit mode.
2025-02-10 10:35:42 +01:00
regexowl
28253c040e vitests: Set global retry
This sets retry globally to `3`, so we don't have to add it to the tests individually.

For the tests that are reliable this shouldn't have any effect, but it will trigger on tests that proved to be a bit flakey (like revisit tests).
2025-02-10 10:02:54 +01:00
red-hat-konflux[bot]
16ae47e6e2 Update Konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-02-10 09:11:14 +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
schutzbot
d969646822 Post release version bump
[skip ci]
2025-02-07 14:21:56 +00:00
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