dependabot[bot]
fd94cde4af
build(deps-dev): bump @testing-library/dom from 10.0.0 to 10.1.0
...
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library ) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases )
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v10.0.0...v10.1.0 )
---
updated-dependencies:
- dependency-name: "@testing-library/dom"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 08:43:16 +02:00
regexowl
0ff0ec9758
V2Wizard: Expandable to alert for disabled EPEL repo
...
This converts previously used expendable into an info alert.
2024-05-01 19:54:06 +02:00
regexowl
147841b095
V2Wizard: Calculate image size on Review step
...
This calculates and renders the minimum image size on the Review step.
2024-05-01 19:47:41 +02:00
regexowl
df9ec1499d
V2Wizard: Fix FSC units on Edit
...
This updates the logic of parsing bytesize into size/unit pair.
Currently 'GiB' is set as a default which causes problem with smaller partitions on Edit.
A validation for the min_size is in place and the rule is that the size cannot be smaller than 0 of a given unit. If there was a partition with smaller size in KiB it will break the rule when converted to GiB.
2024-05-01 19:47:41 +02:00
lucasgarfield
13d35a834e
BlueprintTable: Invalidate tags on deleteBlueprint
...
Invalidates Composes and ComposeBlueprints tags upon deleting a
blueprint so that composes are re-fetched and the table is updated
appropriately.
Previously, a deleted blueprints composes would still show in the table
until the page was refreshed.
2024-05-01 09:49:22 +02:00
dependabot[bot]
726cd328c5
build(deps-dev): bump @patternfly/react-icons from 5.2.1 to 5.3.1
...
Bumps [@patternfly/react-icons](https://github.com/patternfly/patternfly-react ) from 5.2.1 to 5.3.1.
- [Release notes](https://github.com/patternfly/patternfly-react/releases )
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-icons@5.2.1...@patternfly/react-icons@5.3.1 )
---
updated-dependencies:
- dependency-name: "@patternfly/react-icons"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 08:58:04 +02:00
dependabot[bot]
7a97634d6f
build(deps-dev): bump @babel/eslint-parser from 7.24.1 to 7.24.5
...
Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser ) from 7.24.1 to 7.24.5.
- [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.24.5/eslint/babel-eslint-parser )
---
updated-dependencies:
- dependency-name: "@babel/eslint-parser"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 08:51:39 +02:00
lucasgarfield
f14b90cf9a
V2 Wizard: Disable snapshotting in prod and stage stable
...
It will be better to keep the stable branches in sync as much as
possible. If snapshotting is only ready for prod-preview, we should only
expose it in stage-preview.
2024-04-30 17:13:10 +02:00
Andrew Dewar
547436c177
Wizard V2: Prevents snapshot step in prod-stable.
2024-04-30 17:13:10 +02:00
Ondrej Ezr
1b35b3f675
experimental: Allow switching experimental on in stable
2024-04-30 16:53:44 +02:00
lucasgarfield
8049f95d82
V2 Wizard: Fix edit mode initialization for custom file systems
...
Properly initializes wizard state in edit mode when custom file system
is in use.
2024-04-30 15:13:50 +02:00
lucasgarfield
61b23216f4
V2 Wizard: OpenSCAP edit tests
...
Edit mode is now fully tested and working for OpenSCAP profiles. A
handler for the PUT request was added and the fixtures were updated to
support this.
`EditImageWizard.tsx`: Previously we dispatched `initializeWizard()`
while waiting for the blueprintDetails to load. This meant that the
state was incorrect (empty) while the blueprintDetails request was
in flight.
`requestMapper.tsx`: Correctly populate state in edit mode if the
blueprint contains a custom file system – previously custom mountpoints
were dropped and automatic mode was selected.
`spyOnRequest()`: Differentiate between request types (e.g. GET, PUT)
for the same endpoint.
2024-04-30 15:13:50 +02:00
Florian Schüller
c1d6053083
ImagesTable: show detailed time when hovering over the "Updated" column
2024-04-30 10:55:06 +02:00
regexowl
baf58829eb
ESLint: Make no-unused-vars rule stricter
...
This switches the `no-unused-vars` from warning to error and fixes the errors this caused.
2024-04-30 10:48:55 +02:00
dependabot[bot]
275e1d7163
build(deps): bump react and @types/react
...
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react ) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ). These dependencies needed to be updated together.
Updates `react` from 18.3.0 to 18.3.1
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react )
Updates `@types/react` 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 )
---
updated-dependencies:
- dependency-name: react
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 09:00:33 +02:00
dependabot[bot]
df43676e1e
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 7.7.1 to 7.8.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/v7.8.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-04-30 08:53:40 +02:00
dependabot[bot]
b6e46b22bb
build(deps-dev): bump eslint-plugin-react-hooks from 4.6.0 to 4.6.2
...
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks ) from 4.6.0 to 4.6.2.
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks )
---
updated-dependencies:
- dependency-name: eslint-plugin-react-hooks
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 08:47:01 +02:00
regexowl
6e9091fab1
V2Wizard: Consistent capitalisation
...
This converts all headings and subheadings to sentence case for the sake of consistency.
2024-04-29 16:55:29 +02:00
regexowl
854c2b2deb
devDeps: Bump @testing-library/dom and @testing-library/react
...
This bumps:
- @testing-library/dom from 9.3.4 to 10.0.0
- @testing-library/react from 14.2.2 to 15.0.5
2024-04-29 16:15:00 +02:00
regexowl
0c1af145c1
test: Add tests to check reseting public cloud states
...
This adds happy path tests that check whether the public cloud states get reset after the public cloud was removed from targets.
2024-04-29 15:35:59 +02:00
regexowl
f2daa9c358
V2Wizard: Reinitialize AWS/Azure/GCP after deselecting target
...
Fixes #1555
This reinitializes the state of AWS/Azure/GCP target after it's tile was deselected. This way the state for the target won't be hanging there.
2024-04-29 15:35:59 +02:00
regexowl
6494070a40
test: Replace image installer with guest image in happy path tests
...
This replaces 'image-installer' target with 'guest-image' in happy path tests which allows proper testing of FSC functionality. File system customisations are not applied to bare metal - installer images.
2024-04-29 11:57:30 +02:00
regexowl
ec8cf1c8b9
test: Add test for checking ISO only / more targets FSC options
...
This adds two tests that check whether the "Manually configure partitions" options is hidden on ISO only target and shown when combined with another target.
2024-04-29 11:57:30 +02:00
regexowl
a4eeab7156
V2Wizard: Remove manual partitioning for ISO only images
...
This hides the "Manually configure partitions" option from the FSC step for blueprints which have only ISO selected as a target.
There is already an alert in place for cases when ISO is combined with another target.
2024-04-29 11:57:30 +02:00
dependabot[bot]
e76b0578e5
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 7.7.0 to 7.7.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/v7.7.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-04-29 09:33:41 +02:00
regexowl
ff2d629fc6
V2Wizard: Show packages only with a search term
...
Fixes #2012
Packages from custom repos stayed in the table upon clearing the search input. This show the results only when searchTerm is not empty.
2024-04-26 16:45:37 +02:00
regexowl
e9d28498e1
constants: Move URLs to constants
...
Fixes #1923
This moves all URLs from code to constants.
2024-04-26 15:54:46 +02:00
lucasgarfield
bb91840eef
V2 Wizard: Fix snapshot_date field
...
The snapshot_date in the image_request must be a date. snapshot_date is
an optional field and if no snapshot is used, the field should be
undefined. Previously it was an empty string and this caused image
builder to return a code 400 with message "Snapshot date is not in
DateOnly (yyyy-mm-dd) format".
2024-04-26 15:03:17 +02:00
Ondrej Ezr
7246cfbd16
WizardV2: pass module_hotfixes to the request
2024-04-26 13:59:20 +02:00
Florian Schüller
88e67b3e4c
BlueprintsSideBar: reset pagination on "View all"
2024-04-26 12:18:17 +02:00
regexowl
7d92d8ef71
ImagesTable: Update empty state for blueprint without images
...
This updates empty state for blueprints without images as per recent mocks.
2024-04-26 09:30:00 +02:00
regexowl
35b14b8de7
ImagesTable: Update empty state for Blueprints
...
This adds an empty state for blueprint table when there are no blueprints created.
Changes are gated behind experimental flag and preview so that the original ImagesTable isn't affected.
2024-04-26 09:20:04 +02:00
dependabot[bot]
c9274c86fa
build(deps): bump react and @types/react
...
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react ) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ). These dependencies needed to be updated together.
Updates `react` from 18.2.0 to 18.3.0
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react )
Updates `@types/react` from 18.2.79 to 18.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: react
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-26 08:34:49 +02:00
Andrew Dewar
3231b324f0
HMS-3796: Add snapshot date selection to wizard
2024-04-25 14:45:50 +02:00
dependabot[bot]
a97b4d082d
build(deps-dev): bump eslint-plugin-testing-library from 6.2.0 to 6.2.2
...
Bumps [eslint-plugin-testing-library](https://github.com/testing-library/eslint-plugin-testing-library ) from 6.2.0 to 6.2.2.
- [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.2.0...v6.2.2 )
---
updated-dependencies:
- dependency-name: eslint-plugin-testing-library
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25 12:37:00 +02:00
regexowl
47a2653a9f
V2Wizard: Deduplicate minimum size popover and set width
...
This sets a maximum width to the minimum size popover. Also moved code to a reusable component.
2024-04-25 12:14:43 +02:00
regexowl
99da1e2957
V2Wizard: Fix padding and size of <HelpIcon> button
...
This updates padding around the popover button on OpenSCAP step and makes all `<HelpIcon>` icons the default size so it's consistent throughout the Wizard.
2024-04-25 12:08:39 +02:00
regexowl
0846e4d975
V2Wizard: Convert index.js to .tsx
...
Fixes #1768
This converts index.js in V2Wizard to .tsx.
2024-04-25 11:56:25 +02:00
regexowl
100c5f7809
V2Wizard: Disable stig and stig_gui
...
Fixes #1971
This disables stig and stig_gui profiles which are currently broken.
2024-04-25 11:48:41 +02:00
regexowl
b6041d2022
V2Wizard: Add masked services to the "Disabled services" code block
...
Fixes #1985
This concatenates masked service to the disabled services so both get rendered in the "Disabled service" code block.
Test to check this was also added.
2024-04-25 11:40:17 +02:00
regexowl
45be93db11
test: Add debounce to tests
...
Extra await with longer time out was added to a test to accomodate searchTerm debounce.
2024-04-25 11:32:47 +02:00
regexowl
b80d0fa3ae
V2Wizard: Debounce package search
...
This debounces package search so it doesn't overwhelm content API with two requests for every character.
2024-04-25 11:32:47 +02:00
regexowl
575fe0a91f
Blueprints: Move debounce wait time to a constant
...
This moves debounce wait time to a constant so it's reusable throughout the code base.
2024-04-25 11:32:47 +02:00
regexowl
3b7a1338ec
test: Add unleash flag mocking to the tests
...
The functionality is currently gated behind an unleash flag. This adds the mocked flag to the tests.
2024-04-25 11:22:08 +02:00
regexowl
473d750145
V2Wizard: Gate package recommendations
...
This gates package recommendations behind an unleash flag and preview.
The flag is `image-builder.pkgrecs.enabled`.
2024-04-25 11:22:08 +02:00
regexowl
6f6784df2d
test: Add package recommendations to the happy path test
...
This adds unit tests for package recommendations to the `Packages.test.tsx`, testing the happy path for:
- adding single recommendation
- adding all recommendations
- removing a recommendation
2024-04-25 11:22:08 +02:00
regexowl
371588e9a2
test: Add tests for package recommendations
...
This updates the handlers and fixtures and adds a simple unit test testing that recommendations get rendered correctly and it's possible to add them to the blueprint.
2024-04-25 11:22:08 +02:00
regexowl
648300ffb4
V2Wizard: Add Package recommendation to the Packages step
...
This adds an expandable with package recommendations to the Packages step.
The recommendations are populated when two or more packages are selected.
2024-04-25 11:22:08 +02:00
regexowl
6de7645be5
API: Update imageBuilder API schema
...
This updates the imageBuilder API schema.
2024-04-25 11:22:08 +02:00
regexowl
2431d176ac
V2Wizard: Fix padding around registration options
...
This updates the padding around registration options.
2024-04-25 10:05:45 +02:00