Commit graph

2867 commits

Author SHA1 Message Date
Gianluca Zuccarelli
592ea952e2 store: add missing apis to onPrem
Currently, the wizard still needs some of the other stores. If we
omit them, the wizard fails to launch
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
6ca7edb949 Utilities: fix useGetEnvironment
We need to check for the on-prem use case
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
Gianluca Zuccarelli
34368c4f84 cockpit: switch to hashrouter
The browser router doesn't seem to work inside cockpit, switching
to the hashrouter resolves this.
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
regexowl
199dd3d5d7 Utilities: Fix "no-unnecessary-condition" issue 2025-01-25 21:06:00 -06:00
regexowl
607f2ee3c7 ImagesTable: Fix "no-unnecessary-condition" issues 2025-01-25 21:06:00 -06:00
regexowl
d2b644b65f LandingPage: Fix "no-unnecessary-condition" issues 2025-01-25 21:06:00 -06:00
regexowl
08e0a0c384 test: Fix "no-unnecessary-condition" issues 2025-01-25 21:06:00 -06:00
regexowl
c8c7c7dd0b Blueprints: Fix "no-unnecessary-condition" issues 2025-01-25 21:06:00 -06:00
regexowl
1c50407b19 devDeps: Manually bump stylelint
This bumps stylelint from 15.11.0 to 16.13.2 and stylelint-config-recommended-scss from 13.1.0 to 14.1.0
2025-01-25 17:22:07 -06: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
dependabot[bot]
c6bee55544 build(deps-dev): bump @testing-library/user-event from 14.5.2 to 14.6.1
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.5.2 to 14.6.1.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v14.5.2...v14.6.1)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 09:04:11 +01:00
dependabot[bot]
a7056e89d8 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.20.0 to 8.21.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.21.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-01-23 08:29:10 +01:00
regexowl
692ba3de0d ESLint: Disable autofix for "no-unnecessary-condition"
This disables autofix specifically for the "no-unnecessary-condition" rule. This allows us to continue using autofix without applying the breaking changes.
2025-01-22 14:10:58 +01:00
regexowl
d41c079567 test: Test error message reset and validation on add button
This tests the updates.
2025-01-22 11:48:10 +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
regexowl
adf802174c Wizard: Fix "and build images" buttons
The "Create / Save changes to a blueprint and build images" buttons were disabled by default.
2025-01-22 11:38:58 +02:00
schutzbot
18d59cf201 Post release version bump
[skip ci]
2025-01-22 08:30:33 +00:00
dependabot[bot]
6d9c4b55f5 build(deps): bump vite from 5.4.11 to 5.4.14
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.11 to 5.4.14.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.14/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.14/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-22 09:01:52 +01:00
dependabot[bot]
ec951c107f build(deps-dev): bump ts-patch from 3.2.1 to 3.3.0
Bumps [ts-patch](https://github.com/nonara/ts-patch) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/nonara/ts-patch/releases)
- [Changelog](https://github.com/nonara/ts-patch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nonara/ts-patch/compare/v3.2.1...v3.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-22 08:16:56 +01:00
Michal Gold
25f124077c wizard: add Administrator checkbox to users step (HMS-4903)
this commit add Administrator checkbox to users step
2025-01-21 13:29:25 +01:00
dependabot[bot]
bdd259f758 build(deps-dev): bump eslint-plugin-react from 7.37.2 to 7.37.4
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.37.2 to 7.37.4.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.37.2...v7.37.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-21 12:29:57 +01:00
regexowl
30d77faeb5 this commit add validation to name field in Users step 2025-01-21 11:36:33 +01:00
Michal Gold
5a7ce1efee wizard: extand steps only if there are values in the step
add condition that check if there is value in Hostname, Locale, Timezone steps
and if there is no value, we dont see the extendable part in review step

FIX ISSUE: (#2718)

after changes when there is no value in Timezone step, we should update
test if we want to see the extendable section
2025-01-21 10:06:19 +01:00
dependabot[bot]
8ddfca0fd7 build(deps-dev): bump uuid from 11.0.3 to 11.0.5
Bumps [uuid](https://github.com/uuidjs/uuid) from 11.0.3 to 11.0.5.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v11.0.3...v11.0.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-21 09:17:00 +01:00
regexowl
bfef28999d Wizard: Add validation for kernel step
This adds validation for the Kernel step.
2025-01-21 08:33:52 +01:00
regexowl
2d011c52e1 Wizard: Add custom kernel name warning
This adds a warning when custom kernel name is selected.
2025-01-21 08:33:52 +01:00
regexowl
addd933451 Wizard: Switch kernel name dropdown to typeahead with custom options
This replaces previously used single dropdown with a typeahead that allow creating a custom option.
2025-01-21 08:33:52 +01:00
regexowl
86add0ee38 validators: Remove kernel name validator
We currently don't use this validator.
2025-01-21 08:33:52 +01:00
regexowl
1fce574146 Wizard: Swap kernel name input with drop down
This replaces the kernel name input with a static drop down populated with valid values.
2025-01-21 08:33:52 +01:00
regexowl
c121e5caba Wizard: Add Kernel name input
This adds a kernel name input.
2025-01-21 08:33:52 +01:00
Sanne Raymaekers
7129cf866e .github/workflows/release: fix make dist step 2025-01-20 17:13:40 +01:00
regexowl
92a6fb5417 LandingPage: Hide NewAlert
We'll be switching NewAlert with blueprints for information about newly available customizations. The component itself is a nice scaffolding for the upcoming announcement, would prefer to keep it for now.
2025-01-20 15:58:00 +01:00
Sanne Raymaekers
17f2d11abe .github/workflows: add create-tag workflow 2025-01-20 15:07:53 +01:00
Sanne Raymaekers
fff8128771 .github/workflows: add release workflow
Also pushes the dist tarball, conform to the Source0 value in the spec
file. This is required for Packit to do downstream releases.
2025-01-20 15:07:53 +01:00
regexowl
6918313d6f validators: Remove undefined where only string value expected
This removes checks for an `undefined` value in validators that take only `string`.
2025-01-20 13:23:34 +01:00
regexowl
563ff04054 Wizard: Parse old snapshot dates when editing
This updates format of the snapshot date when the blueprint with the old format gets edited.
2025-01-20 11:43:40 +01:00
dependabot[bot]
44685f4c76 build(deps): bump @unleash/proxy-client-react from 4.4.0 to 4.5.1
Bumps [@unleash/proxy-client-react](https://github.com/Unleash/unleash-proxy-react) from 4.4.0 to 4.5.1.
- [Release notes](https://github.com/Unleash/unleash-proxy-react/releases)
- [Changelog](https://github.com/Unleash/proxy-client-react/blob/main/Changelog.md)
- [Commits](https://github.com/Unleash/unleash-proxy-react/compare/v4.4.0...v4.5.1)

---
updated-dependencies:
- dependency-name: "@unleash/proxy-client-react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 10:18:08 +01:00
dependabot[bot]
91c64bfe50 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.18.1 to 8.20.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.20.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-01-20 08:43:57 +01:00
regexowl
7986828f6c ESLint: Set "no-unnecessary-condition" rule to warn
This adds "no-unnecessary-condition" and sets the output to warn. This should help us eliminate superfluous conditional chaining and uncover potentially faulty conditions.

Docs: https://typescript-eslint.io/rules/no-unnecessary-condition/
2025-01-17 11:57:18 -06:00
Gianluca Zuccarelli
8d34f85c48 store/cockpitApi: fix version number
Get rid of the `Math.floor` for the version and just ensure that
the version is a number.
2025-01-17 11:15:26 -06:00
Gianluca Zuccarelli
9a3c46e9ac store/cockpitApi: blueprint pagination
Add blueprint list pagination support
2025-01-17 11:15:26 -06:00