From 8dc81639c721f9203f6bc7d3088d731a696cf621 Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:46:32 -0700 Subject: [PATCH] FAQS page (#2016) * Fix a11y issue on Ling Iso card * Add layout of new FAQs page * Reorder SubNav links on About page * Add NEW tag to new Burdens * Add first 6 questions to FAQs * Add the rest of the FAQs onto the page * Adjust sub-nav order in About header - update snapshots - ensure that FAQ in SubNav is active --- .../components/DatasetCard/DatasetCard.tsx | 22 +- .../DatasetCard/datasetCard.module.scss | 14 + .../DatasetCard/datasetCard.module.scss.d.ts | 3 + .../__snapshots__/datasetCard.test.tsx.snap | 10 +- .../datasetContainer.test.tsx.snap | 406 +++++++--- client/src/components/J40Header/J40Header.tsx | 14 +- .../__snapshots__/J40Header.test.tsx.snap | 12 +- client/src/data/copy/about.tsx | 2 + client/src/data/copy/faqs.tsx | 586 +++++++++++++- client/src/data/copy/methodology.tsx | 33 +- client/src/intl/en.json | 354 ++++++++- client/src/pages/about.tsx | 2 +- .../src/pages/frequently-asked-questions.tsx | 237 +++++- .../tests/__snapshots__/about.test.tsx.snap | 12 +- .../tests/__snapshots__/contact.test.tsx.snap | 12 +- .../__snapshots__/downloads.test.tsx.snap | 12 +- .../freqAskedQuestions.test.tsx.snap | 741 +++++++++++++++++- .../__snapshots__/methodology.test.tsx.snap | 418 +++++++--- .../__snapshots__/publicEng.test.tsx.snap | 12 +- .../techSupportDoc.test.tsx.snap | 12 +- 20 files changed, 2604 insertions(+), 310 deletions(-) diff --git a/client/src/components/DatasetCard/DatasetCard.tsx b/client/src/components/DatasetCard/DatasetCard.tsx index b3d3c4ca..b73c4b59 100644 --- a/client/src/components/DatasetCard/DatasetCard.tsx +++ b/client/src/components/DatasetCard/DatasetCard.tsx @@ -1,5 +1,6 @@ /* eslint-disable valid-jsdoc */ import React from 'react'; +import {Tag} from '@trussworks/react-uswds'; import {useIntl} from 'gatsby-plugin-intl'; import * as styles from './datasetCard.module.scss'; @@ -22,7 +23,16 @@ const DatasetCard = ({datasetCardProps}: IDatasetCardProps) => { return (
{datasetCardProps.note}
-{datasetCardProps.note}
+- - - - Note: - - Linguistic isolation was removed from Puerto Rico based on feedback during the beta period. - -
-+ + + + Note: + + Linguistic isolation was removed from Puerto Rico based on feedback during the beta period. + +
+{FAQS_COPY.FAQ_ANSWERS.Q1_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q1_P2}
+{FAQS_COPY.FAQ_ANSWERS.Q1_P3}
+{FAQS_COPY.FAQ_ANSWERS.Q1_P4}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q2_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q2_P2}
+{FAQS_COPY.FAQ_ANSWERS.Q2_P3}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q3_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q3_P2}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q4_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q4_P2}
+{FAQS_COPY.FAQ_ANSWERS.Q4_P3}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q5_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q5_P2}
+{FAQS_COPY.FAQ_ANSWERS.Q6_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q6_P4}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q7}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q8_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q8_P2}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q9_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q9_P2}
+{FAQS_COPY.FAQ_ANSWERS.Q10}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q11}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q12_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q12_P2}
+{FAQS_COPY.FAQ_ANSWERS.Q12_P3}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q13_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q13_P2}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q14}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q15_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q16}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q17_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q17_P2}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q18}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q19}
+ > + ), + ( + <> +{FAQS_COPY.FAQ_ANSWERS.Q20_P1}
+{FAQS_COPY.FAQ_ANSWERS.Q20_P2}
+ > + ), + + ]; + + const numberOfQuestions = Object.keys(FAQS_COPY.QUESTIONS).length; + + const faqItems: AccordionItemProps[] = [...Array(numberOfQuestions).keys()].map((questionNum) => { + return { + id: `faq-id-${questionNum}`, + title: FAQS_COPY.QUESTIONS[questionNum], + content: ANSWERS[questionNum], + expanded: false, + headingLevel: 'h2', + }; + }); return (+ The CEJST is a critical component of the Biden-Harris Administration’s historic commitment to advancing environmental justice. In + + Executive Order 14008 + + on Tackling the Climate Crisis at Home and Abroad, President Biden directed the White House Council on Environmental Quality (CEQ) to develop a geospatial mapping tool to identify disadvantaged communities that face burdens. The tool has an interactive map and uses datasets that are indicators of burdens. +
++ Federal agencies will use the tool for the Justice40 Initiative. It will help them identify disadvantaged communities that should receive 40% of the overall benefits of programs included in the Justice40 Initiative. The Justice40 Initiative seeks to deliver 40% of the overall benefits in climate, clean energy, and other related areas to disadvantaged communities. +
++ Other useful links for Federal agencies: +
++ The public can find communities of interest and provide feedback. This feedback will be used to improve the tool. +
++ + Executive Order 14008 + + recognizes that some communities are disadvantaged because they face burdens. The CEJST uses datasets that are indicators of burden. These burdens are related to climate change and the environment. They are also related to health and lack of economic opportunity. +
++ The tool highlights disadvantaged communities across all 50 states, the District of Columbia, and the U.S. territories. A community is considered disadvantaged: +
++ Not all disadvantaged communities can be shown on the map. Some communities, such as migrant workers, do not live in just one place. The Interim Implementation Guidance on the Justice40 Initiative also directs Federal agencies to consider geographically dispersed communities when implementing programs included in the Justice40 Initiative. +
++ No. The Climate and Economic Justice Screening Tool (CEJST) does not use racial demographics in its methodology. The current version of the tool offers data about race and age only as information when a specific census tract is selected. It is well-documented that communities of color suffer disproportionately from environmental and health burdens. Due to decades of underinvestment, they also face greater risks from climate change. +
++ Although the CEJST does not use race in the methodology, it seeks to create a map that reflects the on-the-ground burdens and realities that disadvantaged communities face. The tool shows communities that have environmental burdens and face injustice. +
++ Yes, the version 1.0 of the CEJST has some data for all the territories but not all the CEJST data are available or used for all U.S. territories. +
++ + Puerto Rico: + + The data used for Puerto Rico are from all relevant and available fields in the energy, housing, legacy pollution, transportation, and workforce development categories. The following data are used: projected flood risk, energy cost, lack of plumbing, lead paint, housing cost, proximity to hazardous waste facilities, proximity to Superfund or National Priorities List (NPL) sites, proximity to Risk Management Plan (RMP) facilities, diesel particulate matter exposure, traffic proximity and volume, leaking underground storage tanks, wastewater discharge, poverty, unemployment, and high school education. Linguistic isolation was removed for Puerto Rico based on feedback received during the beta period. +
++ + American Samoa, Guam, the Northern Mariana Islands, and the U.S. Virgin Islands: + + The data used for Puerto Rico are from all relevant and available fields in the energy, housing, legacy pollution, transportation, and workforce development categories. The following data are used: projected flood risk, energy cost, lack of plumbing, lead paint, housing cost, proximity to hazardous waste facilities, proximity to Superfund or National Priorities List (NPL) sites, proximity to Risk Management Plan (RMP) facilities, diesel particulate matter exposure, traffic proximity and volume, leaking underground storage tanks, wastewater discharge, poverty, unemployment, and high school education. Linguistic isolation was removed for Puerto Rico based on feedback received during the beta period. +
++ To respect Tribal sovereignty and self-government and to fulfill Federal trust and treaty responsibilities to Tribal Nations, Federally Recognized Tribal lands are highlighted as disadvantaged on the map. Alaska Native Villages are included as point locations that are smaller than census tracts. The tool’s census tracts and Tribal lands have different boundaries. +
++ Federally Recognized Tribes are those that are recognized by the U.S. Bureau of Indian Affairs in the + + annual notice + + it publishes in the Federal Register: +
++ Some census tracts that contain lands of Federally-recognized Tribes that are also considered disadvantaged because they meet the burden thresholds for at least one of the categories on the tool. When this happens, the areas appear darker on the tool’s map. +
++ Any area that is highlighted is considered disadvantaged, regardless of whether it is a light shade or dark shade. The tool will show if a whole census tract is considered disadvantaged or just the parts that are Federally Recognized Tribal lands. +
++ A census tract that does not meet any of the burden thresholds in the tool is usually not considered to be a disadvantaged community. However, if such a census tract contains Federally Recognized Tribal lands, then the parts of the tract that are Tribal lands are considered disadvantaged. The tool will display this type of census tract as “partially disadvantaged.” +
++ The Biden administration is advancing environmental justice across the whole-of-government. The Justice40 Initiative is a critical part of this effort. The Justice40 Initiative seeks to deliver 40% of the overall benefits of climate, clean energy, and related investments to disadvantaged communities. +
++ The CEJST will play an important role in the Justice40 Initiative. It will help to provide a single, consistent definition of disadvantaged communities for programs included in the Justice40 Initiative. +
++ Federal agencies will use the tool to help identify disadvantaged communities that will benefit from programs included in the Justice40 Initiative. The Justice40 Initiative seeks to deliver 40% of the overall benefits of certain investments to disadvantaged communities. +
++ The CEJST will play an important role in the Justice40 Initiative. It will help to provide a single definition of disadvantaged communities for programs included in the Justice40 Initiative. This definition applies to the whole government. Federal agencies will use this definition to direct Justice40 investment benefits in the following areas: +
++ Recent historic legislation—such as the Bipartisan Infrastructure Law and the Inflation Reduction Act—have created new programs or directed funds to existing programs. These investments are included in the Justice40 Initiative if they meet the eligibility criteria. Agencies will use the CEJST to help identify disadvantaged communities that will receive 40% of the overall benefits of those Justice40 programs. +
++ The Council on Environmental Quality (CEQ), the Office of Management and Budget (OMB), and the Climate Policy Office (CPO) released the Justice40 Interim Implementation Guidance on July 20, 2021. It directed agencies to develop interim definitions of disadvantaged communities. Agencies used their interim definitions during the tool’s beta phase. Agencies will now transition to using version 1.0 of the tool to geographically identify disadvantaged communities. +
++ The CEJST uses lessons learned from the EPA's EJScreen. EJScreen is an environmental justice mapping and screening tool. EJScreen shows environmental and demographic information. The EPA, Federal agencies, and state and local governments will continue to use EJScreen to understand and analyze environmental problems. For example, EPA uses + + EJScreen + + to: +
++ However, EPA does not use EJScreen to identify or label an area as an "EJ community" or as the sole basis for agency-decision-making. +
++ In contrast, the CEJST will help Federal agencies to identify disadvantaged communities that will benefit from programs included in the Justice40 Initiative. +
++ Several states that have environmental justice screening tools. CalEnviroScreen is an environmental justice screening tool for California. Other states, like New York and Michigan have screening tools as well. The Climate and Economic Justice Screening Tool (CEJST) incorporates lessons learned from these efforts. +
++ There is an important difference between state-based tools and the CEJST. State tools use data that may not be available for other states. The CEJST only uses data that are nationally-consistent and publicly-available. +
++ The WHEJAC provided recommendations on the Climate and Economic Justice Screening Tool (CEJST). The CEJST follows many of these recommendations. +
++ Yes. The CEJST website has multiple ways to offer feedback on the tool. +
++ Yes. CEQ plans to issue a Request for Information (RFI) about version 1.0 of the CEJST in 2023. The feedback received in that RFI will inform version 2.0 of the tool. +
++ The tool is now considered official because Federal agencies can now use version 1.0 of the Climate and Economic Justice Screening Tool (CEJST) to help identify disadvantaged communities. The 1.0 version was released in MM, YYYY. The tool is no longer in beta. +
++ The tool will be improved over time. The Council on Environmental Quality (CEQ) will update the tool each year based on public feedback, research, and the availability of new data. +
++ Sign-up to receive updates on the Climate and Economic Justice Screening Tool (CEJST) and other environmental justice news from CEQ. +
++ The Climate and Economic Justice Screening Tool (CEJST) has + + downloads + + available. Spreadsheets (.xlxs) and (.csv) contain the tool’s definitions and data. This data can be used for analysis. Shapefiles and geojson files can be uploaded into other mapping programs such as Esri. The downloads include information on how to use the files. +
++ The tool’s shapefile can be uploaded into other mapping programs such as Esri. +
++ The + + shapefile + + format is + + a geospatial vector data format + + for geographic information system (GIS) software. It can be loaded into any software that works with Esri, ArcGIS or any other compatible GIS software. You may choose to download the data in this format so that you can load the data from the Climate and Economic Justice Screening Tool (CEJST) into other tools and use those tools to combine the CEJST data with other datasets and sources. +
+- - - - Note: - - Linguistic isolation was removed from Puerto Rico based on feedback during the beta period. - -
-+ + + + Note: + + Linguistic isolation was removed from Puerto Rico based on feedback during the beta period. + +
+