Commit graph

2544 commits

Author SHA1 Message Date
regexowl
4899553151 test: Add Locale tests for keyboard drop down
This adds tests checking functionality of keyboard drop down and blueprint request with locale.
2024-12-06 16:58:06 -06:00
regexowl
97877114f6 Wizard: Add Keyboard drop down
This adds a drop down for keyboard selection. The options are populated with an output of `localectl list-keymaps`.
2024-12-06 16:58:06 -06:00
regexowl
60175aa911 Wizard: Remove category and fix Review alignment
This removes the chip category and adds a version slug to make the alignment on Review step work properly.
2024-12-06 13:53:56 -06:00
regexowl
1483ff9e9e Wizard: Replace the list of timezones
This replaces the list of timezones created via `Intl.supportedValuesOf('timeZone')` by tzdata-2024b list.
2024-12-06 13:53:56 -06:00
regexowl
39f618c3d8 Wizard: Update the way of adding NTP servers
This updates the way NTP servers can be added:
- helper text was removed
- add button (PlusCircle) was added to the input group utilities
- remove input button is now rendered always, but gets disabled when there's no input
- chip group was moved under the input

Also I've noticed that the "clear input" button completely cleared the list of NTP servers which would make me very angry as a user. Fixed it, so now the clear input button only clears the input field and the `clearNtpServers` action was removed as we don't use it anywhere else.
2024-12-06 13:53:56 -06:00
regexowl
b8915da3fd test: Add more test coverage for Timezone step
This adds more tests for the Timezone step:
- 'Step Timezone' -> 'revisit step button on Review works'
- 'Timezone request generated correctly'
- 'Timezone edit mode'
2024-12-06 13:53:56 -06:00
regexowl
c851d4abac Wizard: Add Timezone step to Review lists
This adds a Timezone overview to the Review step.
2024-12-06 13:53:56 -06:00
regexowl
6427dc5285 Wizard: Add Timezone dropdown and NTP servers input
This adds a Timezone select, the select is typeahead and allows to filter through all defaultTimezones. It's also scrollable so it doesn't take up all of the space.

The NTP servers are currently in a text input, the server is added by confirming with a space, comma or an Enter, making the server a chip and adding it to the array of NTP servers.
2024-12-06 13:53:56 -06:00
regexowl
ab446c2a36 Wizard: Add timezone structure to store and mapper
This creates structure and actions for the timezone customization in the wizardSlice and requestMapper.
2024-12-06 13:53:56 -06:00
Gianluca Zuccarelli
696cc4f4bf tsconfig: exactOptionalPropertyTypes
This is a recommended setting, see:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
0d4bb26e0f multiple: check when var is possibly undefined
In cases where a field on an object might be undefined,
rather omit the value than set the field to undefined.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
d4436dc6a9 multiple: set sane defaults
Set sane defaults for some types rather than setting them to `undefined`.
This is so that we can set `exactOptionalPropertyTypes` to true in our
tsconfig.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
877497f81c pagination 2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
4125a9cd3b multiple: set pagination defaults
Set pagination defaults, otherwise these might be `undefined`.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
bad77421ae api: union undefined
Set the option to generate union undefined types for objects that have
optional items. This will allow us to enable `exactOptionalPropertyTypes`
in our tsconfig [1].

