- Download the data sources used in the CEJST (.csv, .xlxs,
-
- .pdf
-
- that describes how to use the list, and a
-
- codebook
-
- , 53MB unzipped), the shapefile, along with a
-
- codebook
-
- (.zip, 742MB unzipped) or the technical support document (.pdf, 2.5MB unzipped).
-
- );
-};
+import HowYouCanHelp from './HowYouCanHelp';
export default HowYouCanHelp;
diff --git a/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap b/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap
index d40c188f..e94d6bb3 100644
--- a/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap
+++ b/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap
@@ -30,17 +30,7 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
.
- Respond to our Request for Information on
-
- federalregister.gov
-
- .
+ The Request for Information on the Federal Register is now closed.
diff --git a/client/src/components/J40Header/J40Header.tsx b/client/src/components/J40Header/J40Header.tsx
index 011e127b..e8a87b66 100644
--- a/client/src/components/J40Header/J40Header.tsx
+++ b/client/src/components/J40Header/J40Header.tsx
@@ -5,14 +5,14 @@ import {
NavMenuButton,
PrimaryNav,
Grid,
- Alert,
- // NavDropDownButton,
- // Menu,
+ NavDropDownButton,
+ Menu,
} from '@trussworks/react-uswds';
import BetaBanner from '../BetaBanner';
import J40MainGridContainer from '../J40MainGridContainer';
import GovernmentBanner from '../GovernmentBanner';
import Language from '../Language';
+import {useWindowSize} from 'react-use';
// @ts-ignore
import siteLogo from '../../images/j40-logo-v2.png';
@@ -20,73 +20,79 @@ import * as styles from './J40Header.module.scss';
import * as COMMON_COPY from '../../data/copy/common';
import {PAGES_ENDPOINTS} from '../../data/constants';
+/**
+ * The J40Header component will control how the header looks for both mobile and desktop
+ *
+ * The Header is defined as
+ * 1. Two rows of Banners (ie, official gov website and beta site)
+ * 2. Logo and Nav Links Row
+ * 3. Any Alerts
+ *
+ * @return {JSX.Element}
+ */
const J40Header = () => {
const intl = useIntl();
+ const {width} = useWindowSize();
- const titleL1 = intl.formatMessage(COMMON_COPY.HEADER.TITLE_LINE_1);
- const titleL2 = intl.formatMessage(COMMON_COPY.HEADER.TITLE_LINE_2);
+ // Logo text
+ const logoLine1 = intl.formatMessage(COMMON_COPY.HEADER.TITLE_LINE_1);
+ const logoLine2 = intl.formatMessage(COMMON_COPY.HEADER.TITLE_LINE_2);
/**
- * State variable to control the mobile menu toggle
+ * State variable to control the toggling of mobile menu button
*/
const [mobileNavOpen, setMobileNavOpen] = useState(false);
const toggleMobileNav = (): void =>
setMobileNavOpen((prevOpen) => !prevOpen);
+ /**
+ * State variable to hold the open/close state of each nav dropdown. This will allow for two
+ * dropdown that are being used, each corresponding to an index in the state array:
+ *
+ * index 0 = Data & Methodology dropdown (being used)
+ * index 1 = About dropdown (removed for now)
+ */
+ const [isOpen, setIsOpen] = useState([true]);
+ const onToggle = (index: number): void => {
+ setIsOpen((prevIsOpen) => {
+ const newIsOpen = [true];
+ newIsOpen[index] = !prevIsOpen[index];
+ return newIsOpen;
+ });
+ };
/**
- * The original work of this release called for creating a download page, a FAQ page and TSD page. These
- * were to be embedded in dropdown menus in the navigation bar of the header. These were all completed.
- * After discovering that the dropdown component from USWDS was not operating as expected, we decided to
- * revert to another design.
- *
- * It was also decided that some more design was needed and that these pages along with their designs will
- * be used in the near future. Rather than deleted the code or moving it to another branch, the assumption
- * was made that since this will be added back in the near term, let's comment it out for now.
- *
- * If for some reason we haven't integrated this logic in the near future, this code will be deleted.
+ * On mobile, the Methodology & Data page should have two sub-nav links. This defines
+ * the array that will hold these links
*/
+ const methPageSubNavLinks = [
+
+ {intl.formatMessage(COMMON_COPY.HEADER.METHODOLOGY)}
+ ,
+
+ {intl.formatMessage(COMMON_COPY.HEADER.DOWNLOADS)}
+ ,
+ //
+ // {intl.formatMessage(COMMON_COPY.HEADER.TSD)}
+ // ,
+ ];
/**
- * State variable to hold the open/close state of each nav dropdown. There are currently two
- * dropdowns that are being used, each corresponding to an index in the state array:
- *
- * index 0 = Data & Methodology dropdown
- * index 1 = About dropdown
+ * In the future, we may want to add sub-pages to the About page. This array will
+ * define the sub-pages for the About page.
*/
- // const [isOpen, setIsOpen] = useState([false, false]);
- // const onToggle = (index: number): void => {
- // setIsOpen((prevIsOpen) => {
- // const newIsOpen = [false, false];
- // newIsOpen[index] = !prevIsOpen[index];
- // return newIsOpen;
- // });
- // };
-
- // const methPageSubNavLinks = [
- //
- // {intl.formatMessage(COMMON_COPY.HEADER.METHODOLOGY)}
- // ,
- //
- // {intl.formatMessage(COMMON_COPY.HEADER.DOWNLOADS)}
- // ,
- //
- // {intl.formatMessage(COMMON_COPY.HEADER.TSD)}
- // ,
- // ];
-
// const aboutSubNavLinks = [
// {
// ,
// ];
+
+ /**
+ * This is the array that holds the navigation links and eventually is the one
+ * that is passed to the render function. It only defines Explore, About and
+ * Contact.
+ *
+ * The Methodology & Data link is passed in depending on screen size.
+ *
+ * For mobile: the Methodology & Data link should have sub-pages
+ * For desktop: the Methodology & Data link should NOT have sub-pages
+ */
const navLinks = [
{
data-cy={'nav-link-explore-the-map'}>
{intl.formatMessage(COMMON_COPY.HEADER.EXPLORE)}
,
-
- {intl.formatMessage(COMMON_COPY.HEADER.METHODOLOGY)}
- ,
{
data-cy={'nav-link-about'}>
{intl.formatMessage(COMMON_COPY.HEADER.ABOUT)}
,
- // <>
- // onToggle(0)}
- // data-cy={'nav-dropdown-methodology'}
- // className={styles.navDropDownBtn}
- // >
- //
- //
- // >,
- // <>
- // onToggle(1)}
- // data-cy={'nav-dropdown-about'}
- // >
- //
- //
- // >,
{
,
];
+ // For mobile: the Methodology & Data link should have sub-pages
+ const MethPageNavWithSubPages = () =>
+ <>
+ onToggle(0)}
+ data-cy={'nav-dropdown-methodology'}
+ >
+
+
+ >;
+
+ // For desktop: the Methodology & Data link should NOT have sub-pages
+ const MethPageNav = () =>
+
+ {intl.formatMessage(COMMON_COPY.HEADER.METHODOLOGY)}
+ ;
+
+ // Modify navLinks to choose the appropriate Methodology & Data nav link depending on screen size
+ navLinks.splice(1, 0, width > 1024 ? : );
+
return (
@@ -196,15 +203,15 @@ const J40Header = () => {
{/* Logo */}
-
+
{/* Logo Title */}
diff --git a/client/src/components/SubPageNav/SubPageNav.module.scss b/client/src/components/SubPageNav/SubPageNav.module.scss
new file mode 100644
index 00000000..e69de29b
diff --git a/client/src/components/SubPageNav/SubPageNav.module.scss.d.ts b/client/src/components/SubPageNav/SubPageNav.module.scss.d.ts
new file mode 100644
index 00000000..e69de29b
diff --git a/client/src/components/SubPageNav/SubPageNav.test.tsx b/client/src/components/SubPageNav/SubPageNav.test.tsx
new file mode 100644
index 00000000..48e52516
--- /dev/null
+++ b/client/src/components/SubPageNav/SubPageNav.test.tsx
@@ -0,0 +1,35 @@
+import * as React from 'react';
+import {render} from '@testing-library/react';
+import {LocalizedComponent} from '../../test/testHelpers';
+import SubPageNav from './SubPageNav';
+
+describe('rendering of the SubPageNav', () => {
+ const firstLinkActive = 1;
+ const secondLinkIndex = 2;
+
+ it('checks if the first link is active', () => {
+ const {container} = render(
+
+
+ ,
+ );
+
+ const firstLink = container.querySelector(`.usa-sidenav li:nth-child(${firstLinkActive}) a`);
+ const secondLink = container.querySelector(`.usa-sidenav li:nth-child(${secondLinkIndex}) a`);
+ expect(firstLink?.className).toBe('usa-current');
+ expect(secondLink?.className).not.toBe('usa-current');
+ });
+
+ it('checks if the second link is active', () => {
+ const {container} = render(
+
+
+ ,
+ );
+
+ const firstLink = container.querySelector(`.usa-sidenav li:nth-child(${firstLinkActive}) a`);
+ const secondLink = container.querySelector(`.usa-sidenav li:nth-child(${secondLinkIndex}) a`);
+ expect(secondLink?.className).toBe('usa-current');
+ expect(firstLink?.className).not.toBe('usa-current');
+ });
+});
diff --git a/client/src/components/SubPageNav/SubPageNav.tsx b/client/src/components/SubPageNav/SubPageNav.tsx
new file mode 100644
index 00000000..3f79401c
--- /dev/null
+++ b/client/src/components/SubPageNav/SubPageNav.tsx
@@ -0,0 +1,39 @@
+import React from 'react';
+import {SideNav} from '@trussworks/react-uswds';
+import {useIntl} from 'gatsby-plugin-intl';
+
+import LinkTypeWrapper from '../LinkTypeWrapper';
+import {PAGES_ENDPOINTS} from '../../data/constants';
+import * as COMMON_COPY from '../../data/copy/common';
+
+// This prop is used to set which sub-page navigation is active
+interface ISubPageNav {
+ activeSubPageIndex?: number;
+}
+
+const SubPageNav = ({activeSubPageIndex}:ISubPageNav) => {
+ const intl = useIntl();
+
+ const subPages = [
+ ,
+ ,
+ ];
+
+ return (
+
+ );
+};
+
+export default SubPageNav;
diff --git a/client/src/components/SubPageNav/index.tsx b/client/src/components/SubPageNav/index.tsx
new file mode 100644
index 00000000..27d560f7
--- /dev/null
+++ b/client/src/components/SubPageNav/index.tsx
@@ -0,0 +1,3 @@
+import SubPageNav from './SubPageNav';
+
+export default SubPageNav;
diff --git a/client/src/data/copy/common.tsx b/client/src/data/copy/common.tsx
index 48b8703f..0e28b248 100644
--- a/client/src/data/copy/common.tsx
+++ b/client/src/data/copy/common.tsx
@@ -4,6 +4,7 @@ import React from 'react';
import {FormattedDate, FormattedMessage} from 'gatsby-plugin-intl';
import {defineMessages} from 'react-intl';
import LinkTypeWrapper from '../../components/LinkTypeWrapper';
+import DownloadLink from '../../components/DownloadLink';
export interface IDefineMessage {
id: string,
@@ -20,6 +21,8 @@ export interface IDefineMessage {
export const italicFn = (str:string) => {str};
export const boldFn = (str:string) => {str};
export const simpleLink = (href:string) => (str:string) => {str};
+// export const downloadLink = (href:string) => (str:string) => {str};
+export const downloadLink = (href:string) => (str:string) => ;
// eslint-disable-next-line max-len
export const linkFn = (to:string | IDefineMessage, isInternal:boolean, isOpenNewTab:boolean) => (str:string) => ;
@@ -51,7 +54,7 @@ export const TSD = defineMessages({
// Alerts
// Expiration month is zero-based: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth
-const ALERT_1_EXPIRATION_DATE= new Date(2022, 4, 25, 11, 59, 59); // May 25
+export const RFI_EXPIRATION_DATE= new Date(2022, 4, 25, 11, 59, 59); // May 25
export const ALERTS = {
ALERT_1_TITLE: defineMessages({
TITLE: {
@@ -60,7 +63,7 @@ export const ALERTS = {
description: 'Alert title that appears on landing page.',
},
}),
- EXPIRATION_DATE: ALERT_1_EXPIRATION_DATE,
+ EXPIRATION_DATE: RFI_EXPIRATION_DATE,
ALERT_1_DESCRIPTION: sending feedback via the Request for Information has been extended to {expDate1}.`}
@@ -68,7 +71,7 @@ export const ALERTS = {
values={{
link1: linkFn('https://www.federalregister.gov/documents/2022/04/25/2022-08774/climate-and-economic-justice-screening-tool-beta-version', false, true),
expDate1: federalregister.gov.`}
+ defaultMessage={`The Request for Information on the Federal Register for the public beta period closed on {rfiExpDate}`}
description={'Navigate to the contact page, this is the body of the request for information box'}
values={{
- link1: COMMON_COPY.linkFn(FOOTER.RFI_LINK.defaultMessage, false, true),
+ rfiExpDate: ,
}}
/>;
diff --git a/client/src/data/copy/downloads.tsx b/client/src/data/copy/downloads.tsx
index aef40cbe..d17934d4 100644
--- a/client/src/data/copy/downloads.tsx
+++ b/client/src/data/copy/downloads.tsx
@@ -2,7 +2,7 @@
import React from 'react';
import {defineMessages} from 'react-intl';
import {FormattedMessage, FormattedNumber} from 'gatsby-plugin-intl';
-import {simpleLink} from './common';
+import * as COMMON_COPY from './common';
export const PAGE_INTRO = defineMessages({
PAGE_TILE: {
@@ -27,53 +27,129 @@ export const PAGE_INTRO = defineMessages({
},
});
-export const DOWNLOAD_LINKS = {
- EXCEL: Excel file (.xlxs {excelFileSize} unzipped)
- `}
- description={'On the downloads page, the description of the excel link'}
- values={{
- link1: (str:string) => {str},
- excelFileSize: ,
- }}
- />,
- CSV: CSV file (.csv {csvFileSize} unzipped)
- `}
- description={'On the downloads page, the description of the csv link'}
- values={{
- link1: simpleLink('/csv'),
- csvFileSize: ,
- }}
- />,
- SHAPE: Shapefiles (Codebook included with geojson {shapeFileSize} unzipped)
- `}
- description={'On the downloads page, the description of the shapefiles link'}
- values={{
- link1: simpleLink('/shape'),
- shapeFileSize: ,
- }}
- />,
+const getDownloadFileUrl = (filePath:string | undefined) => {
+ return [
+ process.env.GATSBY_CDN_TILES_BASE_URL,
+ process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
+ filePath,
+ ].join('/');
+};
+
+// Define meta data on dowload files
+export const DOWNLOAD_FILES = {
+ SCREENING_TOOL_DATA_ZIP: {
+ SIZE: 53.7, // MB
+ URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_SCREENING_TOOL_DATA_ZIP),
+ LAST_UPDATED: new Date('5/4/2022').getTime(),
+ },
+ COMMUNITIES_LIST_CSV: {
+ SIZE: 28.1, // MB
+ URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_COMMUNITIES_LIST_CSV),
+ LAST_UPDATED: new Date('5/4/2022').getTime(),
+ },
+ COMMUNITIES_LIST_XLS: {
+ SIZE: 24.9, // MB
+ URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_COMMUNITIES_LIST_XLS),
+ LAST_UPDATED: new Date('5/4/2022').getTime(),
+ },
+ SHAPE_FILE: {
+ SIZE: 741, // MB
+ URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_SHAPE_FILE_ZIP),
+ LAST_UPDATED: new Date('5/4/2022').getTime(),
+ },
+ TSD: {
+ SIZE: 2.5, // MB
+ URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_TSD_PDF),
+ LAST_UPDATED: new Date('5/4/2022').getTime(),
+ },
+ HOW_TO_COMMUNITIES: {
+ SIZE: 674, // KB
+ URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF),
+ LAST_UPDATED: new Date('5/4/2022').getTime(),
+ },
+};
+
+// If this is not a function, it will cause a circular dependency
+export const getDownloadIconAltTag = () => defineMessages({
+ ALT_TAG: {
+ id: 'downloads.page.download.icon.alt.tag',
+ defaultMessage: 'The icon used to indicate that the file is downloadable',
+ description: 'Navigate to the Downloads page, this is the icon used to indicate that the file is downloadable',
+ },
+});
+
+export const DOWNLOAD_LINKS = {
+ LINK1: Communities list data (.xlsx {cldXlsFileSize})
+ `}
+ description={'Navigate to the download page. This is first download file link'}
+ values={{
+ link1: COMMON_COPY.downloadLink(DOWNLOAD_FILES.COMMUNITIES_LIST_XLS.URL),
+ cldXlsFileSize: ,
+ }}
+ />,
+ LINK2: Communities list data (.csv {cldCsvFileSize})`}
+ description={'Navigate to the download page. This is second download file link'}
+ values={{
+ link2: COMMON_COPY.downloadLink(DOWNLOAD_FILES.COMMUNITIES_LIST_CSV.URL),
+ cldCsvFileSize: ,
+ }}
+ />,
+ LINK3: Shapefile (Codebook included with geojson {shapeFileSize} unzipped)`}
+ description={'Navigate to the download page. This is third download file link'}
+ values={{
+ link3: COMMON_COPY.downloadLink(DOWNLOAD_FILES.SHAPE_FILE.URL),
+ shapeFileSize: ,
+ }}
+ />,
+ LINK4: Technical support document (.pdf {tsdFileSize})`}
+ description={'Navigate to the download page. This is fourth download file link'}
+ values={{
+ link4: COMMON_COPY.linkFn(DOWNLOAD_FILES.TSD.URL, false, true),
+ tsdFileSize: ,
+ }}
+ />,
+ LINK5: How to use the list of communities (.pdf {howToCommFileSize})`}
+ description={'Navigate to the download page. This is fifth download file link'}
+ values={{
+ link5: COMMON_COPY.linkFn(DOWNLOAD_FILES.HOW_TO_COMMUNITIES.URL, false, true),
+ howToCommFileSize: ,
+ }}
+ />,
+ // };
};
diff --git a/client/src/data/copy/explore.tsx b/client/src/data/copy/explore.tsx
index 61238dcf..150718a7 100644
--- a/client/src/data/copy/explore.tsx
+++ b/client/src/data/copy/explore.tsx
@@ -5,8 +5,8 @@ import {defineMessages} from 'react-intl';
import {FormattedDate, FormattedMessage, FormattedNumber} from 'gatsby-plugin-intl';
import * as COMMON_COPY from './common';
+import * as DOWNLOADS_COPY from './downloads';
import * as METHODOLOGY_COPY from './methodology';
-import {simpleLink, linkFn} from './common';
import {PAGES_ENDPOINTS} from '../constants';
export const PAGE_INTRO = defineMessages({
@@ -32,7 +32,7 @@ export const PAGE_DESCRIPTION = ;
@@ -777,15 +777,15 @@ export const DOWNLOAD_DRAFT = {
map that will download the data packet
`}
values={{
- link1: simpleLink(METHODOLOGY_COPY.DOWNLOAD_ZIP_URL),
+ link1: COMMON_COPY.downloadLink(DOWNLOADS_COPY.DOWNLOAD_FILES.SHAPE_FILE.URL),
downloadFileSize: ,
dateUpdated: ,
PARA_2: ,
};
@@ -884,7 +884,7 @@ export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
`}
defaultMessage={`View the Methodology & data page and send feedback.`}
values={{
- link1: linkFn(PAGES_ENDPOINTS.METHODOLOGY, true, false),
+ link1: COMMON_COPY.linkFn(PAGES_ENDPOINTS.METHODOLOGY, true, false),
}}
/>,
LIST_ITEM_2: share your feedback.`}
values={{
- link1: linkFn(`mailto:${COMMON_COPY.FEEDBACK_EMAIL}`, false, true),
+ link1: COMMON_COPY.linkFn(`mailto:${COMMON_COPY.FEEDBACK_EMAIL}`, false, true),
}}
/>,
LIST_ITEM_3: federalregister.gov.`}
- values={{
- link1: linkFn(`https://www.federalregister.gov/d/2022-03920`, false, true),
- }}
+ description={`Navigate to the explore the map page. Under the map, you will see RFI is expired`}
+ defaultMessage={`The Request for Information on the Federal Register is now closed.`}
/>,
};
diff --git a/client/src/data/copy/methodology.tsx b/client/src/data/copy/methodology.tsx
index 66a14484..dcdf505d 100644
--- a/client/src/data/copy/methodology.tsx
+++ b/client/src/data/copy/methodology.tsx
@@ -1,9 +1,10 @@
/* eslint-disable max-len */
import React from 'react';
import {defineMessages} from 'react-intl';
-import {FormattedDate, FormattedMessage, FormattedNumber} from 'gatsby-plugin-intl';
+import {FormattedMessage} from 'gatsby-plugin-intl';
import {boldFn, linkFn, simpleLink} from './common';
-import * as styles from '../../components/DownloadPacket/downloadPacket.module.scss';
+
+export const VERSION_NUMBER = 0.1;
export const PAGE = defineMessages({
TILE: {
@@ -40,7 +41,6 @@ export const PAGE = defineMessages({
});
-
export const FORMULA = {
INTRO: ,
};
-// Download Package
-export const DOWNLOAD_FILE_SIZE = 53;
-export const DOWNLOAD_SHAPE_FILE_SIZE = 742;
-export const DOWNLOAD_TSD_FILE_SIZE = 2.5;
-export const DOWNLOAD_ZIP_LAST_UPDATED = new Date('5/4/2022').getTime();
-export const DOWNLOAD_SHAPE_LAST_UPDATED = new Date('4/26/2022').getTime();
-export const DOWNLOAD_TSD_LAST_UPDATED = new Date('4/19/2022').getTime();
-export const VERSION_NUMBER = 0.1;
-
-export const DOWNLOAD_ZIP_URL = [
- process.env.GATSBY_CDN_TILES_BASE_URL,
- process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
- process.env.GATSBY_SCORE_DOWNLOAD_FILE_PATH,
-].join('/');
-
-export const DOWNLOAD_SHAPEFILE_URL = [
- process.env.GATSBY_CDN_TILES_BASE_URL,
- process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
- process.env.GATSBY_SHAPE_FILE_PATH,
-].join('/');
-
-// TSD = Tech Support Document
-export const DOWNLOAD_TSD_URL = [
- process.env.GATSBY_CDN_TILES_BASE_URL,
- process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
- process.env.GATSBY_TSD_DOWNLOAD_FILE_PATH,
-].join('/');
-
-const newCalloutFontColorFn = (str: string) => {str};
-
-export const DOWNLOAD_PACKAGE = {
- TITLE: NEW files available for download`}
- description={'Navigate to the methodology page. This is the download packet header text'}
- values={{
- callout: newCalloutFontColorFn,
- }}
- />,
- DESCRIPTION1: .pdf that describes how to use the list, and a codebook, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize} unzipped).`}
- description={'Navigate to the methodology page. This is the download packet info text'}
- values={{
- callout: newCalloutFontColorFn,
- downloadFileSize: ,
- shapefileSize: ,
- tsdFileSize: ,
- }}
- />,
- ZIP_LAST_UPDATED: ,
- }}
- />,
- SHAPE_LAST_UPDATED: ,
- }}
- />,
- TSD_LAST_UPDATED: ,
- }}
- />,
- BUTTON_TEXT1: ,
- BUTTON_TEXT2: ,
- BUTTON_TEXT3: ,
- NEW_TAG: NEW`}
- description={'Navigate to the methodology page. This is the new tag text'}
- values={{
- boldtag: boldFn,
- }}
- />,
- UPDATED_TAG: Updated`}
- description={'Navigate to the methodology page. This is the update callout tag text that overlaps the button'}
- values={{
- boldtag: boldFn,
- }}
- />,
-};
-
export const CATEGORY = {
HEADING: federalregister.gov.",
+ "defaultMessage": "The Request for Information on the Federal Register for the public beta period closed on {rfiExpDate}",
"description": "Navigate to the contact page, this is the body of the request for information box"
},
"contact.page.request.for.info.box.title": {
@@ -287,17 +287,33 @@
"defaultMessage": "Contact",
"description": "Navigate to the contact page, this is the contact page title text"
},
- "downloads.page.csv.link": {
- "defaultMessage": "CSV file (.csv {csvFileSize} unzipped)",
- "description": "On the downloads page, the description of the csv link"
+ "download.page.download.file.1": {
+ "defaultMessage": "Communities list data (.xlsx {cldXlsFileSize})",
+ "description": "Navigate to the download page. This is first download file link"
+ },
+ "download.page.download.file.2": {
+ "defaultMessage": "Communities list data (.csv {cldCsvFileSize})",
+ "description": "Navigate to the download page. This is second download file link"
+ },
+ "download.page.download.file.3": {
+ "defaultMessage": "Shapefile (Codebook included with geojson {shapeFileSize} unzipped)",
+ "description": "Navigate to the download page. This is third download file link"
+ },
+ "download.page.download.file.4": {
+ "defaultMessage": "Technical support document (.pdf {tsdFileSize})",
+ "description": "Navigate to the download page. This is fourth download file link"
+ },
+ "download.page.download.file.5": {
+ "defaultMessage": "How to use the list of communities (.pdf {howToCommFileSize})",
+ "description": "Navigate to the download page. This is fifth download file link"
},
"downloads.page.description1.text": {
"defaultMessage": "The dataset used in the tool, along with a data dictionary and information about how to use the list of communities (.pdf) are available in the following file formats:",
"description": "Navigate to the Downloads page, this will be the page description1 text"
},
- "downloads.page.excel.link": {
- "defaultMessage": "Excel file (.xlxs {excelFileSize} unzipped)",
- "description": "On the downloads page, the description of the excel link"
+ "downloads.page.download.icon.alt.tag": {
+ "defaultMessage": "The icon used to indicate that the file is downloadable",
+ "description": "Navigate to the Downloads page, this is the icon used to indicate that the file is downloadable"
},
"downloads.page.heading1.text": {
"defaultMessage": "Downloads",
@@ -307,10 +323,6 @@
"defaultMessage": "File formats",
"description": "Navigate to the Downloads page, this will be the page heading2 text"
},
- "downloads.page.shape.link": {
- "defaultMessage": "Shapefiles (Codebook included with geojson {shapeFileSize} unzipped)",
- "description": "On the downloads page, the description of the shapefiles link"
- },
"downloads.page.title.text": {
"defaultMessage": "Downloads",
"description": "Navigate to the Downloads page, this will be the page title text"
@@ -816,8 +828,8 @@
"description": "Navigate to the explore the map page. Under the map, you will see share your feedback"
},
"explore.map.page.under.map.how.you.can.help.list.item.3": {
- "defaultMessage": "Respond to our Request for Information on federalregister.gov.",
- "description": "Navigate to the explore the map page. Under the map, you will see share your feedback"
+ "defaultMessage": "The Request for Information on the Federal Register is now closed.",
+ "description": "Navigate to the explore the map page. Under the map, you will see RFI is expired"
},
"explore.map.page.under.map.note.on.territories.intro": {
"defaultMessage": "A note on the U.S. territories",
@@ -1235,46 +1247,6 @@
"defaultMessage": "All categories",
"description": "Navigate to the methodology page. Navigate to the dataset section. This is the portion of the dataset card Used In text for all methodologies"
},
- "methodology.page.downloadPacket.button1.text": {
- "defaultMessage": "Download data sources",
- "description": "Navigate to the methodology page. This is the download packet button text"
- },
- "methodology.page.downloadPacket.button2.text": {
- "defaultMessage": "Download shapefile",
- "description": "Navigate to the methodology page. This is the download shapefiles text"
- },
- "methodology.page.downloadPacket.button3.text": {
- "defaultMessage": "Download technical support document",
- "description": "Navigate to the methodology page. This is the download technical support document spreadsheet"
- },
- "methodology.page.downloadPacket.header.text": {
- "defaultMessage": "NEW files available for download",
- "description": "Navigate to the methodology page. This is the download packet header text"
- },
- "methodology.page.downloadPacket.info.shape.last.updated": {
- "defaultMessage": "Last updated: {shapeLastUpdated}",
- "description": "Navigate to the methodology page. This is the download packet info last updated"
- },
- "methodology.page.downloadPacket.info.text1": {
- "defaultMessage": "Download the data sources used in the CEJST (.csv, .xlxs, .pdf that describes how to use the list, and a codebook, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize} unzipped).",
- "description": "Navigate to the methodology page. This is the download packet info text"
- },
- "methodology.page.downloadPacket.info.tsd.last.updated": {
- "defaultMessage": "Last updated: {tsdLastUpdated}",
- "description": "Navigate to the methodology page. This is the download packet info last updated"
- },
- "methodology.page.downloadPacket.info.zip.last.updated": {
- "defaultMessage": "Last updated: {downloadLastUpdated}",
- "description": "Navigate to the methodology page. This is the download packet info last updated"
- },
- "methodology.page.downloadPacket.new.tag.text": {
- "defaultMessage": "NEW",
- "description": "Navigate to the methodology page. This is the new tag text"
- },
- "methodology.page.downloadPacket.updated.tag.text": {
- "defaultMessage": "Updated",
- "description": "Navigate to the methodology page. This is the update callout tag text that overlaps the button"
- },
"methodology.page.formula.first": {
"defaultMessage": "IF the census tract is above the threshold for one or more environmental or climate indicators",
"description": "Navigate to the methodology page. This is the first part of the formula used in the methodology"
diff --git a/client/src/intl/es.json b/client/src/intl/es.json
index 11c2a6b0..34c24fba 100644
--- a/client/src/intl/es.json
+++ b/client/src/intl/es.json
@@ -67,12 +67,17 @@
"contact.page.fab.survey.text": "Ayude a mejorar el sitio web y los datos",
"contact.page.general": "Para comentarios generales, envíe un correo eléctronico a {general_email_address}.",
"contact.page.header.text": "Contacto",
- "contact.page.request.for.info.box.body": "Durante el periodo beta, se pueden enviar comentarios sobre la Herramienta para la evaluación de la justicia climática y económica mediante la Solicitud de información del CEQ que se encuentra disponible en federalregister.gov.",
+ "contact.page.request.for.info.box.body": "La Solicitud de Información en el Registro Federal para el período beta público cerró el {rfiExpDate}",
"contact.page.request.for.info.box.title": "Solicitud de información",
"contact.page.sub.header.text": "Envíenos un correo electrónico",
"contact.page.title.text": "Contacto",
- "downloads.page.csv.link": "Archivo CSV (.csv {csvFileSize} descomprimido)",
+ "download.page.download.file.1": "Datos de la lista de comunidades (.xlsx {cldXlsFileSize})",
+ "download.page.download.file.2": "Datos de la lista de comunidades (.csv {cldCsvFileSize})",
+ "download.page.download.file.3": "Archivo de forma (Libro de códigos incluido con geojson {shapeFileSize} descomprimido)",
+ "download.page.download.file.4": "Documento de soporte técnico (.pdf {tsdFileSize})",
+ "download.page.download.file.5": "Cómo utilizar la lista de comunidades (.pdf {howToCommFileSize})",
"downloads.page.description1.text": "Los conjuntos de datos que se utilizan en la herramienta, junto con un diccionario de datos e información sobre cómo utilizar la lista de comunidades (.pdf) están disponibles en los siguientes formatos del archivo:",
+ "downloads.page.download.icon.alt.tag": "El icono utilizado para indicar que el archivo se puede descargar",
"downloads.page.excel.link": "Archivo Excel (.xlxs {excelFileSize} descomprimido)",
"downloads.page.heading1.text": "Descargas",
"downloads.page.heading2.text": "Formatos del archivo",
@@ -205,7 +210,7 @@
"explore.map.page.under.map.how.you.can.help.heading": "Contribuya a mejorar la herramienta",
"explore.map.page.under.map.how.you.can.help.list.item.1": "Vaya a la página Metodología y datos y envíe sus comentarios.",
"explore.map.page.under.map.how.you.can.help.list.item.2": "Use la herramienta para buscar comunidades y enviar sus comentarios.",
- "explore.map.page.under.map.how.you.can.help.list.item.3": "En federalregister.gov, responda a nuestra Solicitud de información.",
+ "explore.map.page.under.map.how.you.can.help.list.item.3": "La Solicitud de Información en el Registro Federal ya está cerrada.",
"explore.map.page.under.map.note.on.territories.intro": "Observaciones sobre los territorios de los Estados Unidos",
"explore.map.page.under.map.note.on.territories.para.1": "Las fuentes de datos que se describen en la página Metodología y datos se usan para identificar las comunidades desfavorecidas en los cincuenta estados y el Distrito de Columbia. No obstante, no todas estas fuentes de datos están disponibles actualmente para los territorios de los EE. UU.",
"explore.map.page.under.map.note.on.territories.para.2": "Para Puerto Rico, se usan los datos de la Encuesta sobre la Comunidad Estadounidense (ACS, por sus siglas en inglés) de 2015 a 2019 de la Oficina del Censo para la tasa de inscripción en educación superior y los demás campos de la categoría Capacitación y desarrollo de la fuerza laboral a fin de identificar las comunidades desfavorecidas. Por ahora, no se dispone de datos en las demás categorías.",
diff --git a/client/src/pages/downloads.tsx b/client/src/pages/downloads.tsx
index fbd5b3f7..7c8bc3e5 100644
--- a/client/src/pages/downloads.tsx
+++ b/client/src/pages/downloads.tsx
@@ -4,37 +4,64 @@ import {useIntl} from 'gatsby-plugin-intl';
import J40MainGridContainer from '../components/J40MainGridContainer';
import Layout from '../components/layout';
+import PublicEngageButton from '../components/PublicEngageButton';
+import SubPageNav from '../components/SubPageNav';
+import {useWindowSize} from 'react-use';
import * as DOWNLOADS_COPY from '../data/copy/downloads';
-
+import * as CONSTANTS from '../data/constants';
interface IDownloadsPageProps {
location: Location;
}
const DownloadsPage = ({location}: IDownloadsPageProps) => {
const intl = useIntl();
+ const {width} = useWindowSize();
return (
-
- The public comment period for
-
- sending feedback
-
- via the Request for Information has been extended to May 25, 2022.
+ The Request for Information on the Federal Register for the public beta period closed on May 25, 2022
diff --git a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap
index c289baae..4e06dc5d 100644
--- a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap
+++ b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap
@@ -247,12 +247,43 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- The dataset used in the tool, along with a data dictionary and information about how to use the list of communities (.pdf) are available in the following file formats:
-
+ The dataset used in the tool, along with a data dictionary and information about how to use the list of communities (.pdf) are available in the following file formats:
+
diff --git a/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap b/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap
index 9139b428..6e63debc 100644
--- a/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap
+++ b/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap
@@ -247,12 +247,43 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- Download the data sources used in the CEJST (.csv, .xlxs,
-
- .pdf
-
- that describes how to use the list, and a
-
- codebook
-
- , 53MB unzipped), the shapefile, along with a
-
- codebook
-
- (.zip, 742MB unzipped) or the technical support document (.pdf, 2.5MB unzipped).
-