regexowl
64e5744d8c
Wizard: Remove RHEL betas from release options
...
This removes RHEL betas from release menu and cleans up the code in several places.
2025-07-31 13:40:21 +00:00
Katarina Sieklova
90c2c65ebe
Wizard: disable adding empty user tabs
...
When creating an empty user, the "+" sign gets hidden, and only pops back up if at least user name, psswd, or ssh key is filed out.
Fixes #3114
2025-07-31 11:09:40 +00:00
regexowl
d5321bb078
Wizard: Remove alert from OpenSCAP step
...
Information about required packages, services and kernel arguments is back on the step. Meaning we can remove the alert as per UX recommendation.
2025-07-30 08:14:12 +00:00
Anna Vítová
cfa8cbcb28
Compliance: refactor handleKernelAppend duplicate
2025-07-29 15:46:56 +00:00
Anna Vítová
96da1817df
Compliance: refactor handlePartitions duplicate
2025-07-29 15:46:56 +00:00
Anna Vítová
9da490ad52
Compliance: refactor handleServices duplicate
2025-07-29 15:46:56 +00:00
Anna Vítová
128abcb98f
Compliance: refactor handlePackages duplicate
2025-07-29 15:46:56 +00:00
Anna Vítová
c026102dd3
Compliance: refactor clearPackage duplicate
2025-07-29 15:46:56 +00:00
regexowl
d5877b256c
test: Add test for failing fetching of target environments
...
This adds a test to check that the appropriate alert gets rendered.
2025-07-29 14:53:43 +00:00
regexowl
730554dc84
Wizard: Add fetch and error state or target environments
...
This renders an empty state with a spinner when fetching target environments and alert when there's an issue.
2025-07-29 14:53:43 +00:00
regexowl
2c3efe4c04
Wizard: Resolve FSC lint warnings
...
This resolves lint warnings for File System Configuration step.
2025-07-29 08:16:27 +00:00
regexowl
ad5ea22da8
Update API
...
This adds changes from `npm api`.
2025-07-29 07:58:00 +00:00
regexowl
9f3ad99037
test: Remove delay for .upload user method
...
This sets delay to null for `uploadFile` helper, meaning there's no delay for the `.upload` user method now.
2025-07-28 10:59:46 +00:00
regexowl
67a0f86dde
ESLint: Set no-unused-vars rule to error
...
This rule should output error instead of just a warning.
2025-07-28 08:55:24 +00:00
Gianluca Zuccarelli
661fd29a5e
playwright: add timeout for cockpit tests
...
Playwright at times is making assertions before the osbuild-worker file is loaded.
This is causing some flakiness in the tests, adding a timeout before some of the
assertions should hopefully remove some of the flakiness.
2025-07-25 09:47:56 +00:00
Michal Gold
6f9a34c972
profileSelector: Prevent wizard refresh on Enter key in OpenSCAP profile selector
...
Added event.preventDefault() in onKeyDown handler to stop default form
submission behavior when hitting Enter in the typeahead filter.
Also implemented auto-selection of single filtered results on Enter.
2025-07-24 10:27:34 +00:00
regexowl
42d96edd00
test: Remove typing delay for locale test
...
`Step Locale - unknown option is disabled` was quite flaky recently. Removing typing delay from the userEvent actions should solve the issue.
2025-07-24 08:43:24 +00:00
Gianluca Zuccarelli
f86f81d6d5
api: remove pull command
...
The api config supports pulling in the openapi schema's via a url, so there isn't a
need to pull this in manually and just run the code generation.
We also need to remove the `openshift-virt` target since this was removed from
image-builder-crc.
2025-07-23 10:23:12 +00:00
Gianluca Zuccarelli
8af4181ae9
store/cockpitApi: refactor /compose endpoint
...
The on-prem `/compose` endpoint needs to know about two different
compose requests. The image-builder-crc compose request gets saved to
the frontend's local storage. While a different request gets sent to
osbuild's cloudapi. This commit tidy's up and refactors the code in the
/compose endpoint in the cockpit api.
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
3a9e3aa200
requestMapper: add region to aws upload type
...
The on-prem backend needs the aws region in order to upload the ami
target to aws. In order to do this, we use some specific cockpit types
that contain the region field, meaning that requests to image-builder-crc
should be unchanged. This is essentialy the wiring commit to get this
functionality into the `/composes` endpoint for on-prem.
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
4339420cb8
Wizard: add region selector for on-prem AWS
...
We need to be able to select the region for AWS targets in the frontend
image builder. This commit adds the field to the wizard, but doesn't
wire this up to the api call just yet.
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
fe5abaeb45
Table: fix the image table status for on prem aws uploads
...
We need to make some minor tweaks to get this to show properly for the
on-prem frontend.
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
c88171da19
cockpit: add cockpit image request types
...
Update the types to include some cockpit specific fields to the
image requests. We could also update the image-builder-crc api
openapi specs, but this would need further discussion
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
2f765a1d4b
multi: fix analytics for on-prem
...
This commit fixes some more analytics calls happening in the on-prem
frontend.
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
2ce62d4ef0
store/cockpitApi: enable aws image types
2025-07-23 08:58:26 +00:00
Gianluca Zuccarelli
253317497e
CreateImageWizard: hide aws sources for on-prem
...
For now just allow manual entry of the aws account id, since we aren't
able to configure sources on-premise yet (if ever).
2025-07-23 08:58:26 +00:00
regexowl
520b94099e
Wizard: Fix stuck page for package search
...
Fixes #3381
This resets the paging to page 1 when search term is updated.
2025-07-22 11:33:36 +00:00
regexowl
4fe4872be4
devDeps: Bump msw from 2.10.3 to 2.10.4
...
This bumps msw from 2.10.3 to 2.10.4
2025-07-22 10:51:34 +00:00
regexowl
e657b88bfc
src: Fix status text color
...
The `className` for text color was changed in PF6, this updates it in relevant places.
2025-07-21 07:54:20 +00:00
Katarina Sieklova
d03f41f160
Wizard: Make the blueprint name unclickable after filtering
...
Fixes #3419
2025-07-17 14:06:48 +00:00
regexowl
25a5f140d8
ESLint: Add rule to sort imports alphabetically
...
The `import/order` rule isn't enough to sort import within a single import group alphabetically.
This adds `sort-imports` rule that handles the sorting within groups.
2025-07-15 16:52:45 +00:00
regexowl
91b2cc2d10
ESLint: Add rule for duplicate imports
...
We had decent amount of import groups split into several imports, this adds a rule to output error when there's a duplicate import.
2025-07-15 16:52:45 +00:00
regexowl
a0fe3644c3
src: Remove more data-testids
...
As using `data-testid`s in tests is an anti-pattern, this removes more of them and replaces them with appropriate locators in the tests.
2025-07-15 16:51:29 +00:00
regexowl
0ea874abc6
Wizard: Fix dropdown behaviour on "Enter"
...
The page refreshed when pressing "Enter" while in the dropdown input. This fixes the behaviour.
If the dropdown's closed, "Enter" will open the options, if there's an input value that perfectly matches one of the activation keys, it gets selected.
The order of functions was also slightly cleaned up so they're all in one place after `useEffect`s.
2025-07-15 14:41:52 +00:00
regexowl
2406d14304
Wizard: Update activation keys dropdown
...
This updates key dropdown's helper text to match recent mocks.
Also checked other criteria:
- the input is clearable
- current selection is marked with a check in the list of options
2025-07-15 14:41:52 +00:00
Katarina Sieklova
c2e94100db
Wizard: bring back invlaid group testing in users
2025-07-15 13:47:37 +00:00
Florian Schüller
ccfdb49db2
CreateImageWizard: Implement user-friendly error messages
...
Puts the error messages in one place - LabelInput.tsx
2025-07-15 13:47:37 +00:00
regexowl
3f35101f68
Migrate ESLint to v 9.x
...
This bumps needed dependencies and migrates previously used ESLint configs to the new flat config schema.
2025-07-15 13:39:36 +00:00
regexowl
10a40aaec4
Wizard: Move org ID into a copy-able field
...
This moves the org ID into a copy-able field and updates the permanent info as per mocks.
The popover that previously included the org ID is removed from mocks.
2025-07-15 13:27:46 +00:00
Gianluca Zuccarelli
c9d721ea52
playwright: add a test for cockpit cloud config
...
SSIA
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
0b0171bb87
cloudConfig: add a popover for creds path
...
Add a popover to give more information on the aws credentials
path.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
1ed4380bfc
cloudConfig: restart worker on submit
...
Restart osbuild-composer and the worker after updating the config, this
is a necessary step for osbuild-composer to register the changes.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
5afe1c1fc1
cloudConfig: save the aws configs
...
Save the AWS config modifications to the `osbuild-worker.toml` file.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
ca6c59bfb8
store/cockpitApi: add worker config mutation
...
Add an endpoint to update the worker config.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
09df007eb9
test/mocks: add cockpit modify
...
Add the `modify` file function which performs atomic modifications to a
file.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
c55706b931
cockpitApi: create worker config file
...
Create the `osbuild-worker.toml` file if it doesn't exist already.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
afcc0126e4
cloudConfig: toggle aws config
...
This is still a wip since the form fields aren't yet disabled when the
config toggle is set to off.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
73ffb97414
cloudConfig: error component
...
Add an error component to improve the UI when there is an issue reading
the `osbuild-worker.toml` file.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
ecc1c2c8cd
cockpitApi: get worker config
...
Add a query to load the `/etc/osbuild-worker/osbuild-worker.toml` config
and use this to set the state of the `cloudConfig` store slice.
2025-07-15 12:38:52 +00:00
Gianluca Zuccarelli
d7945a458a
cockpitApi: add worker config types
...
Create a few types to help stick to conventions and tidy up the code.
2025-07-15 12:38:52 +00:00