[1] This is a recommended setting, see:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
b3b69c3653 tsconfig: update to es2021 2024-12-06 12:02:34 -06:00
dependabot[bot]
11e0bbde38 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.15.0 to 8.17.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.17.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>
2024-12-06 08:45:09 +01:00
regexowl
e4e83d4417 Wizard: Add locale structure to store and mapper
This creates structure and actions for the locale customization in the wizardSlice and requestMapper.
2024-12-05 11:06:11 -06:00
dependabot[bot]
cbe04c5f9a build(deps-dev): bump @typescript-eslint/parser from 8.8.1 to 8.17.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.8.1 to 8.17.0.
- [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.17.0/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 08:53:50 +01:00
regexowl
6e97304327 Wizard: Basic Locale step
This adds Locale step basics and file structure.
2024-12-04 12:45:35 -06:00
regexowl
c268267146 devDeps: Manually bump msw from 2.6.0 to 2.6.6
This bumps msw from 2.6.0 to 2.6.6
2024-12-04 12:02:07 -06:00
regexowl
b16243f68a Wizard: Conditionally hide package recommendations
This shows package recommendations only when RHEL 8 or RHEL 9 are selected as a distribution.
2024-12-04 10:51:39 -06:00
Sanne Raymaekers
c0801cd73d src/test: Add test for HyperV generation 2024-12-04 12:37:23 +01:00
Sanne Raymaekers
c1378a7913 Wizard: Integrate HyperV selection in Azure target options
This determines the generation the image will get registered as in
Azure. V2 supports UEFI and more instance types than V1.
2024-12-04 12:37:23 +01:00
Sanne Raymaekers
b4e7fe8923 Wizard: Add component to select Azure HyperV generation 2024-12-04 12:37:23 +01:00
dependabot[bot]
82deb0bdf6 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.1 to 6.3.5.
- [Release notes](https://github.com/RedHatInsights/frontend-components/releases)
- [Changelog](https://github.com/RedHatInsights/frontend-components/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RedHatInsights/frontend-components/commits/@redhat-cloud-services/frontend-components-config-6.3.5)

---
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-12-03 09:38:52 +01:00
red-hat-konflux[bot]
1afebaf325 Update Konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2024-12-03 09:01:23 +01:00
Simon Steinbeiss
c4a06e2ac9 CreateImageWizard: Add RHEL10beta search parameter
This means we can easily link to the wizard and pre-select RHEL 10 Beta
which will be nice for the release announcement blog post.
2024-11-29 14:22:37 +01:00
dependabot[bot]
ccc364b66d build(deps-dev): bump typescript from 5.6.3 to 5.7.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.3 to 5.7.2.
- [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.3...v5.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-28 13:33:16 +01:00
Jakub Rusz
0793a7802d pr_check: disable IQE parallel execution
We don't have any tests marked for parallel execution.
2024-11-28 12:02:59 +01:00
Ondrej Ezr
a99c26143e api: update imagebuilder schema 2024-11-28 09:01:08 +01:00
Ondřej Ezr
f270139ec1 ImagesTable: add RHEL 9.5 display value 2024-11-28 09:01:08 +01:00
Sanne Raymaekers
ee19ba1546 Wizard: rely on feature flag constraints for openscap step title
Feature flags can be constrained to preview / stable.
2024-11-27 13:49:30 +01:00
dependabot[bot]
ebfcbe2668 build(deps-dev): bump eslint-plugin-testing-library from 6.4.0 to 7.0.0
Bumps [eslint-plugin-testing-library](https://github.com/testing-library/eslint-plugin-testing-library) from 6.4.0 to 7.0.0.
- [Release notes](https://github.com/testing-library/eslint-plugin-testing-library/releases)
- [Changelog](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/.releaserc.json)
- [Commits](https://github.com/testing-library/eslint-plugin-testing-library/compare/v6.4.0...v7.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-testing-library
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-27 08:44:19 +01:00
Anna Vítová
70462be0b7 Wizard: add more tests for on prem filesystem 2024-11-26 17:12:48 +01:00
Anna Vítová
80f7980676 Wizard: add suport for json on prem 2024-11-26 17:12:48 +01:00
Anna Vítová
b2401afe27 src: add flag to measure on prem import
The flag can be used later to track the usage of on prem import feature.
2024-11-26 13:03:55 +01:00
Anna Vítová
5cfab75813 api: update image-builder api 2024-11-26 13:03:55 +01:00
regexowl
f48e1bfcb5 ImagesTable: Unify pagination format with Repositories
This makes bottom pagination format on ImagesTable consistent with the format being used in Repositories service.
2024-11-25 19:04:54 +01:00
dependabot[bot]
67fdd794f6 build(deps-dev): bump @redhat-cloud-services/tsc-transform-imports
Bumps @redhat-cloud-services/tsc-transform-imports from 1.0.17 to 1.0.21.

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/tsc-transform-imports"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 17:52:18 +01:00
dependabot[bot]
cf2be782ea build(deps-dev): bump @babel/preset-react from 7.25.7 to 7.25.9
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.25.7 to 7.25.9.
- [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.25.9/packages/babel-preset-react)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 17:31:08 +01:00
regexowl
336de65389 Konflux: Update rpms-signature-scan by generated values
This updates current rpms-signature-scan based on the pipeline code that was generated when migrating to Konflux.

This might not be strictly needed, but might aleaviate hypothetical unpredictable behaviour.
2024-11-25 17:18:32 +01:00
regexowl
7851536669 Konflux: Move rpms-signature-scan lower in pipeline
This moves rpms-signature-scan lower in pipeline to allow update of `runAfter` value.
2024-11-25 17:18:32 +01:00
Sanne Raymaekers
ece0738150 store/enhancedImageBuilderApi: handle empty error data
There's a case where the IB api returns an error without more data in
it, though it might be coming from a component which treats the request
before the image builder api.
2024-11-25 17:07:37 +01:00
regexowl
d8bb3485d8 Wizard: Add v5 PF slug to classNames
This adds v5 PF slug to classNames throughout the code base, making the formatting work properly.
2024-11-25 16:54:59 +01:00
regexowl
4f728874f7 ImagesTable: Fix image name spacing
This adds a component value to the image name, making the spacing work correctly.
2024-11-25 16:32:10 +01:00
Simon Steinbeiss
6208596b35 ImageBuildStatus.css: Add version to status colors
Add the v5 slug to the status colors as the unversioned colors don't
seem to be defined in PatternFly anymore. I haven't looked at the
history, but I presume this was done at some point during v6
development, as the upstream colors now contain the v6 slug:
https://www.patternfly.org/components/banner/design-guidelines/#usage

Fixes #2611
2024-11-25 13:22:46 +01:00
red-hat-konflux[bot]
4a893e10ba chore(deps): update konflux references
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2024-11-25 08:54:09 +01:00
dependabot[bot]
35e2706d01 build(deps): bump @patternfly/react-table from 5.4.1 to 5.4.11
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 5.4.1 to 5.4.11.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.4.1...@patternfly/react-table@5.4.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-22 11:20:40 +01:00
dependabot[bot]
b8940e209b 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.12.1 to 8.15.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.15.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>
2024-11-22 09:40:37 +01:00