diff --git a/.gitignore b/.gitignore index 66ef8086..0249307b 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,7 @@ codecov* # cypress cypress/downloads cypress/screenshots -cypress/videos \ No newline at end of file +cypress/videos + +# cache +.cache/ \ No newline at end of file diff --git a/README.md b/README.md index c039e807..5617491a 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,10 @@ Red Hat Vulnerability for OpenShift service is used to assess and monitor the st 3. Make sure you are using [Red Hat proxy](http://hdn.corp.redhat.com/proxy.pac) ## Running locally -1. Install dependencies with `npm install` -2. Run development server with `npm run start:proxy:beta` -3. Local version of the app will be available at https://stage.foo.redhat.com:1337/preview/openshift/insights/vulnerability/ +1. Make sure you are connected to the Red Hat VPN +2. Install dependencies with `npm install` +3. Run development server with `npm run start` and select desired environment (`stage-preview` is recommended) +4. Local version of the app will be available at URL printed out to the console (https://stage.foo.redhat.com:1337/preview/openshift/insights/vulnerability/ if you selected `stage-preview`) ## Testing [Cypress](https://cypress.io/) is used as the testing framework @@ -20,18 +21,18 @@ Red Hat Vulnerability for OpenShift service is used to assess and monitor the st - ```npm run lint``` - run linter ## Code Coverage -1. Make sure ```npm run test``` and ```npm run test:ct``` are ran before the coverage +1. Make sure ```npm run test``` are ran before the coverage 2. Run ```npm run coverage``` ## Deploying -Any push to the following branches will trigger a build in [vuln4shift-frontend-build repository](https://github.com/RedHatInsights/vuln4shift-frontend-build) which will deploy to corresponding environment. Travis is used to deploy the application. - -| Push to branch in this repo | Updated branch in build repo | Environment | Available at -| :--------------------------- | :---------------------------- | :---------------- | :----------- -| master | stage-beta | stage beta | https://console.stage.redhat.com/preview -| master | stage-stable | stage stable | https://console.stage.redhat.com -| prod-beta | prod-beta | production beta | https://console.redhat.com/preview -| prod-stable | prod-stable | production stable | https://console.redhat.com +The app uses containerized builds which are configured in [`app-interface`](https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/data/services/insights/ocp-vulnerability/deploy.yml). + +| Environment | Available at | Deployed version +| :----------------- | :--------------------------------------- | :---------- +| stage preview | https://console.stage.redhat.com/preview | master branch +| stage stable | https://console.stage.redhat.com | master branch +| production preview | https://console.redhat.com/preview | up to the commit configured in `app-interface` +| production stable | https://console.redhat.com | up to the commit configured in `app-interface` ## Design System This project uses [Patternfly React](https://github.com/patternfly/patternfly-react). diff --git a/config/prod.webpack.config.js b/config/prod.webpack.config.js deleted file mode 100644 index 0a7d0670..00000000 --- a/config/prod.webpack.config.js +++ /dev/null @@ -1,21 +0,0 @@ -const { resolve } = require('path'); -const config = require('@redhat-cloud-services/frontend-components-config'); -const commonPlugins = require('./plugins'); -const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); - -const { config: webpackConfig, plugins } = config({ - rootFolder: resolve(__dirname, '../'), - ...(process.env.BETA && { deployment: 'beta/apps' }), - sassPrefix: '.ocp-vulnerability, .ocpVulnerability', -}); -plugins.push(...commonPlugins); - -module.exports = (env) => { - if (env && env.analyze === 'true') { - plugins.push(new BundleAnalyzerPlugin()); - } - return { - ...webpackConfig, - plugins, - }; -}; diff --git a/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable with items exists and matches screenshot #0.png b/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable with items exists and matches screenshot #0.png index 7ae12bde..363f08e7 100644 Binary files a/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable with items exists and matches screenshot #0.png and b/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable with items exists and matches screenshot #0.png differ diff --git a/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable without items exists and matches screenshot #0.png b/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable without items exists and matches screenshot #0.png index 096cdb0e..afa5d65b 100644 Binary files a/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable without items exists and matches screenshot #0.png and b/src/Components/SmartComponents/ClusterList/__image_snapshots__/ClusterListTable without items exists and matches screenshot #0.png differ