Commit graph

37 commits

Author SHA1 Message Date
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
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
5ad7470031 src: Prefetch list of targets on hover of Create blueprint button
This prefetches list of possible targets based on distribution for `onMouseEnter` event of Create blueprint button.
2024-10-06 11:38:57 +03:00
Anna Vítová
a799d70a85 blueprint: Add preview label to import button 2024-08-08 12:56:27 +03: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
Ondrej Ezr
5fcc80d2db Wizard: Drop the WizardV1 2024-06-19 09:10:22 +02:00
regexowl
ca3baea7d6 LandingPage: Make buttons disabled on Immutable
This makes the "Create blueprint" button and the "Import" button disabled when the Immutable tab is selected.
2024-06-06 13:47:30 +02:00
Anna Vítová
3018d64df6 Blueprints: Add import Wizard (HMS-3690) 2024-05-22 16:08:06 +02:00
regexowl
1bf459ba58 Components: Migrate remaining files to TypeScript
Remaining JavaScript files were migrated to TypeScript. Files that didn't include JSX were renamed from `.tsx` to `.ts`.
2024-05-03 16:36:26 +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
regexowl
00cf55f4f0 sharedComponents: Align buttons in header
The buttons in imageBuilderHeader were stacked under the title. This makes them align next to the header title.
2024-04-23 14:32:56 +02:00
regexowl
033301c7b2 Blueprints: Remove icon from "Create blueprint" button
This removes the plus icon from the "Create blueprint" button as per recent review.
2024-04-16 18:24:47 +03: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
regexowl
db64729628 Blueprints: Update button in header
This updates the Create blueprint and Import buttons based on recent mocks.
2024-04-04 15:44:29 +02:00
Anna Vítová
939047dfef fixes(#1767): Change 'Create' button to 'Create blueprint' 2024-04-02 10:17:55 +02:00
regexowl
4a74813c2b Blueprints: Add test ids
This updates the data-testid of Create button in the header (`Link` component, not OUIA-compliant) and adds a data-testid to the blueprint search input (`SearchInput` component, also not OUIA-compliant).

A testId was also added to the blueprint actions dropdown (`MenuToggle`).
2024-03-28 12:14:44 +01:00
lucasgarfield
c73482dd7f Utilities: Add useExperimentalFlag hook
This commit DRYs out the code, extracting the logic for setting the
value of the experimentalFlag into a new hook found in the utilities.

It also makes the typing stricter - the hook returns a boolean. The
pattern we were using previously to set the value of experimentalFlag
variables could be boolean, string, or undefined.
2024-03-05 19:27:46 +01:00
Anna Vítová
5813fdaf10 feat(HMS-3686): Update position of blueprint buttons 2024-03-05 13:49:31 +01:00
Amir
45d50b2440 Blueprints: Add blueprint editing 2024-03-04 14:48:32 +01:00
Anna Vítová
45194fa225 feat(HMS-3515): Change blueprint cards to be clickable 2024-02-27 18:21:41 +01:00
Amir
74f71f2dca Blueprints: Add handler for creating new blueprint 2024-02-12 15:12:14 +01:00
Amir
13ca8e868d feat(HMS-3431): add a blueprint build images 2024-02-07 17:58:13 +01:00
Jakub Rusz
22d8eb6634 Fix osbuild pages url
It's now lowercase.
2024-01-31 12:11:04 +01:00
Jakub Rusz
d6773fbae1 Update architecture url 2024-01-29 10:20:43 +01:00
lucasgarfield
819863835b LandingPage: Hotfix to remove exposed blueprint buttons
Commit bae6435fd9 adds scaffolding for the
blueprint table. Blueprint features should be hidden behind experimental
flags. The new buttons related to creating blueprints and rebuilding
images in the header were not hidden behind the experimental flag, this
commit fixes that and does so.

bae6435fd9 also changed the header title
from "Image Builder" to "Images". This change has been a long time
coming - it is being left in for now. We may want to revisit the copy in
the popovers to align it as the term "Image Builder" is still being used
in those.
2024-01-22 10:06:40 +01:00
Amir
c2e7c34d6e feat(HMS-3386): add blueprints initial layout 2024-01-19 17:20:21 +01:00
lucasgarfield
c4d411efa4 Wizard: Improve in-page wizard cosmetically
This commit:
1. Removes the header from the Data Driven Forms wizard
2. Adds padding around the in-page wizard so it is visually consistent
   with the images table
3. Refactors the images table header into a re-usable component that is
   now used in both the images table and the wizard
4. Allows the repositories table to fill the available vertical space in
   the wizard
5. Adjusts the package dual list selectors so that they fill the
   available horizontal space in the wizard
2023-10-20 15:51:03 +02:00
Sanne Raymaekers
a5edf0bb75 src: Update doc links
The access.redhat.com documentation moved from
`https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/creating_customized_rhel_images_using_the_image_builder_service/index`
to
`https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/creating_customized_images_by_using_insights_image_builder/index`.
2023-06-30 15:33:50 +02:00
lucasgarfield
70c232471a ImagesTable: Change 'beta' to 'preview' in Launch popover 2023-05-05 11:46:11 +02:00
Sanne Raymaekers
341b37a567 ImagesTable/RegionsPopover: add "go to beta" under launch 2023-04-14 17:36:31 +02:00
regexowl
ab1a7f4aab ESLint: Use --fix with updated rules to order imports
This applies the updated sorting rules to the files by running `npm run lint:js:fix`
2022-12-02 16:29:58 +01:00
Sanne Raymaekers
e9295b8b42 DocumentationButton: fix documentation url
The old URL pointed to the on-prem documentation, not the service docs.
2022-11-16 14:20:32 +01:00
regexowl
9c92da8bb3 Wizard: Update image output step links from RHEL 8 to RHEL 9
Fixes #776. This updates Documentation links on Image output step from RHEL 8 docs URLs to RHEL 9 docs URLs.
2022-10-21 14:04:41 +02:00
Jacob Kozol
4fa71cede8 update style across the project
The eslint updates require style changes in all components.
2022-05-23 12:47:20 +02:00
lucasgarfield
62559b8323 CreateImageWizard: Add DocumentationButton form component
A documentation button, which contains an external link to the
official documentation, appears several times throughout the frontend.
Currently, the code for the documentation button is copy/pasted where
needed. Adding a form component for the documentation button allows code reuse
and improves readability in the code that calls it.

Because this component is used by the LandingPage, ImagesTable, and
ImageWizard it has been placed in a new directory,
`src/Components/sharedComponents` which is at the same level as these
directories.
2022-03-04 16:44:12 +01:00