Commit graph

2431 commits

Author SHA1 Message Date
Lucas Garfield
c833e5f01b Konflux: Add ci.sh with workaround for Konflux pipeline
The Konflux pipeline clones the repo twice, making a nested clone
under ./source/source which causes webpack to break when the Cockpit
webpack configuration is present. `source ci.sh` is run at the
beginning of the Konflux pipeline and as a workaround for now we
simply remove everything related to Cockpit - this is fine as none of
it is needed for the service to run.
2024-10-30 10:36:18 -05:00
Michal Gold
830e22fcdc updating useFlag to omit feature flag from onPrem env 2024-10-30 10:36:18 -05:00
Michal Gold
522d61447e README: update README file with cockpit changes
add instruction how to build and install cockpit for On-prem environment
2024-10-30 10:36:18 -05:00
Michal Gold
28ba4af814 Makefile: add Makefile for building and installing cockpit plugin
Add some targets to the Makefile so we can install the on-prem frontend
as a cockpit plugin. based on starter-kit project
2024-10-30 10:36:18 -05:00
Gianluca Zuccarelli
41cdc7d553 ImageTable: use dynamic get blueprints hook
Export a dynamic query hook depending on which backend is
being used (service or on-prem). This means we can just import
a query from the new `backendApi` and it will work for both
on-prem and the service.
2024-10-30 10:36:18 -05:00
Michal Gold
f13ee49565 store: add initial cockpit store
Co-authored-by: Gianluca Zuccarelli <gzuccare@redhat.com>
2024-10-30 10:36:18 -05:00
Michal Gold
82f3f38e56 cockpit: add webpack config and support for Cockpit
Configured Webpack and setup of cockpit to support
building and running image builder as a cockpit plugin
(On-premise)
2024-10-30 10:36:18 -05:00
red-hat-konflux[bot]
1ab31abc4a chore(deps): update konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2024-10-29 23:49:39 +01:00
Sanne Raymaekers
6ab32d1555 Wizard: use oscap profiles from major version for beta versions 2024-10-29 15:25:32 -05:00
Michal Gold
c4170102cd update main branch with changes in the api
run `npm run api` to update the main branch
2024-10-29 18:16:23 +02:00
dependabot[bot]
6458764c01 build(deps-dev): bump chartjs-plugin-annotation from 3.0.1 to 3.1.0
Bumps [chartjs-plugin-annotation](https://github.com/chartjs/chartjs-plugin-annotation) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/chartjs/chartjs-plugin-annotation/releases)
- [Commits](https://github.com/chartjs/chartjs-plugin-annotation/compare/v3.0.1...v3.1.0)

---
updated-dependencies:
- dependency-name: chartjs-plugin-annotation
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 14:35:07 +02:00
dependabot[bot]
8ac0cc69d1 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.8.1 to 8.12.1.
- [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.12.1/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>
2024-10-29 12:15:20 +02:00
dependabot[bot]
1614d4582c build(deps): bump @patternfly/patternfly from 5.4.1 to 6.0.0
Bumps [@patternfly/patternfly](https://github.com/patternfly/patternfly) from 5.4.1 to 6.0.0.
- [Release notes](https://github.com/patternfly/patternfly/releases)
- [Changelog](https://github.com/patternfly/patternfly/blob/main/release.config.js)
- [Commits](https://github.com/patternfly/patternfly/compare/v5.4.1...v6.0.0)

---
updated-dependencies:
- dependency-name: "@patternfly/patternfly"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 17:32:30 +02:00
dependabot[bot]
3f91fb86e2 build(deps-dev): bump @types/react-dom from 18.3.0 to 18.3.1
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.3.0 to 18.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-27 16:47:29 +02:00
dependabot[bot]
cc2fabc984 build(deps): bump react-router-dom from 6.26.2 to 6.27.0
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.26.2 to 6.27.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/react-router-dom@6.27.0/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.27.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-27 12:50:47 +02:00
Sanne Raymaekers
692b6f1595 Wizard: only show compliance radio in preview
Let's expose compliance in preview while we're ironing out the creases.
2024-10-27 10:49:27 +02:00
Ondřej Budai
0bebb87ec0 src: remove osbuild-first-boot.target from first boot
I grepped through everything and didn't find this target. I'm pretty
sure that it doesn't exist, osbuild-composer adds just a service.
2024-10-25 11:32:07 +02:00
Ondřej Budai
12da2f7c43 src: move the first boot service into constants.ts
I don't think there's a value in having the unit encoded in base64.
It looks fishy, and it's error prone. We discovered that the
custom-first-boot.service file in aux was different than the base64-
encoded string. There was nothing malicious, but we apparently forgot
to rerun the Makefile target.

Instead, we can just put the raw script into constants.js and base64-
encode it on the fly. The cost is close to zero.

This way, we can also get rid of the aux dir, and of the Makefile
target. 🧹
2024-10-25 11:32:07 +02:00
Sanne Raymaekers
493649f766 Wizard: fix editing RHEL 9 beta blueprints
It would default to RHEL 9 instead of the beta.
2024-10-24 12:00:22 +02:00
Sanne Raymaekers
c65d924b1a .tekton: disable rpms-signature-scan
Some rpms pulled in during the frontend build aren't signed in, these
are pulled in by frontend-operator.

The steps will be added automatically once fixed.
2024-10-18 18:58:24 +02:00
Sanne Raymaekers
5ff8605487 .tekton: adjust tekton pipelines to generate dockerfile
For frontends the dockerfile needs to be generated during the pipeline,
as there's no upstream dockerfile.
2024-10-18 18:58:24 +02:00
Sanne Raymaekers
c95c060e24 renovate.json: configure Konflux updates
The renovate.json file determines how often Konflux will open PRs to
update the tekton configs.

See #2524.
2024-10-18 18:58:24 +02:00
red-hat-konflux
63dfbac6ae Red Hat Konflux update image-builder-frontend
Signed-off-by: red-hat-konflux <konflux@no-reply.konflux-ci.dev>
2024-10-18 18:58:24 +02:00
Sanne Raymaekers
15a7115eec Wizard: move RHEL 9 beta out of preview 2024-10-17 21:45:12 +02:00
Sanne Raymaekers
c9e5f9630b .github/workflows: run dev checks on main
The codecov comments don't make much sense as there's no reference point
currently.
2024-10-17 20:46:38 +02:00
Sanne Raymaekers
cd70d1ff95 Wizard: add RHEL 9 beta
Only exposed in preview.
2024-10-17 10:22:30 +02:00
Sanne Raymaekers
25f9fac059 store: regenerate image builder api
Includes rhel-9-beta distro.
2024-10-17 10:22:30 +02:00
Lukas Zapletal
17170b7495 src: update custom firstboot service for bootc 2024-10-15 08:48:01 +02:00
Lukas Zapletal
562a8c574e src: extract service file into separate file 2024-10-15 08:48:01 +02:00
regexowl
8722d79fdf test: Move and re-enabled Details test
There was a disabled Details test in CreateImageWizard.test.tsx, this moves the test to Details.test.tsx, updates it and enables it again.

The re-enabled tests are checking maximum length of image name and description.
2024-10-14 13:50:36 +03:00
Lukáš Zapletal
38cc047e27 readme: add links 2024-10-14 10:47:26 +02:00
regexowl
b5eab82318 workflows: Add check for circular dependencies
This adds a check for circular dependencies into dev-check, to make sure we don't introduce new problems in the future.
2024-10-11 14:55:03 +02:00
regexowl
46b6fda9db src: Resolve last remaining circular dependency
Nothing added, nothing removed, stuff moved around a bit.
2024-10-11 14:55:03 +02:00
regexowl
ba9282b61c src: Resolve circular dependency FileSystemTable <-> FileSystemConfiguration
Nothing got added, nothing got removed. Stuff just got moved around and imports are updated.
2024-10-11 14:55:03 +02:00
regexowl
076fb3fc9d src: Resolve type-only imports 2024-10-11 14:55:03 +02:00
regexowl
c1edc53c2f devDeps: Install madge
This installs [madge](https://www.npmjs.com/package/madge), a tool for finding circular dependencies. A config file is also added to ignore type-only imports.
2024-10-11 14:55:03 +02:00
dependabot[bot]
14ec62ae8f build(deps-dev): bump sass from 1.79.4 to 1.79.5
Bumps [sass](https://github.com/sass/dart-sass) from 1.79.4 to 1.79.5.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.79.4...1.79.5)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-11 08:08:22 +02:00
dependabot[bot]
a54474b90f build(deps-dev): bump @redhat-cloud-services/frontend-components-config
Bumps [@redhat-cloud-services/frontend-components-config](https://github.com/RedHatInsights/frontend-components) from 6.3.0 to 6.3.1.
- [Commits](https://github.com/RedHatInsights/frontend-components/commits)

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/frontend-components-config"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-10 09:46:20 +02:00
regexowl
42aed9a2b2 test: Clean up Create Image Wizard test a bit
This cleans up the Create Image Wizard test a bit to make it easier to read through the code blocks.
2024-10-10 08:47:49 +02:00
regexowl
4e23c476e8 Wizard/test: Implement keydown for target tiles
This implements onKeyDown functionality for the Public cloud tiles, allowing selecting them with a Space key.

Corresponding test was also re-enabled.
2024-10-10 08:47:49 +02:00
dependabot[bot]
a8234d3d98 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.8.0 to 8.8.1.
- [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.8.1/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 09:37:00 +02:00
dependabot[bot]
cacb623194 build(deps-dev): bump typescript from 5.6.2 to 5.6.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.2...v5.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 08:30:20 +02:00
Anna Vítová
3034f48c39 update compliance and content sources api 2024-10-08 17:57:40 +02:00
dependabot[bot]
ce94f00fd1 build(deps-dev): bump @typescript-eslint/parser from 8.8.0 to 8.8.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.8.0 to 8.8.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.8.1/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 16:42:15 +02:00
regexowl
d46f6b83ac Wizard: Fix repos toggle height
The repos toggle height was slightly bigger than the Available/Selected toggle. This was caused by the popover button. Changes its size to small to fix the issue.
2024-10-08 16:44:36 +03:00
regexowl
49847e9adb test: Enable First boot's shebang test
This re-enables test that checks whether correct error message gets displayed when shebang is missing from the first boot script.
2024-10-08 14:19:38 +02:00
regexowl
f33a050120 Wizard: Default to Included repos in package search
Previously when you searched for package from repositories recommendations and switched to "Other repos", new search left you in Other repos and didn't show results even if they were found in "Included". Since we search for recommendations only when no matches were found in distro and custom repos, the results will be always empty.

This solves the problem by defaulting to "Included repos" toggle with every new search, limiting clicks required from the user.

How to reproduce previous behaviour:
1. search for 'gnuplot' packages
2. no results should be found, switch to "Other repos"
3. search for a distro/custom repo package like "vim"

Previous behaviour - the "Other repos" toggle is still selected, showing no results. When switching to "Included repos" manually, the results can be found there.

New behaviour - "Included repos" gets automatically selected, showing results for packages found in distro and custom repos.
2024-10-08 12:39:12 +03:00
dependabot[bot]
79ace37488 build(deps): bump @redhat-cloud-services/frontend-components
Bumps [@redhat-cloud-services/frontend-components](https://github.com/RedHatInsights/frontend-components) from 4.2.15 to 4.2.16.
- [Commits](https://github.com/RedHatInsights/frontend-components/commits)

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/frontend-components"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 09:20:58 +02:00
dependabot[bot]
16f45f8b0e build(deps): bump @reduxjs/toolkit from 2.2.7 to 2.2.8
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](https://github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 08:27:15 +02:00
regexowl
d098d25892 test: Cleanup OpenSCAP tests
This cleans up OpenSCAP test file, utilising helper functions we already have and updating names of test and describe blocks to be consistent throughout the test files.
2024-10-07 16:43:22 +03:00