From bf8940eff5ace7ea31451243b322357433177559 Mon Sep 17 00:00:00 2001 From: tariqksoliman Date: Thu, 24 Apr 2025 18:04:34 -0700 Subject: [PATCH] #69 Update Atlas Navigation --- src/components/Toolbar/Toolbar.js | 66 ++++++++++++++----- .../InformationModal/InformationModal.js | 15 +++-- 2 files changed, 59 insertions(+), 22 deletions(-) diff --git a/src/components/Toolbar/Toolbar.js b/src/components/Toolbar/Toolbar.js index 63d946c..d2b6a2e 100644 --- a/src/components/Toolbar/Toolbar.js +++ b/src/components/Toolbar/Toolbar.js @@ -31,6 +31,7 @@ import InfoOutlinedIcon from '@material-ui/icons/InfoOutlined' import ImageSearchIcon from '@material-ui/icons/ImageSearch' import AccountTreeIcon from '@material-ui/icons/AccountTree' import ShoppingCartOutlinedIcon from '@material-ui/icons/ShoppingCartOutlined' +import OpenInNewIcon from '@material-ui/icons/OpenInNew' import { setModal, @@ -42,7 +43,7 @@ import { import { publicUrl, HASH_PATHS } from '../../core/constants' -const drawerWidth = 220 +const drawerWidth = 230 const useStyles = makeStyles((theme) => ({ Toolbar: { @@ -230,7 +231,7 @@ const useStyles = makeStyles((theme) => ({ const drawerItems = [ { name: 'Home', - path: '/', + path: 'https://pds-imaging.jpl.nasa.gov/', }, { name: 'Atlas', @@ -253,28 +254,44 @@ const drawerItems = [ showLength: true, }, { - name: 'News', - path: '/news', + name: 'Documentation', + path: '/documentation', + isAtlas: true, }, { - name: 'Missions', - path: '/missions', + name: 'Data', + isHeader: true, }, { - name: 'Tools', - path: '/tools', + name: 'Volumes', + path: 'https://pds-imaging.jpl.nasa.gov/volumes/', + isData: true, }, { - name: 'Documentation', - path: '/documentation', + name: 'Holdings', + path: 'https://pds-imaging.jpl.nasa.gov/holdings/', + isData: true, + }, + { + name: 'Portal', + path: 'https://pds-imaging.jpl.nasa.gov/portal/', + isData: true, + }, + { + name: 'PDS', + isHeader: true, }, { - name: 'Help', - path: '/help', + name: 'Home', + path: 'https://pds.nasa.gov/', + isPDS: true, + isExternal: true, }, { - name: 'About', - path: '/about', + name: 'Release Calendar', + path: 'https://pds.nasa.gov/datasearch/subscription-service/data-release-calendar.shtml', + isPDS: true, + isExternal: true, }, ] @@ -338,7 +355,7 @@ const Toolbar = (props) => { @@ -357,6 +374,7 @@ const Toolbar = (props) => { history.push(`${item.path}`) } }} + target="__blank" href={item.path} rel="noopener" > @@ -375,6 +393,24 @@ const Toolbar = (props) => { )} + {item.name === 'Documentation' && ( +
+ + + +
+ )} + {item.isExternal && ( +
+ +
+ )} {item.showLength && cartLength > 0 ? (
diff --git a/src/pages/Search/Modals/InformationModal/InformationModal.js b/src/pages/Search/Modals/InformationModal/InformationModal.js index a365854..e973240 100644 --- a/src/pages/Search/Modals/InformationModal/InformationModal.js +++ b/src/pages/Search/Modals/InformationModal/InformationModal.js @@ -107,10 +107,11 @@ const useStyles = makeStyles((theme) => ({ message: { margin: `${theme.spacing(4)}px 0px`, }, - feedback: { + aLink: { color: 'link', cursor: 'pointer', textDecoration: 'underline', + fontWeight: 'bold', }, metadata: { '& > p': { @@ -152,7 +153,7 @@ const InformationModal = (props) => { dispatch(setModal('feedback')) } - const newsPath = `${(publicUrl != null && publicUrl.length > 0 ? publicUrl : '') + '/news'}` + const newsPath = `https://pds-imaging.jpl.nasa.gov/` return ( { data products that have been collected from a variety NASA's planetary space missions. Through the use of these tools, users have access to petabytes of imaging data in one central location. This collection of - data is updated periodically and is reported on our{' '} - - news + data is updated periodically and is reported within the{' '} + + Latest News {' '} - page. + section of our home page.
If you have questions, want to share feedback, or need support,{' '}