Skip to content

Commit

Permalink
Merge branch 'develop' into renovate/redux-thunk-3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kaperoo committed Feb 23, 2024
2 parents 1a4309f + f3c08c0 commit a080722
Show file tree
Hide file tree
Showing 19 changed files with 6,074 additions and 6,021 deletions.
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

875 changes: 0 additions & 875 deletions .yarn/releases/yarn-3.7.0.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.7.0.cjs
yarnPath: .yarn/releases/yarn-4.1.0.cjs
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dependencies": {
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@mui/icons-material": "5.10.3",
"@mui/material": "5.10.0",
"@mui/icons-material": "5.15.10",
"@mui/material": "5.15.10",
"@types/history": "4.7.3",
"@types/jest": "29.5.2",
"@types/js-cookie": "3.0.1",
Expand All @@ -25,7 +25,7 @@
"cypress-failed-log": "2.10.0",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-cypress": "2.15.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-prettier": "5.1.3",
"express": "4.18.1",
"husky": "9.0.6",
"i18next": "23.8.2",
Expand All @@ -34,7 +34,7 @@
"js-cookie": "3.0.1",
"jsonwebtoken": "9.0.0",
"loglevel": "1.9.1",
"prettier": "2.8.0",
"prettier": "3.2.5",
"prop-types": "15.8.1",
"query-string": "7.1.1",
"react": "17.0.2",
Expand Down Expand Up @@ -117,7 +117,7 @@
"concurrently": "8.2.0",
"cors": "2.8.5",
"cross-env": "7.0.3",
"cypress": "12.17.1",
"cypress": "13.6.4",
"eslint": "8.56.0",
"eslint-config-react-app": "7.0.0",
"lint-staged": "15.2.0",
Expand All @@ -126,5 +126,5 @@
"start-server-and-test": "2.0.0",
"wait-on": "7.2.0"
},
"packageManager": "yarn@3.7.0"
"packageManager": "yarn@4.1.0"
}
37 changes: 20 additions & 17 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,27 @@ class App extends React.Component<WithTranslation> {
public componentDidMount(): void {
// Check for changes in maintenance state. Ensures that state changes are
// loaded when a user does not reload the site for longer than 5 minutes.
setInterval(() => {
const provider = getState().scigateway.authorisation.provider;
if (provider.fetchMaintenanceState) {
const storedMaintenanceState = getState().scigateway.maintenance;
provider.fetchMaintenanceState().then((fetchedMaintenanceState) => {
if (
storedMaintenanceState.show !== fetchedMaintenanceState.show ||
storedMaintenanceState.message !== fetchedMaintenanceState.message
) {
dispatch(loadMaintenanceState(fetchedMaintenanceState));
setInterval(
() => {
const provider = getState().scigateway.authorisation.provider;
if (provider.fetchMaintenanceState) {
const storedMaintenanceState = getState().scigateway.maintenance;
provider.fetchMaintenanceState().then((fetchedMaintenanceState) => {
if (
storedMaintenanceState.show !== fetchedMaintenanceState.show ||
storedMaintenanceState.message !== fetchedMaintenanceState.message
) {
dispatch(loadMaintenanceState(fetchedMaintenanceState));

// Reload the page if maintenance state changes from true to false
if (storedMaintenanceState.show && !fetchedMaintenanceState.show)
window.location.reload();
}
});
}
}, 1000 * 60 * 5);
// Reload the page if maintenance state changes from true to false
if (storedMaintenanceState.show && !fetchedMaintenanceState.show)
window.location.reload();
}
});
}
},
1000 * 60 * 5
);
}

public render(): React.ReactElement {
Expand Down
24 changes: 12 additions & 12 deletions src/__snapshots__/pageContainer.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
viewBox="0 0 24 24"
>
<path
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
d="M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
/>
</svg>
<span
Expand All @@ -71,7 +71,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
</button>
<button
aria-label="home-page"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium tour-title css-bj8lf8-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium tour-title css-bj8lf8-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Expand All @@ -91,7 +91,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="tour-user-profile"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1yxmrfv-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1yxmrfv-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Expand Down Expand Up @@ -120,7 +120,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
viewBox="0 0 24 24"
>
<path
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
/>
</svg>
<span
Expand Down Expand Up @@ -209,7 +209,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="MuiBox-root css-1yuhvjn"
>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-2ttl85-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-2ttl85-MuiButtonBase-root-MuiButton-root"
data-testid="browse-button"
href="/home-page.browse.link"
tabindex="0"
Expand Down Expand Up @@ -237,7 +237,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="MuiBox-root css-1onku40"
>
<div
class="MuiAvatar-root MuiAvatar-circular MuiAvatar-colorDefault css-1ukwqwi-MuiAvatar-root"
class="MuiAvatar-root MuiAvatar-circular MuiAvatar-colorDefault css-jftqyy-MuiAvatar-root"
>
<svg
aria-hidden="true"
Expand All @@ -247,7 +247,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
viewBox="0 0 24 24"
>
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
/>
</svg>
</div>
Expand All @@ -265,7 +265,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="MuiBox-root css-8xl60i"
>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-2ttl85-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-2ttl85-MuiButtonBase-root-MuiButton-root"
data-testid="search-button"
href="/home-page.search.link"
tabindex="0"
Expand All @@ -289,7 +289,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="MuiBox-root css-1onku40"
>
<div
class="MuiAvatar-root MuiAvatar-circular MuiAvatar-colorDefault css-1ukwqwi-MuiAvatar-root"
class="MuiAvatar-root MuiAvatar-circular MuiAvatar-colorDefault css-jftqyy-MuiAvatar-root"
>
<svg
aria-hidden="true"
Expand All @@ -299,7 +299,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
viewBox="0 0 24 24"
>
<path
d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
d="M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"
/>
</svg>
</div>
Expand All @@ -317,7 +317,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="MuiBox-root css-8xl60i"
>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-2ttl85-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-2ttl85-MuiButtonBase-root-MuiButton-root"
data-testid="download-button"
href="/home-page.download.link"
tabindex="0"
Expand Down Expand Up @@ -357,7 +357,7 @@ exports[`PageContainer - Tests renders correctly 1`] = `
class="MuiBox-root css-8xl60i"
>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1h8ppsl-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1h8ppsl-MuiButtonBase-root-MuiButton-root"
data-testid="facility-button"
href="home-page.facility.link"
tabindex="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ exports[`Accessibility page component should render correctly and display contac
>
<li>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="accessibility-page.domains-list0"
>
accessibility-page.domains-list0
</a>
</li>
<li>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="accessibility-page.domains-list1"
>
accessibility-page.domains-list1
Expand Down Expand Up @@ -73,7 +73,7 @@ exports[`Accessibility page component should render correctly and display contac
class="MuiTypography-root MuiTypography-body1 css-158lj4w-MuiTypography-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="accessibility-page.advice-on-how-to-make-device-more-accessible-link"
>
AbilityNet
Expand Down Expand Up @@ -123,7 +123,7 @@ exports[`Accessibility page component should render correctly and display contac
class="MuiTypography-root MuiTypography-body1 css-158lj4w-MuiTypography-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="mailto:accessibility-page.contact-info"
>
accessibility-page.contact-info
Expand All @@ -145,7 +145,7 @@ exports[`Accessibility page component should render correctly and display contac
>
The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). If you’re not happy with how we respond to your complaint,
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="accessibility-page.enforcement-procedure-link"
>
contact the Equality Advisory and Support Service (EASS)
Expand Down Expand Up @@ -175,7 +175,7 @@ exports[`Accessibility page component should render correctly and display contac
>
This website is partially compliant with the
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="accessibility-page.compliance-status-link"
>
Web Content Accessibility Guidelines version 2.1
Expand Down Expand Up @@ -270,7 +270,7 @@ exports[`Accessibility page component should render correctly and display contac
>
We have assessed the time it would take to resolve these issues with table view, and card view. We believe that doing so now would be a
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-17t6e9i-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-qwtsl2-MuiTypography-root-MuiLink-root"
href="accessibility-page.disproportionate-burden.link"
>
disproportionate burden
Expand Down
2 changes: 1 addition & 1 deletion src/adminPage/maintenancePage.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('maintenance page component', () => {
})
);
await user.click(
screen.getByRole('button', { name: 'admin.severity-select-arialabel' })
screen.getByRole('combobox', { name: 'admin.severity-select-arialabel' })
);
await user.click(screen.getByRole('option', { name: 'Information' }));
await user.click(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ exports[`Cookies page component should render correctly 1`] = `
</div>
</div>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-ekw1he-MuiButtonBase-root-MuiButton-root"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-ekw1he-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Expand Down
14 changes: 7 additions & 7 deletions src/footer/__snapshots__/footer.component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ exports[`Footer component footer renders correctly 1`] = `
style="text-align: left; font-weight: bold; font-size: 14px; text-indent: 16px; display: inline-block;"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="footer.links.facility"
>
Facility Home
</a>
|
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="footer.links.privacy-statement"
>
Privacy statement
</a>
|
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="footer.links.data-policy"
>
Data policy
</a>
|
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="/accessibility"
>
Accessibilty statement
</a>
|
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="footer.links.contact"
>
Contact
Expand All @@ -48,13 +48,13 @@ exports[`Footer component footer renders correctly 1`] = `
>
Built by the
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="https://www.scd.stfc.ac.uk/Pages/home.aspx"
>
Scientific Computing
</a>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-1szgdkc-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineHover css-bb0cn9-MuiTypography-root-MuiLink-root"
href="https://www.scd.stfc.ac.uk/Pages/Software-Engineering-Group.aspx"
>
Data and Software Engineering Group
Expand Down
Loading

0 comments on commit a080722

Please sign in to comment.