Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable] Update build #2798

Merged
merged 99 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
7f3b596
display configure events if user has write perms
CodyWMitchell Mar 15, 2024
f90dd2d
use correct permissions
CodyWMitchell Mar 18, 2024
9e3cd0c
Favorites widget styling fix (#2797)
epwinchell Mar 21, 2024
618e892
Bump webpack-dev-middleware from 5.3.3 to 5.3.4
dependabot[bot] Mar 23, 2024
9d84f31
Merge pull request #2799 from RedHatInsights/dependabot/npm_and_yarn/…
Hyperkid123 Mar 25, 2024
0dcfcbf
Bump follow-redirects from 1.15.4 to 1.15.6
dependabot[bot] Mar 25, 2024
25725e3
Use current pathname in uickstarts timeout.
Hyperkid123 Mar 25, 2024
408a61c
Merge pull request #2793 from RedHatInsights/dependabot/npm_and_yarn/…
Hyperkid123 Mar 25, 2024
71e44b1
Merge branch 'master' into quickstart-invalid-pathname
Hyperkid123 Mar 25, 2024
5b33869
Merge pull request #2800 from Hyperkid123/quickstart-invalid-pathname
Hyperkid123 Mar 25, 2024
1a86346
Enable feedback on subs pages
karelhala Mar 26, 2024
5e68216
Merge pull request #2801 from karelhala/enable-feedback-subs
Hyperkid123 Mar 27, 2024
14eb59b
Add requestPDF api method
Hyperkid123 Mar 28, 2024
c896f38
Merge pull request #2802 from Hyperkid123/pdf-gen-function
Hyperkid123 Mar 28, 2024
d4d0f5f
Bump express from 4.18.2 to 4.19.2
dependabot[bot] Mar 28, 2024
223451f
Merge pull request #2803 from RedHatInsights/dependabot/npm_and_yarn/…
Hyperkid123 Mar 28, 2024
f6a16ab
add ai technology icon
InsaneZein Mar 28, 2024
655dbf8
update app feedback text
InsaneZein Mar 29, 2024
338458f
Update sentry api keys
adonispuente Mar 29, 2024
696fee7
Merge pull request #2804 from RedHatInsights/add-ai-icon
Hyperkid123 Apr 2, 2024
6d1568d
Merge branch 'master' into app-feedback-wording
Hyperkid123 Apr 2, 2024
24d181e
Merge pull request #2805 from RedHatInsights/app-feedback-wording
Hyperkid123 Apr 2, 2024
51ff073
Update request PDF response.
Hyperkid123 Apr 2, 2024
432c86c
Merge pull request #2808 from Hyperkid123/pdf-api-response
Hyperkid123 Apr 2, 2024
213c865
Update notes on local deployment
gkarat Jan 30, 2024
6e55238
Merge pull request #2756 from gkarat/patch-5
Hyperkid123 Apr 2, 2024
4ae2c13
Merge branch 'master' into sentryChange
adonispuente Apr 2, 2024
79c2b75
Merge pull request #2806 from adonispuente/sentryChange
Hyperkid123 Apr 3, 2024
477993f
Allow feedback for user with org id
Hyperkid123 Apr 8, 2024
1589b70
Merge pull request #2810 from Hyperkid123/feed-back-org-id
Hyperkid123 Apr 8, 2024
30e2dd3
Add demo api origins to allowed auth
aneelac22 Apr 9, 2024
150b118
Merge pull request #2812 from aneelac22/RHCLOUD-31672
apinkert Apr 9, 2024
6e12f31
Add regional ocm api instances
aneelac22 Apr 10, 2024
68b1760
Merge pull request #2813 from aneelac22/RHCLOUD-31672
Hyperkid123 Apr 10, 2024
c1d3ecb
Embed VA
Hyperkid123 Apr 3, 2024
1dbfda5
Merge branch 'master' into embed-VA
Hyperkid123 Apr 11, 2024
5ffec93
Add help icon with hover-over text next to the filter by tags drop do…
radekkaluzik Apr 11, 2024
f28632f
Merge branch 'master' into embed-VA
Hyperkid123 Apr 11, 2024
bb8a6fd
Merge pull request #2809 from Hyperkid123/embed-VA
Hyperkid123 Apr 11, 2024
61f4532
Remove insights from VA routes.
Hyperkid123 Apr 11, 2024
5b2060b
Merge pull request #2814 from Hyperkid123/remove-insights-va
Hyperkid123 Apr 11, 2024
ff1d94d
Disable obsolete landing page e2e test
Hyperkid123 Apr 12, 2024
5467df8
Use parsed services.json from chrome-service.
Hyperkid123 Mar 25, 2024
6a30dfd
Add ouiaIds to all services tabs
fhlavac Apr 15, 2024
39c311e
Add ouia id to all services toggle
fhlavac Apr 15, 2024
851dfd8
Merge pull request #2817 from fhlavac/tabs
Hyperkid123 Apr 17, 2024
9e81084
Merge branch 'master' into toggle
Hyperkid123 Apr 17, 2024
b190cc0
Merge pull request #2818 from fhlavac/toggle
Hyperkid123 Apr 17, 2024
e230213
Send preview context value to unleash.
Hyperkid123 Apr 17, 2024
778294a
Merge pull request #2819 from Hyperkid123/unleash-preview-context
Hyperkid123 Apr 18, 2024
42e92aa
Merge branch 'master' into parsed-services
Hyperkid123 Apr 18, 2024
ad8e2a2
Merge branch 'master' into configure_events_read
karelhala Apr 18, 2024
830ea14
Merge pull request #2792 from CodyWMitchell/configure_events_read
Hyperkid123 Apr 18, 2024
8172da9
Merge branch 'master' into disable-landing-page-test
fhlavac Apr 18, 2024
6eac6be
Merge pull request #2816 from Hyperkid123/disable-landing-page-test
Hyperkid123 Apr 18, 2024
48d1f36
Use link title based default document titles.
Hyperkid123 Apr 18, 2024
3faa558
Add orgId to unleash context.
Hyperkid123 Apr 19, 2024
8b61cd6
Merge branch 'master' into parsed-services
Hyperkid123 Apr 19, 2024
94f3475
Merge pull request #2821 from Hyperkid123/orgId-unleash-context
Hyperkid123 Apr 19, 2024
e7f3472
Merge branch 'master' into parsed-services
Hyperkid123 Apr 19, 2024
b1c775d
Merge pull request #2815 from Hyperkid123/parsed-services
Hyperkid123 Apr 19, 2024
a3561eb
Update PF to 5.3
Hyperkid123 Apr 22, 2024
48cefe5
Ensure Chrome PF ids are unique.
Hyperkid123 Apr 23, 2024
a1d7a92
Merge pull request #2824 from Hyperkid123/pf-update
Hyperkid123 Apr 23, 2024
05aacc9
Add OUIA to all services page and dropdown items (#2822)
fhlavac Apr 24, 2024
38bb1f8
Enable VA in insights bundle. (#2823)
Hyperkid123 Apr 24, 2024
7a69b49
Hide global filter when disabled.
Hyperkid123 Apr 25, 2024
03a0a14
Merge pull request #2826 from Hyperkid123/hide-global-filter
Hyperkid123 Apr 26, 2024
64ccf6a
update insights bundle title suffix to RHEL
mkholjuraev Apr 29, 2024
eb2d7d0
Merge pull request #2828 from mkholjuraev/master
Hyperkid123 Apr 30, 2024
70c9e5d
Merge branch 'master' into link-based-tab-names
Hyperkid123 May 2, 2024
3194dee
Merge pull request #2820 from Hyperkid123/link-based-tab-names
Hyperkid123 May 2, 2024
abcd25e
RHCLOUD-32399 update link (#2829)
aferd May 6, 2024
2ac36c1
Move 'favorite services' widget styling back to chrome
epwinchell May 8, 2024
c1a3fc1
Merge branch 'master' into widget_styling
epwinchell May 8, 2024
e9d7f81
Add LocalStorage flag to force new preview feaures.
Hyperkid123 May 9, 2024
0b0eaae
Merge pull request #2830 from epwinchell/widget_styling
epwinchell May 9, 2024
8e25d2e
RHCLOUD-32008: create internal jotai state for preview
florkbr May 10, 2024
3061e10
Merge pull request #2832 from florkbr/add-preview-jotai-atom
Hyperkid123 May 10, 2024
aaab433
Merge branch 'master' into preview-localstorage
Hyperkid123 May 10, 2024
d76ce23
Merge pull request #2831 from Hyperkid123/preview-localstorage
Hyperkid123 May 10, 2024
b829a38
Send cookie to PDF generator.
Hyperkid123 May 13, 2024
922ee8c
Merge pull request #2833 from Hyperkid123/pdf-cookie
Hyperkid123 May 14, 2024
d915320
Changed URL for User Preferences in UserToggle
radekkaluzik May 14, 2024
47a44de
Merge pull request #2834 from radekkaluzik/RHCLOUD-32313
radekkaluzik May 14, 2024
499d521
Replace sentry var to check for app names
adonispuente May 15, 2024
9c3ec4d
Merge pull request #2837 from adonispuente/sentryTag
Hyperkid123 May 16, 2024
0ce19ea
Update PDF generator cookie path.
Hyperkid123 May 17, 2024
ff082be
Merge pull request #2838 from Hyperkid123/update-pdf-cookie-path
Hyperkid123 May 17, 2024
ffee533
PAss available bundles via chrome API
karelhala May 17, 2024
3b368fe
Merge branch 'master' into pass-available-bundles
Hyperkid123 May 17, 2024
539a1f0
Merge pull request #2839 from karelhala/pass-available-bundles
Hyperkid123 May 20, 2024
fa4e37e
add brain icon for AI/ML allservices section
InsaneZein May 20, 2024
1f7cded
use brain icon from patternfly
InsaneZein May 20, 2024
e00e089
Merge pull request #2840 from RedHatInsights/add-brain
Hyperkid123 May 21, 2024
fe512ff
Remove business-services bundle references.
Hyperkid123 May 23, 2024
16763b7
Merge pull request #2842 from Hyperkid123/remove-business-services
Hyperkid123 May 23, 2024
76ccaa5
Remove old business-services filter
dlabrecq May 23, 2024
34cd2da
Merge pull request #2843 from dlabrecq/business-services
Hyperkid123 May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,21 @@ To run a script you have to install dependencies `npm install`. Then you are fre

3. Open browser at `https://stage.foo.redhat.com:1337/` or Open browser at `https://stage.foo.redhat.com:1337/preview`.

### Running chrome as a host application.
### Running chrome with other applications locally

As with any application, chrome can be a host application for others. You can configure the `routes` object in the `webpack.config.js` file as described in the proxy config [docs](https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#routes).
You can spin chrome locally together with other applications. Use `LOCAL_APPS` to list the locally deployed applications.

#### Example
#### Example 1 (using LOCAL_APPS)

For illustration, to deploy Advisor together with Insights Chrome, you would require to

1. Run Advisor on any available port with `npm run start -- --port=8004` or `npm run start:beta -- --port=8004`,
2. Run Chrome and list the Advisor's port: `LOCAL_APPS=advisor:8004:http npm run dev` or `LOCAL_APPS=advisor:8004:http npm run dev:beta`.

#### Example 2 (using devServer route)

You can also specify deployed applications through devServer.routes field:

For illustration, to locally deploy Advisor for OpenShift together with Insights Chrome, you would require to
1. Run Advisor with `--port=8004` (or any other available port number),
2. Update the webpack config in the following way:
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('<AllServicesDropdown />', () => {
cy.contains('Test link').click();
cy.contains('All services').should('not.exist');
}
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services.json', [
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services-generated.json', [
{
id: 'testSection',
description: 'Test section description',
Expand Down Expand Up @@ -90,7 +90,7 @@ describe('<AllServicesDropdown />', () => {
});

it('should automatically minimize tabs after clicking on small screen', () => {
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services.json', [
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services-generated.json', [
{
id: 'testSection',
description: 'Test section description',
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/AllServicesPage/AllServicesPage.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ChromeUser } from '@redhat-cloud-services/types';
describe('<AllServices />', () => {
beforeEach(() => {
// mock chrome and scalprum generic requests
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services.json', {
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services-generated.json', {
status: 200,
fixture: 'services.json',
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/DefaultLayout.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('<Default layout />', () => {
cy.intercept('GET', '/config/chrome/*-navigation.json*', {
navItems: [],
});
cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/services/services.json', []);
cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/services/services-generated.json', []);
});

it('render correctly with few nav items', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
import { IntlProvider } from 'react-intl';
import GroupFilterInputGroup from '../../../src/components/GlobalFilter/GroupFilterInputGroup';

const initialProps = {
isDisabled: false,
filter: {
onChange: () => null,
},
setIsOpen: () => null,
selectedTags: {
key: {},
},
};

describe('<GroupFilterInputGroup />', () => {
it('should open Popover with Tags help', () => {
function openPopover() {
cy.get('[aria-label="Tags help"]').click();
cy.contains('Tags').should('exist');
}
cy.mount(
<IntlProvider locale="en">
<GroupFilterInputGroup
isDisabled={initialProps.isDisabled}
filter={initialProps.filter}
setIsOpen={initialProps.setIsOpen}
selectedTags={initialProps.selectedTags}
/>
</IntlProvider>
);

openPopover();
});
});
2 changes: 1 addition & 1 deletion cypress/component/helptopics/HelpTopicManager.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('HelpTopicManager', () => {
cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/navigation/*-navigation.json?ts=*', {
navItems: [],
});
cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/services/services.json', []);
cy.intercept('GET', '/api/chrome-service/v1/static/stable/stage/services/services-generated.json', []);
});

it.only('should switch help topics drawer content', () => {
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/release-gate/landing-page.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
describe('Landing page', () => {
// Landing page has changed
describe.skip('Landing page', () => {
it('visit landing page', () => {
cy.login();

Expand Down
4 changes: 2 additions & 2 deletions locales/translation-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@
"description": "Use"
},
"useAccountNumber": {
"defaultMessage": "Use this number when contacting Red Hat for support. If you don't have any active subscriptions, you will not have an account number.",
"description": "Use this number when contacting Red Hat for support. If you don't have any active subscriptions, you will not have an account number."
"defaultMessage": "Use this number when contacting Red Hat for support. If you've never had a subscription in your account, you may not see an account number here.",
"description": "Use this number when contacting Red Hat for support. If you've never had a subscription in your account, you may not see an account number here."
},
"useFeatureInBeta": {
"defaultMessage": "Use feature in preview",
Expand Down
Loading
Loading