Skip to content

Commit

Permalink
Merge branch 'react-18-#1205' into migrate-to-vite-#1379
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Sep 17, 2024
2 parents 384f97b + 5f9dbde commit 5923c81
Show file tree
Hide file tree
Showing 9 changed files with 312 additions and 81 deletions.
11 changes: 11 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
changelog:
categories:
- title: Features
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependencies
labels:
- dependencies
10 changes: 6 additions & 4 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
branches:
- main
- develop
tags: '*'
tags:
- '*'

jobs:
build:
Expand Down Expand Up @@ -56,11 +57,12 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }}

- name: Create/update release
uses: johnwbyrd/update-release@1d5ec4791e40507e5eca3b4dbf90f0b27e7e4979 # v1.0.0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ./scigateway-${{ env.TAG_NAME }}.tar.gz
release: Release ${{ env.TAG_NAME }}
tag: ${{ env.TAG_NAME }}
name: ${{ env.TAG_NAME }}
tag_name: ${{ env.TAG_NAME }}
prerelease: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }}
draft: false
generate_release_notes: true
257 changes: 252 additions & 5 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerfile to build and serve scigateway

# Build stage
FROM node:20.14.0-alpine3.20@sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549 as builder
FROM node:20.17.0-alpine3.20@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 as builder

WORKDIR /scigateway-build

Expand All @@ -24,7 +24,7 @@ COPY docker/settings.json public/settings.json
RUN yarn build

# Run stage
FROM httpd:2.4.59-alpine3.20@sha256:554f25b8496f360a58febaaa5df9effb8e037cc1b70b27d40b7353a85e8edbf0
FROM httpd:2.4.62-alpine3.20@sha256:66c49302c02430619abb84240a438bcfc083015661009fcaaeaac931450f62cd

