Commit graph

63 commits

Author SHA1 Message Date
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
Michal Gold
830e22fcdc updating useFlag to omit feature flag from onPrem env 2024-10-30 10:36:18 -05: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
regexowl
7e02a3adad LandingPage/ImagesTable: Shrink headings
This bumps the "Blueprints" and "All images" headings from 2XL to XL as per mocks.
2024-06-04 18:02:19 +03:00
regexowl
a6ff016662 LandingPage / ImagesTable: Set max width for the ImagesTable
Fixes #933

This applies `isWidthLimited` to the section containing ImagesTable, ensuring the table doesn't get stretched out too much.

The were also two sets of empty tags around ImagesTable return, this removes one of them.
2024-05-07 16:40:56 +02:00
lucasgarfield
8271e6d159 LandingPage: Update 'new' alert for blueprints to support quickstarts 2024-05-02 12:35:25 +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
0d6f3ca8d2 V2 Wizard: Add Blueprints title to sidebar (HMS-2781)
Added Blueprints title to align with mocks.
2024-04-23 12:11:11 +02:00
regexowl
a7962258e8 LandingPage: Remove "New" label from Immutable tab
This removes "New" label from the Immutable tab.
2024-04-17 18:38:48 +02:00
regexowl
bc8258146a Blueprints: More specific storage name
This makes the name for the Blueprints! feature alert more specific in the localStorage.
2024-03-18 16:24:07 +01:00
regexowl
ea7f7168ab Blueprints: Make Blueprints! alert dismissible
Fixes #1804

This adds a close button to the Blueprints! alert, making it dismissible.
2024-03-18 16:13:23 +01:00
Anna Vítová
a3a7ea88c5 feat(HMS-3401): Add blueprints sidebar pagination 2024-03-18 10:06:05 +01:00
lucasgarfield
8923d2c254 Blueprints Table: Add "new" alert
Adds an alert to explain the basic concept of blueprints to users.
Actual copy (and presence of emojis) is pending feedback from UX/copy,
this is just a placeholder for now.
2024-03-07 13:19:32 +01:00
Amir
61b86da98a Blueprints: add blueprints slice for client global state 2024-03-06 12:52:03 +01:00
lucasgarfield
ab31c7a54a Blueprints Table: Remove quickstarts
These are taking up too much space on the screen. Links to the
quickstarts need to be moved to more relevant locations. We are
currently working with UX on a design for this.
2024-03-06 10:34:22 +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
Thomas Lavocat
c81ac76ea8 App: experimental features in beta only
When the unleash switch `image-builder.new-wizard.enabled` will get
activated on stage the blueprint and new wizard will be visible on the
platform.
To make them only visible in preview we need to change the condition to
check if Beta is selected by the user.
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
13ca8e868d feat(HMS-3431): add a blueprint build images 2024-02-07 17:58:13 +01:00
Ondrej Ezr
c447244c8a Blueprints: add Blueprints filtering
Enables Blueprints filtering.
Given this is a server side filtering, it also ads Debounce hook.
This hook enables delay the API request to save server roundtrips.

Refs HMS-3389
2024-02-02 14:52:46 +01:00
Amir
017f5bfb51 feat(HMS-3391): add blueprint onclick handler 2024-01-25 09:28:34 +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
jkozol
a5b1b1f775 package.json: upgrade patternfly to version 5
This upgrade requires multiple package updates. There are many style
updates to reflect pf5's syntax and structure changes
2023-10-25 09:02:47 +02: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
lucasgarfield
7b9e726151 ImagesTable: Convert ImagesTable to Typescript & RTK Query
This commit converts the Images Table to Typescript and converts all API
calls to image-builder to use RTK Query hooks.

This should increase the performance of the app significantly.
Previously our calls to the image-builder API were made in series. They
are now made in parallel. We may want to investigate the possibility of
hitting rate limiting now that we will be issuing requests in much more
rapid succession.

In the tests, moving to RTK Query hooks has allowed us to remove
virtually all Jest mocking. However, this means that some of our
previous tests which tested against implementation details were broken.
Most notably, we no longer check the Redux store to verify that clones
have been added correctly and we no longer check that compose requests
were issued successfully. Test coverage will be restored in a follow-up
PR where the dev-dependency @msw/data is added. Adding a persistent data
layer to the tests using @msw/data will allow us to verify that our POST
requests (creating composes and cloning them) are working by testing
that the Images Table has been updated.
2023-09-18 10:35:04 +02:00
Ondrej Ezr
b64f36e68f Extract quickstarts banner into its own component 2023-09-11 10:40:13 +02:00
regexowl
8cb2fc1936 LandingPage: Update Quickstarts expandable
This removes the second line of text in the Quickstarts expandable and changes heading of the expandable section based on the environment.
2023-08-23 17:46:29 +02:00
Ondrej Ezr
1cd3f397e6 Remove the Preview banner 2023-08-23 09:39:18 +02:00
aabramov
d8e47de0c5 Add GCP quickstart 2023-08-16 10:07:02 +02:00
Thomas Lavocat
48bd38c496 LandingPage: conversion to type script
Conversion to type script by renaming the file and correcting the type
errors.
2023-08-07 11:08:19 +02:00
Thomas Lavocat
154429212f LandingPage: fix the button in a button error
Previously the Popover was used within the title of the tab. In addition
to the fact that the Popover had a button to get triggered, it created a
button in a button issue. The web browser was reporting this as abnormal
and the UI behavior was not ideal: while clicking on the interrogation
mark the user was also moved to the corresponding tab.

