Commit graph

38 commits

Author SHA1 Message Date
Dominik Vagner
3d8ccdf23d build: add testing proxy to playwright CI
This PR switches the playwright test in CI to use the consoledot testing
proxy instead of the development one in fec. This should result in
faster and more stable tests.
2025-05-27 11:42:22 +02:00
regexowl
ba29232c91 config: Replace webpack configs with FEC config
This migrates from previously used webpack configs to one fec.config.js.

This will allow us to bump `frontend-components-config` dependency to version 6.x and stay supported in the future.
2024-07-19 16:55:25 +02:00
regexowl
5b56f09e27 ESLint: Merge .js and .ts configs to one file
Since our code base is now mostly TypeScript, we can merge the configs and have a unified one.

`@typescript-eslint/no-var-requires` was temporarily disabled in webpack configs. These files will be replaced by fec.config.ts in the foreseeable future together with their ESLint override.
2024-06-19 13:13:29 +02:00
Ondrej Ezr
5fcc80d2db Wizard: Drop the WizardV1 2024-06-19 09:10:22 +02:00
regexowl
45a42ce549 src: Migrate remaining files to TypeScript
This migrates remaining JavaScript files to TypeScript and updates imports.
2024-06-06 08:38:41 +02:00
Thomas Lavocat
9a1b823eed wizard: prepare a dev env to create the new wizard
Developing a new wizard will require many pull requests and some of them
might even be worked on in parallel. To allow to develop all of that
without interfering with the legacy wizard this commit introduces a new
dev environment alongside an unleash flag when we later want to do the
switch.

To use the new dev en use `npm run stage-beta:experimental` or `npm run
stage-beta:msw+experimental` depending on what you want.

Then unleash flag to toggle in stage and prod is: `image-builder.new-wizard.enabled`

fixes: HMS-2859
2023-11-09 12:43:01 +01:00
jkozol
5a34506eb6 devel: update local containerized development
Update multiple aspects of our docker development stack. The frontend now
has a devel specific webpack that allows development against a local server/api.
The docker-composer.yaml also includes both versioning and networking updates.
Overall, the major change is to migrate our proxy access into the crc webpack proxy.
2023-10-11 09:34:52 +02:00
Amir Fefer
9fd260cfea feat(HMS-1909): enable a custom host in LOCAL_API env var 2023-08-16 13:27:21 +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
e2006b2ff7 MSW: Integrate MSW into browser
This commit integrates Mock Service Worker into the browser. This will
allow us to use MSW to mock network requests at the API level from a
browser using the same MSW fixtures that we are currently using for our
testing. This means we will be able to have the same environment for
debugging, development, and testing if desired.

To develop using MSW, the developer will now use `npm run
stage-beta:msw`. The dev server will start as normal, but now any
request made that has a corresponding fixture will be intercepted and
the fixture used to generate the response.

This adds an MSW=TRUE environment variable to the run script. When this
environment variable is present, the dev webpack config will copy
mockServiceWorker.js into the build directory (/dist) using CopyPlugin
and will add some necessary headers to the dev server's responses using
DefinePlugin.
2023-06-01 14:40:02 +02:00
jkozol
113759aa77 config: add appUrl for /preview
The appUrl webpack param can accept an array. This array includes urls for
prod, beta, and preview.
2023-04-26 18:30:14 +02:00
regexowl
f1b4b67293 config/dev: Revert run proxy without VPN for prod envs
This reverts commit 49b3f04
2023-04-13 00:13:39 +02:00
Sanne Raymaekers
49b3f04ea2 config/dev: run proxy without VPN for production envs
This allows users to develop against production without having access to
the internal network.

62f37029ca/packages/config (running-prod-proxy-without-vpn)
2023-03-27 10:05:23 +02:00
Simon Steinbeiss
d66c141e8d Remove unused variable 2023-02-27 16:54:29 +01:00
Sanne Raymaekers
3207afce90
config: remove module name in webpack config (#959)
Due to merging the openshift and chrome plugin systems there's
additional requirements on the format of the module name.

Camelcase is the default, so the values can just be removed from the
config.
2023-02-09 12:17:27 +01:00
lucasgarfield
0f0bb301ee Update prod webpack config to share router module. 2023-01-12 15:41:26 +01:00
Martin Maroši
122176ecbe Update webpack config to share router module. 2023-01-12 15:41:26 +01: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
regexowl
0bced556a9 ESLint: Use --fix with new rules to order import declarations
Related to #795. This applies the new sorting rules in ESLint to the files by running `npm run lint:js:fix`
2022-09-14 13:24:38 +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
Sanne Raymaekers
ceb7f3ceef config: Let frontend-components set deployment in prod config
This got broken in #696, `deployment` never actually got set during the
release build process, and now we default to
`apps`. `frontend-components` will automatically do the right thing and
set the deployment based on the branch name.
2022-04-14 13:05:02 +02:00
Sanne Raymaekers
dd6f91c599 config: Prep prod webpack config for ga 2022-04-12 20:03:38 +02:00
Sanne Raymaekers
d09108aef2 config: Move deployment under general webpack config
`deployment` is not specific to the proxy.
2022-04-12 20:03:38 +02:00
Sanne Raymaekers
7a6f177aa5 config: Remove duplicate value in dev webpack conf 2022-04-12 20:03:38 +02:00
Sanne Raymaekers
ce2d1d6dcc config: Drop skipChrome2
This defaults to false.
2022-04-12 20:03:38 +02:00
Jacob Kozol
dc98e58ba5 package.json: add run script for stage env
A developer can now run `npm run stage` which will run the UI against
the staging environment on crc.
2022-02-28 15:35:51 +01:00
Sanne Raymaekers
60d7014f89 config: Use correct sassPrefixes in production 2021-10-19 15:32:36 +02:00
Sanne Raymaekers
b7be40bfe1 config: Dev against production environment 2021-10-12 15:44:48 +02:00
Martin Maroši
d3999cbf87 Fix local development and use correct CSS prefixes. 2021-10-12 15:03:04 +02:00
Sanne Raymaekers
2b4516856f config: Use beta deployments
Since our app is deployed under `/beta/insights`, we need to serve the
local files under `/beta` as well. This way we can use the production
chrome and services config.
2021-08-08 15:20:37 +03:00
Martin Marosi
0513ac9ac4 Add missing modules entry to webpack config. 2021-07-15 14:33:56 +02:00
Karel Hala
9a56b859ef Fix popover visibility
DDF wizard and popover has some issues with visibility, this is a quick hack so we should try fix it a bit nicer, but for time being it's fine
2021-06-30 14:15:01 +02:00
Sanne Raymaekers
9c65a705a3 LandingPage: Include link to current commit on GitHub 2021-06-13 13:05:17 +01:00
Sanne Raymaekers
cff45e5948 Revert "config: Skip chrome2 until the configuration is in place in csc"
This reverts commit 688291386a.
2021-05-11 14:11:49 +02:00
Sanne Raymaekers
688291386a config: Skip chrome2 until the configuration is in place in csc 2021-05-10 14:08:18 +02:00
Sanne Raymaekers
4658f59d0b src: Adapt to insights-chrome 2.0 2021-05-06 11:26:41 +02:00
Jacob Kozol
ea09205a27 test: add initial jest tests
Basic jest tests are added for the landing page. These tests use the
react testing library so the enzyme dependencies are removed from the
package.json. The travis config is also updated.
2020-10-22 10:23:08 +02:00
sanne raymaekers
f93d36b972 copy from RedHatInsights/insights-frontend-starter-app template
Copied removing unused parts, and includes some initial changes.
2020-04-15 12:46:02 +02:00