WORKDIR /usr/local/apache2/htdocs

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scigateway",
"version": "1.1.0",
"version": "2.0.0",
"type": "module",
"private": true,
"resolutions": {
Expand All @@ -22,7 +22,7 @@
"@types/react-router-dom": "5.3.3",
"@types/redux-logger": "3.0.8",
"@vitejs/plugin-react": "^4.2.1",
"axios": "1.6.1",
"axios": "1.7.4",
"browserslist": "^4.23.0",
"browserslist-to-esbuild": "^2.1.1",
"connected-react-router": "6.9.3",
Expand Down Expand Up @@ -95,7 +95,7 @@
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.5.2",
"@types/jsonwebtoken": "9.0.1",
"@types/node": "20.14.0",
"@types/node": "20.16.5",
"@types/react": "18.0.33",
"@types/react-redux": "7.1.20",
"@types/react-router": "5.1.20",
Expand Down
2 changes: 1 addition & 1 deletion public/res/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"help-page": {
"title": "Help",
"table-of-contents": "Table of contents",
"top-of-page-icon": "<a href=#scigateway>&#11014;</a>",
"top-of-page-icon": "<a href=#help-page>&#11014;</a>",
"contents": "<h2 id='logging-in'> Logging in</h2>When you first access DataGateway, you will be presented with a login page.<br><img width=\"270\" height=\"210\" src='/res/images/login.png'><br>You can login by entering your username and password provided by the <a href='http://www.diamond.ac.uk/Users/'>Diamond User Office</a>. Alternatively, to view only public data, select <strong>Anonymous</strong> from the <strong>Authentication Type</strong> drop down menu and click login.<br><br>Once you've successfully logged in, you will see a page with three tabs.<br><img width=\"299\" height=\"70\" src='/res/images/tabs.png'><h2 id='my-data'> My Data</h2>The <a href='#'>My Data</a> tab gives you quick access to all your visits and is presented in a grid.<br><img width=\"1001\" height=\"533\" src='/res/images/my-data-grid.png'><br><strong>Meta Data</strong><br>If you click on a row (make sure it is not a hyperlink), tabs will appear on the bottom half of the page. Each tab gives you more information about the visit.<h2 id='browse'> Browse</h2>The <a href='#'>Browse</a> tab allows you to browse your data and any public data.<br><br>The grid works the same as in the My Data tab. You can sort and filter as well as drill drown the data hierarchy using the hyperlinks on each row. You can use the breadcrumb to go up the hierarchy. The breadcrumb is a useful reference to tell you where you are in the data hierarchy.<br><img width=\"701\" height=\"63\" src='/res/images/breadcrumb.png'><br>If the first column of the grid is a tick box, you can click the box to add the item to your cart. Please note if you select a dataset, all datafiles belonging to that dataset will be selected. It is not possible for example to unselect one datafile if the parent visit is already selected. Similar to My Data, clicking on a row (not hyperlink) will display its meta data information in the panel at the bottom of the page.<h2 id='search'> Search</h2>The search tabs contains an interface the allows you search across all the visits, datasets and datafiles.<h2 id='cart'> The Cart</h2>On the very first column of each row on a grid (at the dataset or datafile level), you will see tick boxes.<br><img width=\"509\" height=\"95\" src='/res/images/tickbox.png'><br>Clicking this box will add or remove the selected visit to your cart. Multiple items can be added using the 'Shift' key.<br><br>You can use the Cart items counter on the top right corner to check if an item was added or removed.<br><img width=\"86\" height=\"40\" src='/res/images/cart-button.png'><br>Clicking on the above will open up the cart window:<br><img width=\"959\" height=\"464\" src='/res/images/cart.png'><br>Here you can remove already added items or request download of the items in the cart by clicking the <strong>Download Cart</strong> button. When the button is clicked, you will be presented with a window with several options.<br><img width=\"957\" height=\"451\" src='/res/images/cart-download.png'><br>The <strong>Download Name</strong> is a name that identifies your particular download. It is used as the filename when your download becomes ready.<br><br>The <strong>Access Method</strong> selection option determines whether you would like to download your files or whether you want them restored to another location.<br><br>You can optionally enter your email address. When your download is available, an email will be sent notifying you that your download is available.<br>Clicking the <strong>OK</strong> button on the window will submit your download request to be processed. You should see a <strong>Cart successfully submitted</strong> notification popup on the right corner. The request will be added inside the downloads window.<h2 id='download'> Download</h2>Clicking on the above will open up the downloads window:<br><img width=\"267\" height=\"69\" src='/res/images/downloads-button.png'><br>The Downloads window is a grid that list all your download requests.<br><img width=\"954\" height=\"448\" src='/res/images/downloads.png'><br>The <strong>Status</strong> column gives you the current status of your download. Possible values are <strong>Restoring from Tape</strong> and <strong>Available</strong>. The <strong>Download</strong> button is disabled when the status is restoring. Once available, you can click the download button to download the file via the browser if <strong>Https</strong> transport type was used for that request.<br><br>Please note that download pausing and resuming is not supported. Multi-part download managers are also not supported.<br><br>For downloads using Globus as the transport type, when the status is complete, you can login to <a href='https://www.globus.org/SignIn'>Globus Online</a> and initiate file transfer to your endpoint."
},
"admin": {
Expand Down
2 changes: 2 additions & 0 deletions src/helpPage/__snapshots__/helpPage.component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`Help page component > should back to top elements next to each header 1
<DocumentFragment>
<div
class="css-18rbhl5"
id="help-page"
>
<h3
class="MuiTypography-root MuiTypography-h3 css-nxx1w0-MuiTypography-root"
Expand Down Expand Up @@ -134,6 +135,7 @@ exports[`Help page component > should render correctly 1`] = `
<DocumentFragment>
<div
class="css-18rbhl5"
id="help-page"
>
<h3
class="MuiTypography-root MuiTypography-h3 css-nxx1w0-MuiTypography-root"
Expand Down
2 changes: 1 addition & 1 deletion src/helpPage/helpPage.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const HelpPage = (props: CombinedHelpPageProps): React.ReactElement => {
useAnchor();

return (
<RootDiv>
<RootDiv id="help-page">
<Typography
variant="h3"
sx={{ fontWeight: 'bold', color: 'secondary.main' }}
Expand Down
99 changes: 34 additions & 65 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1142,18 +1142,7 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/gen-mapping@npm:^0.3.2":
version: 0.3.2
resolution: "@jridgewell/gen-mapping@npm:0.3.2"
dependencies:
"@jridgewell/set-array": "npm:^1.0.1"
"@jridgewell/sourcemap-codec": "npm:^1.4.10"
"@jridgewell/trace-mapping": "npm:^0.3.9"
checksum: 10/7ba0070be1aeda7d7694b09d847c3b95879409b26559b9d7e97a88ec94b838fb380df43ae328ee2d2df4d79e75d7afe6ba315199d18d79aa20839ebdfb739420
languageName: node
linkType: hard

"@jridgewell/gen-mapping@npm:^0.3.5":
"@jridgewell/gen-mapping@npm:^0.3.2, @jridgewell/gen-mapping@npm:^0.3.5":
version: 0.3.5
resolution: "@jridgewell/gen-mapping@npm:0.3.5"
dependencies:
Expand All @@ -1171,13 +1160,6 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/set-array@npm:^1.0.1":
version: 1.1.2
resolution: "@jridgewell/set-array@npm:1.1.2"
checksum: 10/69a84d5980385f396ff60a175f7177af0b8da4ddb81824cb7016a9ef914eee9806c72b6b65942003c63f7983d4f39a5c6c27185bbca88eb4690b62075602e28e
languageName: node
linkType: hard

"@jridgewell/set-array@npm:^1.2.1":
version: 1.2.1
resolution: "@jridgewell/set-array@npm:1.2.1"
Expand All @@ -1199,7 +1181,7 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.9":
"@jridgewell/trace-mapping@npm:^0.3.17":
version: 0.3.20
resolution: "@jridgewell/trace-mapping@npm:0.3.20"
dependencies:
Expand Down Expand Up @@ -1912,21 +1894,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*":
version: 20.11.5
resolution: "@types/node@npm:20.11.5"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/9f31c471047d7b3e240ce7b77ff29b0d15e83be7e3feafb3d0b0d0931122b438b1eefa302a5a2e1e9849914ff3fd76aafbd8ccb372efb1331ba048da63bce6f8
languageName: node
linkType: hard

"@types/node@npm:20.14.0":
version: 20.14.0
resolution: "@types/node@npm:20.14.0"
"@types/node@npm:*, @types/node@npm:20.16.5":
version: 20.16.5
resolution: "@types/node@npm:20.16.5"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/49b332fbf8aee4dc4f61cc1f1f6e130632510f795dd7b274e55894516feaf4bec8a3d13ea764e2443e340a64ce9bbeb006d14513bf6ccdd4f21161eccc7f311e
undici-types: "npm:~6.19.2"
checksum: 10/39a8457149dc17cdea57afc90d4da53182fdb8b958d5bb065a15d123d81d4efa6b51a0de92428d05ead2e63ce07195586f71083401b99cdbcd04662344fbf7a1
languageName: node
linkType: hard

Expand Down Expand Up @@ -2854,14 +2827,14 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:1.6.1":
version: 1.6.1
resolution: "axios@npm:1.6.1"
"axios@npm:1.7.4":
version: 1.7.4
resolution: "axios@npm:1.7.4"
dependencies:
follow-redirects: "npm:^1.15.0"
follow-redirects: "npm:^1.15.6"
form-data: "npm:^4.0.0"
proxy-from-env: "npm:^1.1.0"
checksum: 10/fb091af3ad47d70fdcba5e71654b9e3c56947d93d8b2375dd0b4db63de9982adab6235aebc514488aa289c7faf103b09e8911280e6f6b1112d1604fe5f111f71
checksum: 10/7a1429be1e3d0c2e1b96d4bba4d113efbfabc7c724bed107beb535c782c7bea447ff634886b0c7c43395a264d085450d009eb1154b5f38a8bae49d469fdcbc61
languageName: node
linkType: hard

Expand Down Expand Up @@ -3525,14 +3498,7 @@ __metadata:
languageName: node
linkType: hard

"content-type@npm:~1.0.4":
version: 1.0.4
resolution: "content-type@npm:1.0.4"
checksum: 10/5ea85c5293475c0cdf2f84e2c71f0519ced565840fb8cbda35997cb67cc45b879d5b9dbd37760c4041ca7415a3687f8a5f2f87b556b2aaefa49c0f3436a346d4
languageName: node
linkType: hard

"content-type@npm:~1.0.5":
"content-type@npm:~1.0.4, content-type@npm:~1.0.5":
version: 1.0.5
resolution: "content-type@npm:1.0.5"
checksum: 10/585847d98dc7fb8035c02ae2cb76c7a9bd7b25f84c447e5ed55c45c2175e83617c8813871b4ee22f368126af6b2b167df655829007b21aa10302873ea9c62662
Expand Down Expand Up @@ -4499,9 +4465,9 @@ __metadata:
linkType: hard

"escalade@npm:^3.1.1":
version: 3.1.1
resolution: "escalade@npm:3.1.1"
checksum: 10/afa618e73362576b63f6ca83c975456621095a1ed42ff068174e3f5cea48afc422814dda548c96e6ebb5333e7265140c7292abcc81bbd6ccb1757d50d3a4e182
version: 3.2.0
resolution: "escalade@npm:3.2.0"
checksum: 10/9d7169e3965b2f9ae46971afa392f6e5a25545ea30f2e2dd99c9b0a95a3f52b5653681a84f5b2911a413ddad2d7a93d3514165072f349b5ffc59c75a899970d6
languageName: node
linkType: hard

Expand Down Expand Up @@ -5108,7 +5074,7 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.14.9, follow-redirects@npm:^1.15.0, follow-redirects@npm:^1.15.4":
"follow-redirects@npm:^1.14.9, follow-redirects@npm:^1.15.4":
version: 1.15.5
resolution: "follow-redirects@npm:1.15.5"
peerDependenciesMeta:
Expand All @@ -5118,6 +5084,16 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.6":
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
peerDependenciesMeta:
debug:
optional: true
checksum: 10/70c7612c4cab18e546e36b991bbf8009a1a41cf85354afe04b113d1117569abf760269409cb3eb842d9f7b03d62826687086b081c566ea7b1e6613cf29030bf7
languageName: node
linkType: hard

"for-each@npm:^0.3.3":
version: 0.3.3
resolution: "for-each@npm:0.3.3"
Expand Down Expand Up @@ -7770,14 +7746,7 @@ __metadata:
languageName: node
linkType: hard

"picocolors@npm:^1.0.0":
version: 1.0.0
resolution: "picocolors@npm:1.0.0"
checksum: 10/a2e8092dd86c8396bdba9f2b5481032848525b3dc295ce9b57896f931e63fc16f79805144321f72976383fc249584672a75cc18d6777c6b757603f372f745981
languageName: node
linkType: hard

"picocolors@npm:^1.0.1":
"picocolors@npm:^1.0.0, picocolors@npm:^1.0.1":
version: 1.0.1
resolution: "picocolors@npm:1.0.1"
checksum: 10/fa68166d1f56009fc02a34cdfd112b0dd3cf1ef57667ac57281f714065558c01828cdf4f18600ad6851cbe0093952ed0660b1e0156bddf2184b6aaf5817553a5
Expand Down Expand Up @@ -8813,7 +8782,7 @@ __metadata:
"@types/jest": "npm:29.5.2"
"@types/js-cookie": "npm:3.0.1"
"@types/jsonwebtoken": "npm:9.0.1"
"@types/node": "npm:20.14.0"
"@types/node": "npm:20.16.5"
"@types/react": "npm:18.0.33"
"@types/react-dom": "npm:18.0.11"
"@types/react-redux": "npm:7.1.20"
Expand All @@ -8826,7 +8795,7 @@ __metadata:
"@typescript-eslint/parser": "npm:7.0.2"
"@vitejs/plugin-react": "npm:^4.2.1"
"@vitest/coverage-v8": "npm:2.0.5"
axios: "npm:1.6.1"
axios: "npm:1.7.4"
axios-mock-adapter: "npm:1.22.0"
browserslist: "npm:^4.23.0"
browserslist-to-esbuild: "npm:^2.1.1"
Expand Down Expand Up @@ -9914,10 +9883,10 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
checksum: 10/0097779d94bc0fd26f0418b3a05472410408877279141ded2bd449167be1aed7ea5b76f756562cb3586a07f251b90799bab22d9019ceba49c037c76445f7cddd
"undici-types@npm:~6.19.2":
version: 6.19.8
resolution: "undici-types@npm:6.19.8"
checksum: 10/cf0b48ed4fc99baf56584afa91aaffa5010c268b8842f62e02f752df209e3dea138b372a60a963b3b2576ed932f32329ce7ddb9cb5f27a6c83040d8cd74b7a70
languageName: node
linkType: hard

Expand Down

0 comments on commit 5923c81

Please sign in to comment.