This commit fixes that issue by using a TabAction to get the Popover
working. Inspired by the patternfly documentation:
- http://v4-archive.patternfly.org/v4/components/tabs#help-action
2023-08-07 11:08:19 +02:00
regexowl
03d2899843 LandingPage: Update the "About" popover
This updates the text on the "About" popover and adds links according to recent mocks.
2023-07-20 13:13:11 +02:00
acosferreia
164b065fd3 rename ib tab from traditional to conventional 2023-07-18 22:45:38 +02:00
Djebran Lezzoum
e726ddc2a1 LandingPage: Fixes tabs selection on browser back/forward.
In the context of HMS-parity with edge management, fixes the current behavior when using browser history back and forward.
- When selecting a tab and then push the browser history back/forward, the tab of the current url is selected.

FIXES: https://issues.redhat.com/browse/THEEDGE-3460
2023-07-13 13:12:44 +02:00
regexowl
ea89a92bf1 LandingPage: Add "New" label to Immutable tab
This adds "New" label to the Immutable (OSTree) tab as per recent mocks.
2023-07-13 12:12:39 +02:00
Djebran Lezzoum
971d651cfd LandingPage: Integrate selected tab with url.
In the context of HMS-parity with edge management, fixes the current behavior when selecting tabs and navigating in edge image details view:
- when selecting a tabs the corresponding url is shown (the url can be copied , and when pasted we return the selected tab)
- when returning back from edge management details view, the user  return back to the last tab (e.g ostree tab)
FIXES: THEEDGE-3445
2023-06-27 12:24:13 +02:00
mgold1234
27c620939a LandingPage: Add edge images table
This commit adds the edge images table as a federated module, gated behind a feature flag.
the configuration is for dev environment to work with federation modules locally
2023-06-26 12:54:10 +02:00
lucasgarfield
2e30d93ea1 LandingPage: Update Open Source Badge
The open source badge now lives in @redhat-insights/frontend-components.
2023-06-01 16:04:14 +02:00
Pavel Odvody
93d1f94c79 Remove embedded quickstarts & Preview
With our quickstarts now merged to prod we can
start using the quickstart API to invoke them.
Also change all Beta user facing text to Preview

Signed-off-by: Pavel Odvody <pavel@redhat.com>
2023-05-03 15:25:48 +02:00
regexowl
f39903841b LandingPage: Update spacing in expendable quickstart area
This updates spacing between the description and buttons as shown in mocks.

Nesting of the `<p>` tags was also removed to eliminate `Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>` from the console logs.
2023-05-03 13:13:02 +02:00
lucasgarfield
b2e6e3cf04 Wizard: Use useChrome hook to set beta feature flag
The use of chrome.isBeta is deprecated, the useChrome hook should be
used instead to obtain an isBeta() function. Using the deprecrated
chrome.isBeta pollutes the browser console with warning messages.

This commit replaces the isBeta() helper function with a new custom
hook, useGetEnvironment().

We still sometimes need to know which environment is running outside of
React components, where we cannot call the useChrome() or
useGetEnvironment() hooks. For instance, in the json used to define a
wizard step. Therefore a new isBeta variable has been added to the
form's initialState for use in these cases.
2023-04-28 17:07:31 +02:00
regexowl
a97cfd229a Quickstarts: Add check for the last step of AWS and Azure
This adds the "Check your work" review for the 3rd step of AWS and Azure.
2023-04-25 13:05:00 +02:00
regexowl
dc8e521e28 LandingPage: Change background of "Help get started with beta features"
This changes the background color of the "Help get started with beta features" expandable from #FAFAFA to #FFFFFF.
2023-04-24 13:02:55 +02:00
lucasgarfield
3d4b9287df Quickstarts: Fix minor bugs 2023-04-21 16:41:24 +02:00
Pavel Odvody
8fced39451 Show different alert to user in beta
This adds the possibility to invoke 3 different quickstarts
from in-beta prompt

HMS-1577

Signed-off-by: Pavel Odvody <pavel@redhat.com>
2023-04-20 17:02:04 +02:00
Sanne Raymaekers
c3c8a687a0 LandingPage: add "go to beta" banner 2023-04-14 17:36:31 +02:00
Simon Steinbeiss
47436e6933 Landingpage: Switch to CodeBranchIcon
Use the CodeBranchIcon instead of just CodeIcon for the Open Source
Services popover button.
COMPOSER-1899
2023-03-01 16:44:31 +01:00
Simon Steinbeiss
d66c141e8d Remove unused variable 2023-02-27 16:54:29 +01:00