Anna Vítová
74c352e235
Wizard: Add popover to suggest importing on-prem
...
In order to hint users that on-premise blueprints are accepted in
import, we are adding a popover with a message.
2024-12-13 14:27:05 +01:00
regexowl
73eaecc51e
Wizard: Add hostname to on-prem mapper
...
This adds hostname to on-prem mapper and updates a test that checks if the value got parsed correctly.
2024-12-12 11:19:16 +01:00
regexowl
317f424448
test: Packages selected on import
...
This checks if specified packages get selected when importing a toml blueprint.
2024-12-10 11:54:11 -06:00
regexowl
93de07c729
Wizard: Add Locale to on-prem mapper
...
This adds Locale values to the on-prem mapper and updates the import test to check for expected values.
2024-12-10 09:16:39 -06:00
regexowl
1533830095
Wizard: Add Timezone to on-prem mapper
...
This adds Timezone values to the on-prem mapper and updates the import test to check for expected values.
2024-12-09 12:19:01 -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
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á
63e9610beb
src: Add on prem blueprints import support
2024-11-21 14:11:10 +01: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
regexowl
1d8067f1b0
Blueprints: Fix list of blueprint being replaced by empty state
...
Search input and list of blueprints could be previously temporarily replaced by an empty state.
How to reproduce previous behaviour:
1. start with some created blueprints
2. search for an existing blueprint
3. delete it
4. remove searchTerm from the blueprint search input
Before: the blueprint list and blueprint search input are temporarily replaced by an empty state, until re-fetch.
After: the list and search input persist throughout blueprint deletion and get replaced by an empty state only when there are no other blueprints
2024-09-24 17:48:50 +02:00
regexowl
49162e01f5
Blueprints: Set blueprintSearchInput as undefined with empty string
...
This dispatches changes to `blueprintSearchInput` and sets it as `undefined` when the value is an empty string.
2024-09-24 17:48:50 +02:00
Anna Vítová
3af0704a2f
src: Enable import of image_requests
2024-09-04 17:45:11 +02:00
Anna Vítová
22c9b0c106
src: Cleanup import modal on close
2024-09-04 17:45:11 +02:00
Anna Vítová
c385417e93
HMS-4459: Use export endpoint
2024-09-04 17:45:11 +02:00
Ondrej Ezr
39a5e93c4a
Blueprints: change diff modal button label
...
For the diff modal, we want to change the button label.
In this context Synchronize images is more appropriate label.
2024-08-19 15:33:39 +02:00
regexowl
b7ccc2cca0
testUtils: Merge renderCustomRoutesWithReduxRouter and renderWithReduxRouter
...
`renderCustomRoutesWithReduxRouter` and `renderWithReduxRouter`are functionally the same apart from routes they use to render components.
We could just use `renderCustomRoutesWithReduxRouter` and use the routes from `renderWithReduxRouter` as a default value for an optional parameter `routes`.
2024-08-12 09:46:10 +02:00
regexowl
5d73adfbd6
src: Absolute imports
...
While running build there was a bunch of PatternFly imports that were resolved as undefined. This adds an absolute path for each of those imports.
2024-08-09 09:22:17 +02:00
regexowl
1554d78cba
test: Move mocks to setup file
...
This moves all the mocks used throughout our test files into the test setup file.
2024-08-08 16:53:49 +02:00
Ondrej Ezr
e0b33fd6f5
Bluperint: Allow selecting targets from diff modal
2024-08-06 11:16:34 +02:00
Ondrej Ezr
e1057208f3
Blueprint: show basic version diff
2024-08-05 18:48:08 +02:00
regexowl
44dc900370
src: Fix new errors after linter bump
...
This addresses problems caused by dependency updates.
2024-08-05 11:51:20 +02:00
Michal Gold
2c61a70fb4
buildImagesButton: change the name of build selected button <HMS-4066>
...
this commit change the name of build selected button to build images
2024-07-25 15:49:23 +02:00
regexowl
eb2cfe9a2f
test: Move @testing-library/jest-dom import to test setup file
...
This removes `@testing-library/jest-dom` from single test files and adds it to the shared setup.ts file.
2024-07-22 15:49:18 +02:00
regexowl
4fb37c187e
src: Rename "V2" folders to just Wizard
...
This replaces all occurences of "CreateImageWizardV2" with just "CreateImageWizard" as it is the only version now.
2024-07-17 11:17:06 +02:00
regexowl
a5f69a2559
test: Move shared imports to setup.ts file
2024-07-16 16:55:31 +02:00
regexowl
98c17e55df
test: Move beforeEach blocks inside describe
...
This moved the `beforeEach` blocks inside the `describe` blocks as per documentation.
Previously the code inside `beforeEach` didn't trigger which lead to problems with asynchrocinity as mocks didn't get cleared.
2024-07-16 16:55:31 +02:00
regexowl
e036f9b892
src: Move .scrollTo mock implementation to setup.ts
...
This moves the `.scrollTo` mock implementation to a setup file for other test files to use.
2024-07-16 16:55:31 +02:00
regexowl
8597929ff3
test: test: Remove act() warnings
...
This removes `Warning: An update to <component> inside a test was not wrapped inact(...)` warnings.
2024-07-16 16:55:31 +02:00
regexowl
2a48966bba
test: Update test files to work with Vitest
...
This updates the files to be compatible with Vitest. Changes include:
- adding `@testing-library/jest-dom` import to enable custom jest matchers
- renaming `jest.` to `vi.`
- setting flags to false as default where needed
2024-07-16 16:55:31 +02:00
Ondrej Ezr
549ef37ab7
Blueprint: enable import/export in ephemeral
...
Adds ability to enable a feature flag in Ephemeral environment by default.
2024-07-10 19:48:58 +02:00
Jakub Rusz
9b82b22d75
Add ouiaIds for import Modal and button
...
Adding some missing ouiaIds.
2024-06-28 09:49:14 +02:00
Michal Gold
7138552663
add unit test that check disabling build image button when uncheck all targets
2024-06-25 10:21:03 +02:00
Michal Gold
39b29e303c
buildImageButton: add support of building image with mulitple targets <HMS-4066>
...
this commit add support of building an image with mulitple targets,
when user build an image, he can choose which targets he wants to build.
2024-06-25 10:21:03 +02:00
Anna Vítová
d7726c30a6
fix(HMS-4310): Disable editing of Blueprint file
2024-06-19 16:04:41 +02:00
Ondrej Ezr
5fcc80d2db
Wizard: Drop the WizardV1
2024-06-19 09:10:22 +02:00
Michal Gold
0e71489a9f
add changes at schema to the main branch <HMS-4066>
2024-05-28 14:34:43 +03:00
Anna Vítová
3018d64df6
Blueprints: Add import Wizard (HMS-3690)
2024-05-22 16:08:06 +02:00
Florian Schüller
88e67b3e4c
BlueprintsSideBar: reset pagination on "View all"
2024-04-26 12:18:17 +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
Ondrej Ezr
04131c4823
Blueprints: selected Blueprint Empty state action
...
Add action in the Images Table empty state when Blueprint is selected.
Change the icon to plus as it better underlines the action needed to remedy.
2024-04-17 16:03:05 +02:00
regexowl
df924ec097
Blueprints: Update Import modal padding
...
The `<ActionGroup>` should be a child of `<Form>`, moving it improves the padding on the Import modal.
2024-04-16 19:25:27 +03:00
regexowl
7115b43c3d
Blueprints: Surface "Edit blueprint" button
...
This surfaces "Edit blueprint" button to the ImageTableToolbar and removes it from the blueprints actions menu as per recent mocks.
2024-04-16 18:31:05 +03:00
Anna Vítová
669e3c07e3
feat(HMS-3687): Add blueprints exporting
2024-04-12 11:19:26 +02:00
Anna Vítová
bc82ba0ab1
feat(HMS-3906): Add feature flag for import/export
2024-04-11 13:19:43 +02:00
Anna Vítová
e301271ac1
feat(HMS-3688): Add blueprints import dialog
2024-04-05 14:23:46 +02:00