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 #2758

Merged
merged 142 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
f022a4e
Move activeModuleAtom to a isolated file.
Hyperkid123 Dec 7, 2023
94d8a25
Detach scalprum config from redux.
Hyperkid123 Dec 7, 2023
883ad23
set cookie
aneelac22 Jan 2, 2024
e9432bd
Revert "set cookie"
aneelac22 Jan 2, 2024
c57db51
Update dependencies.
Hyperkid123 Jan 2, 2024
4083d3d
Merge branch 'master' into update-dependencies
Hyperkid123 Jan 3, 2024
f98d185
Add subscriptions bundle title mapping.
Hyperkid123 Jan 3, 2024
6e0d00f
Add new api.console scope to auth defaults.
Hyperkid123 Jan 3, 2024
1d1b5df
Merge pull request #2735 from Hyperkid123/update-dependencies
Hyperkid123 Jan 3, 2024
1e055bb
Close the search menu after Enter is pressed on link.
Hyperkid123 Jan 3, 2024
5170bf3
Track feedback modal opening.
Hyperkid123 Jan 3, 2024
cccc5e1
Merge pull request #2737 from Hyperkid123/add-subs-bundle-mapping
Hyperkid123 Jan 4, 2024
01e528a
Merge pull request #2740 from Hyperkid123/tracking-events
Hyperkid123 Jan 4, 2024
d92257c
Merge branch 'master' into new-default-scope
Hyperkid123 Jan 4, 2024
3663bf0
Merge branch 'master' into close-search-on-enter
karelhala Jan 4, 2024
2c64d87
Merge pull request #2739 from Hyperkid123/close-search-on-enter
Hyperkid123 Jan 5, 2024
dd70d85
Merge branch 'master' into new-default-scope
Hyperkid123 Jan 5, 2024
9c3985f
Prevent sentry re-initialization
Hyperkid123 Jan 5, 2024
bbd4e07
Merge branch 'master' into detach-scalprumConfigredux
Hyperkid123 Jan 8, 2024
2acb114
Merge pull request #2741 from Hyperkid123/sentry-re-init
Hyperkid123 Jan 8, 2024
b7a9534
Merge branch 'master' into new-default-scope
Hyperkid123 Jan 8, 2024
8b726b9
Merge branch 'master' into detach-scalprumConfigredux
fhlavac Jan 9, 2024
feec298
Merge pull request #2724 from Hyperkid123/detach-scalprumConfigredux
Hyperkid123 Jan 9, 2024
4766e0a
Fix ref's not updating for setCookie
aneelac22 Jan 10, 2024
5828ac1
Merge pull request #2742 from aneelac22/set-cookie
aneelac22 Jan 10, 2024
9e879f8
Use mutable reference for fetch/xhr Auth header monkey patch
Hyperkid123 Jan 11, 2024
5e1b86b
Merge pull request #2743 from Hyperkid123/global-token
Hyperkid123 Jan 11, 2024
9e18a33
Merge branch 'master' into new-default-scope
karelhala Jan 11, 2024
1c1e431
Exclude https://api.openshift.com/api/upgrades_info/ from auth inject…
Hyperkid123 Jan 11, 2024
9ddfec6
Merge pull request #2744 from Hyperkid123/op-api-token-exception
florkbr Jan 11, 2024
88efa29
Fix breadcrumbs for docs and user preferences site
karelhala Jan 12, 2024
ff0cb3d
Merge pull request #2745 from karelhala/fix-breadcumbs
Hyperkid123 Jan 12, 2024
93d7763
Merge branch 'master' into new-default-scope
fhlavac Jan 12, 2024
cfe65c3
Merge pull request #2738 from Hyperkid123/new-default-scope
Hyperkid123 Jan 12, 2024
a859ec5
api.console scope is not added in-boundary KC
aneelac22 Jan 16, 2024
f0239b3
Feedback modal button fix
epwinchell Jan 16, 2024
081bda7
Merge pull request #2746 from aneelac22/fix-scope-ib
aneelac22 Jan 16, 2024
4699d31
Merge branch 'master' into feedback_fix
epwinchell Jan 16, 2024
ab8694b
Add runtime scope reauth API.
Hyperkid123 Dec 7, 2023
d4ab2f4
Merge pull request #2747 from epwinchell/feedback_fix
Hyperkid123 Jan 17, 2024
e81d1f3
Merge branch 'master' into runtime-sso-scoping
Hyperkid123 Jan 22, 2024
e52d488
Merge pull request #2722 from Hyperkid123/runtime-sso-scoping
Hyperkid123 Jan 22, 2024
81c7025
Bump scalprum and SDK
Hyperkid123 Jan 22, 2024
ee2d117
Simplify gateway errors testing.
Hyperkid123 Jan 23, 2024
b37061c
Merge pull request #2749 from Hyperkid123/bump-scalprum
Hyperkid123 Jan 23, 2024
d6716c5
Move contextswitcher open state to Jotai
Hyperkid123 Jan 22, 2024
15922d4
Run IQE platform_ui smoke tests against PR image (#2639)
catastrophe-brandon Jan 24, 2024
059dda0
Move chrome modules definition from Redux to Jotai.
Hyperkid123 Jan 22, 2024
278a750
Merge branch 'master' into jotati-migrations
Hyperkid123 Jan 24, 2024
3670318
Remove api.console default scope
Hyperkid123 Jan 24, 2024
f19253c
Merge pull request #2750 from Hyperkid123/jotati-migrations
Hyperkid123 Jan 25, 2024
c320c6c
Merge branch 'master' into revert-default-scope
Hyperkid123 Jan 25, 2024
81cd298
Merge pull request #2751 from Hyperkid123/revert-default-scope
Hyperkid123 Jan 25, 2024
e746d03
Expand the Settings Dropdown (#2748)
CodyWMitchell Jan 26, 2024
148a685
Fix favorite services pathname matching.
Hyperkid123 Jan 26, 2024
b1327de
Merge branch 'master' into favorite-data-resolution
Hyperkid123 Jan 26, 2024
8dbc0ae
Revert appId removal in old settings menu (#2754)
fhlavac Jan 26, 2024
39d7e35
use feature flag to toggle my user access path (#2752)
CodyWMitchell Jan 30, 2024
c3363d3
Add dist folder to pr check
adamrdrew Jan 30, 2024
71656b5
Merge pull request #2757 from adamrdrew/dist_folder_in_pr_check
Hyperkid123 Jan 30, 2024
3c6b443
Merge branch 'master' into favorite-data-resolution
Hyperkid123 Jan 30, 2024
d87d31a
Merge pull request #2753 from Hyperkid123/favorite-data-resolution
Hyperkid123 Jan 30, 2024
045add8
add org_id to user toggle
CodyWMitchell Feb 1, 2024
952e5dc
Bump FEC chrome.
Hyperkid123 Feb 1, 2024
3634cfc
Application services name update
epwinchell Feb 1, 2024
2c78a35
Merge pull request #2760 from Hyperkid123/bump-chrome
Hyperkid123 Feb 2, 2024
503f5ee
Merge branch 'master' into org_drop_down
Hyperkid123 Feb 2, 2024
c7d78c5
Merge pull request #2759 from CodyWMitchell/org_drop_down
Hyperkid123 Feb 2, 2024
002e5c5
Merge branch 'master' into application_services
Hyperkid123 Feb 2, 2024
12bffd3
Merge pull request #2761 from epwinchell/application_services
Hyperkid123 Feb 2, 2024
4e9eac1
adding cypress tests for last-visited hook
BlakeHolifield Jan 29, 2024
168099b
add ouiaId for orgId in user dropdown
CodyWMitchell Feb 6, 2024
cc9b331
Merge pull request #2763 from CodyWMitchell/org_id_ouia
Hyperkid123 Feb 7, 2024
f290c1f
Clear filter tags by when clicked on clear filters
karelhala Feb 12, 2024
2ecd8a5
Merge branch 'master' into RHCLOUD-30109
BlakeHolifield Feb 12, 2024
4193873
Merge pull request #2764 from karelhala/clear-filter-tags-by
Hyperkid123 Feb 13, 2024
3619d51
Merge branch 'master' into RHCLOUD-30109
Hyperkid123 Feb 13, 2024
9d4cfb9
Merge pull request #2762 from RedHatInsights/RHCLOUD-30109
Hyperkid123 Feb 13, 2024
c96b97b
Fix service-accounts link (#2765)
fhlavac Feb 13, 2024
9f7edf1
rollback last-visted changes
BlakeHolifield Feb 14, 2024
57d9039
Merge pull request #2767 from RedHatInsights/last-visited-patch
BlakeHolifield Feb 14, 2024
8e95c3f
Fix preview toggle wrapping issue
epwinchell Feb 20, 2024
18af9c2
Update axios to version 0.28.0
depfu[bot] Feb 20, 2024
ceb03bb
Override axios type
Hyperkid123 Feb 21, 2024
dcbcf93
Merge pull request #2771 from epwinchell/preview_toggle_fix
Hyperkid123 Feb 21, 2024
85ec5e4
Merge branch 'master' into depfu/update/npm/axios-0.28.0
Hyperkid123 Feb 21, 2024
dfe4516
Merge pull request #2772 from RedHatInsights/depfu/update/npm/axios-0…
Hyperkid123 Feb 21, 2024
8c6d0af
Remove cognito package
aneelac22 Feb 21, 2024
9c4461e
Merge pull request #2774 from aneelac22/remove-cognito
Hyperkid123 Feb 22, 2024
0c22651
close when outside of the nav menu
CodyWMitchell Feb 22, 2024
d39a545
unexpand dropdown when service is clicked
CodyWMitchell Feb 22, 2024
cb4cf19
test for unexpand dropdown when service clicked
CodyWMitchell Feb 26, 2024
5656036
add ouiaId for allServicesTabs
CodyWMitchell Feb 26, 2024
c66a7fb
Merge pull request #2775 from CodyWMitchell/nav_fixes
Hyperkid123 Feb 27, 2024
909e3c4
Enable pendo guides on landing page.
Hyperkid123 Feb 27, 2024
2492288
Merge branch 'master' into disable-pendo-watcher
Hyperkid123 Feb 27, 2024
c827bfa
Merge pull request #2776 from Hyperkid123/disable-pendo-watcher
Hyperkid123 Feb 27, 2024
4fc1c21
Enable last visited pages data upload.
Hyperkid123 Feb 27, 2024
e9986d0
Merge pull request #2777 from Hyperkid123/bump-chrome-dependency
Hyperkid123 Feb 28, 2024
0f8539e
Remove additional document title update
CodyWMitchell Feb 28, 2024
feacb0f
remove unused imports
CodyWMitchell Feb 28, 2024
943f11a
useMemo instead of useEffect in bootstrap.tsx
CodyWMitchell Feb 29, 2024
192c10d
useSetAtom in place of useAtom in ChromeRoute.tsx
CodyWMitchell Feb 29, 2024
03f8530
Notification drawer tweaks
epwinchell Feb 27, 2024
374a86b
Merge branch 'master' into notif_tweaks
epwinchell Feb 29, 2024
e440108
include ITLess openshift urls to allowed auth origins
aneelac22 Mar 5, 2024
d18f505
update trustarc script for stage
ryelo Mar 5, 2024
1dc8084
update to use single quotes
ryelo Mar 5, 2024
2c83cea
Update Patternfly packages
aneelac22 Mar 5, 2024
b7a2b3e
Merge pull request #2783 from RedHatInsights/trustarc-script-update
aneelac22 Mar 5, 2024
7ad592e
fix feedback modal for VA on landing page
ryelo Mar 5, 2024
5e6f3aa
Merge branch 'master' into update-patternfly
fhlavac Mar 5, 2024
333ded8
Merge pull request #2786 from RedHatInsights/landing-feedback
aneelac22 Mar 5, 2024
474ba7e
Merge branch 'master' into title_bounce_fix
karelhala Mar 6, 2024
200b03b
Merge pull request #2779 from CodyWMitchell/title_bounce_fix
Hyperkid123 Mar 8, 2024
48d9e64
Merge branch 'master' into update-patternfly
Hyperkid123 Mar 8, 2024
fe1b65e
Merge branch 'master' into feature/ocm-api-url-addition
Hyperkid123 Mar 8, 2024
67bc20a
Merge pull request #2785 from aneelac22/update-patternfly
Hyperkid123 Mar 8, 2024
777f5ca
Merge branch 'master' into feature/ocm-api-url-addition
Hyperkid123 Mar 8, 2024
cf414cf
Merge pull request #2782 from aneelac22/feature/ocm-api-url-addition
Hyperkid123 Mar 8, 2024
276eb9c
Update sanitize-html to version 2.12.1
depfu[bot] Mar 8, 2024
9d43a0a
Bump quickstarts.
Hyperkid123 Mar 8, 2024
0af53f8
Merge branch 'master' into bump-quickstarts
Hyperkid123 Mar 8, 2024
8a6bbf1
Merge pull request #2781 from RedHatInsights/depfu/update/npm/sanitiz…
Hyperkid123 Mar 8, 2024
75a2241
Merge branch 'master' into bump-quickstarts
Hyperkid123 Mar 8, 2024
88b8107
Merge pull request #2787 from Hyperkid123/bump-quickstarts
Hyperkid123 Mar 8, 2024
7259310
Merge branch 'master' into notif_tweaks
Hyperkid123 Mar 8, 2024
d12d4ac
Merge pull request #2778 from epwinchell/notif_tweaks
Hyperkid123 Mar 8, 2024
93bda4a
My Favorite services widget
radekkaluzik Mar 11, 2024
056df02
Merge branch 'master' into RHCLOUD-31029
radekkaluzik Mar 13, 2024
6487a38
Merge pull request #2788 from radekkaluzik/RHCLOUD-31029
Hyperkid123 Mar 13, 2024
2d5c7fd
Clos other dropdowns when all services dropdown is opened.
Hyperkid123 Mar 15, 2024
1e97c71
Fix cypress runtime error.
Hyperkid123 Mar 18, 2024
a44e0d6
Merge pull request #2794 from Hyperkid123/fix-cypress-runtime-error
Hyperkid123 Mar 18, 2024
abacf25
Merge branch 'master' into dropdown-closing
Hyperkid123 Mar 18, 2024
85c4063
Merge pull request #2791 from Hyperkid123/dropdown-closing
Hyperkid123 Mar 18, 2024
6b8a0a4
Add env based SSO url to getEnvDetails chrome method.
Hyperkid123 Mar 20, 2024
308ce32
Update notification drawer empty state.
Hyperkid123 Mar 15, 2024
c616b05
Merge branch 'master' into drawer-empty-state
Hyperkid123 Mar 20, 2024
5c1b0ad
Merge pull request #2790 from Hyperkid123/drawer-empty-state
Hyperkid123 Mar 20, 2024
f6b507e
Merge branch 'master' into sso-url-env-details-dynamic
Hyperkid123 Mar 20, 2024
71cf36c
Merge pull request #2795 from Hyperkid123/sso-url-env-details-dynamic
BlakeHolifield Mar 20, 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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
rules: {
'react/prop-types': 'off',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true, args: 'after-used' }],
'@typescript-eslint/no-explicit-any': 'warn',
'no-restricted-imports': [
'error',
{
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Session.vim
coverage/
.nyc_output
cypress-coverage
.yalc
yalc.lock

# cypress diff snapshots
cypress/**/*.diff.png
Expand Down
2 changes: 2 additions & 0 deletions config/webpack.cy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ const JSConfig = {
{ 'react-dom': { singleton: true, eager: true } },
{ 'react-router-dom': { singleton: true } },
{ 'react-redux': {} },
{ '@openshift/dynamic-plugin-sdk': { singleton: true } },
{ '@patternfly/react-core': {} },
{ '@patternfly/quickstarts': { singleton: true } },
{ '@scalprum/core': { singleton: true } },
{ '@scalprum/react-core': { singleton: true } },
{ '@unleash/proxy-client-react': { singleton: true } },
],
Expand Down
1 change: 1 addition & 0 deletions config/webpack.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const plugins = (dev = false, beta = false, restricted = false) => {
exposes: {
'./DownloadButton': resolve(__dirname, '../src/pdf/DownloadButton.tsx'),
'./LandingNavFavorites': resolve(__dirname, '../src/components/FavoriteServices/LandingNavFavorites.tsx'),
'./DashboardFavorites': resolve(__dirname, '../src/components/FavoriteServices/DashboardFavorites.tsx'),
},
shared: [
{ react: { singleton: true, eager: true, requiredVersion: deps.react } },
Expand Down
6 changes: 6 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export default defineConfig({
E2E_USER: process.env.E2E_USER,
E2E_PASSWORD: process.env.E2E_PASSWORD,
},
// To avoid any flaky issues we set the timeouts to be extra gracious
// Slow tests are faster than rerunning flaky tests
defaultCommandTimeout: 60000,
requestTimeout: 60000,
// required for the redirects to work correctly due to a chromium issue
userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36',
screenshotOnRunFailure: false,
// required for the SSO redirect
chromeWebSecurity: false,
Expand Down
3 changes: 2 additions & 1 deletion cypress/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true, "args": "after-used" }]
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true, "args": "after-used" }],
"@typescript-eslint/no-explicit-any": "off"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,71 @@ describe('<AllServicesDropdown />', () => {
// Run the procedure again and check if the menu closed
checkMenuClosed();
});

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', [
{
id: 'testSection',
description: 'Test section description',
title: 'Test section',
icon: 'CloudUploadAltIcon',
links: [
{
title: 'Test Link',
href: '/test/link',
description: 'Test link description',
},
],
},
]);
cy.window().then((win) => {
(win as any).foo = {
init: () => undefined,
get: () => () => ({
default: () => <div>Foo</div>,
}),
};
});
const store = createStore(() => ({
chrome: {
moduleRoutes: [
{
path: '/test/link',
scope: 'foo',
module: 'bar',
},
],
},
}));
cy.viewport(320, 568);
cy.mount(
<ScalprumProvider
config={{
foo: {
name: 'foo',
manifestLocation: '/foo/bar.json',
},
}}
>
<Provider store={store}>
<BrowserRouter>
<IntlProvider locale="en">
<AllServicesDropdown />
</IntlProvider>
</BrowserRouter>
</Provider>
</ScalprumProvider>
);

// open the Services dropdown
cy.get('.pf-v5-c-menu-toggle__text').click();
// check that the services tabs are not expanded
cy.get('[data-ouia-component-id="all-services-tabs"]').should('not.have.class', 'pf-m-expanded');
// expand the services tabs
cy.contains('Favorites').click();
cy.get('[data-ouia-component-id="all-services-tabs"]').should('have.class', 'pf-m-expanded');
// check that the services tabs are not expanded after clicking on a section
cy.contains('Test section').click();
cy.get('[data-ouia-component-id="all-services-tabs"]').should('not.have.class', 'pf-m-expanded');
});
});
Loading
Loading