From a171806a6fd19e93bd3c2ecb29bc5f4ed502a83d Mon Sep 17 00:00:00 2001 From: Ryon Coleman Date: Mon, 16 Dec 2024 10:16:23 -0500 Subject: [PATCH] Methodology page updates --- .../__snapshots__/Categories.test.tsx.snap | 4 +- .../components/DatasetCard/DatasetCard.tsx | 8 +- .../__snapshots__/datasetCard.test.tsx.snap | 14 +- .../datasetContainer.test.tsx.snap | 204 ++++++--------- .../MethodologyFormula.test.tsx.snap | 4 +- client/src/data/copy/methodology.tsx | 102 +++++--- client/src/intl/en.json | 42 ++- client/src/intl/es.json | 9 +- client/src/pages/methodology.tsx | 21 +- .../__snapshots__/methodology.test.tsx.snap | 243 ++++++++---------- 10 files changed, 322 insertions(+), 329 deletions(-) diff --git a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap index 119e91d2..f4fc7e4a 100644 --- a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap +++ b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap @@ -40,8 +40,8 @@ exports[`rendering of the Categories checks if component renders 1`] = ` > statistical areas - are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 - census boundaries. + are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 + census boundaries.

diff --git a/client/src/components/DatasetCard/DatasetCard.tsx b/client/src/components/DatasetCard/DatasetCard.tsx index b73c4b59..14679f0b 100644 --- a/client/src/components/DatasetCard/DatasetCard.tsx +++ b/client/src/components/DatasetCard/DatasetCard.tsx @@ -1,10 +1,10 @@ /* eslint-disable valid-jsdoc */ -import React from 'react'; import {Tag} from '@trussworks/react-uswds'; import {useIntl} from 'gatsby-plugin-intl'; +import React from 'react'; -import * as styles from './datasetCard.module.scss'; import * as METHODOLOGY_COPY from '../../data/copy/methodology'; +import * as styles from './datasetCard.module.scss'; interface IDatasetCardProps { datasetCardProps: METHODOLOGY_COPY.IIndicators @@ -71,6 +71,10 @@ const DatasetCard = ({datasetCardProps}: IDatasetCardProps) => { {intl.formatMessage(METHODOLOGY_COPY.DATASET_CARD_LABELS.SOURCE)} {dataSource.source} + {dataSource.isNew && (<> +   + {intl.formatMessage(METHODOLOGY_COPY.DATASET_CARD_LABELS.NEW)} + )} {/* Dataset Available for */} diff --git a/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap b/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap index fb738d35..99a5ada6 100644 --- a/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap +++ b/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap @@ -5,15 +5,9 @@ exports[`rendering of indicator dataset card checks if component renders 1`] = `
-
-
- - NEW - -
+

Census tract information and demographics

@@ -30,7 +24,7 @@ exports[`rendering of indicator dataset card checks if component renders 1`] = ` Note: - The demographics are included as information only and are not considered as a part of the tool's methodology. + The demographics are included as information only and are not considered as a part of the tool’s methodology.

diff --git a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap index 2974077a..6ffa6792 100644 --- a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap +++ b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap @@ -33,7 +33,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis >

- The tool's datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities. + The tool’s datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities.

@@ -81,15 +81,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

-
-
- - NEW - -
+

Census tract information and demographics

@@ -106,7 +100,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis Note: - The demographics are included as information only and are not considered as a part of the tool's methodology. + The demographics are included as information only and are not considered as a part of the tool’s methodology.

@@ -158,7 +152,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- Percent of a census tract's population in households where household income is at or below + Percent of a census tract’s population in households where household income is at or below 200% of the Federal poverty level, not including students enrolled in higher education.
@@ -210,7 +204,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- Expected agricultural value at risk from losses due to fourteen types of natural hazards. These hazards have some link to climate change. They are: avalanche, coastal flooding, cold wave, drought, hail, heat wave, hurricane, ice storm, landslide, riverine flooding, strong wind, tornado, wildfire, and winter weather. The rate is calculated by dividing the agricultural value at risk by the total agricultural value. + Expected agricultural value at risk from losses due to fourteen types of natural hazards. These hazards have some link to climate change. They are: avalanche, coastal flooding, cold wave, drought, hail, heat wave, hurricane, ice storm, landslide, riverine flooding, strong wind, tornado, wildfire, and winter weather. The rate is calculated by dividing the agricultural value at risk by the total agricultural value.
    @@ -366,15 +360,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Projected flood risk

    @@ -423,15 +411,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Projected wildfire risk

    @@ -798,22 +780,16 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Historic underinvestment

    - Census tracts that experienced historic underinvestment based on redlining maps created by the federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s + Census tracts that experienced historic underinvestment based on redlining maps created by the Federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s Dataset of formerly redlined areas - using digitized maps from the Home Owners Loan Corporation (HOLC), using 2010 census boundaries + using digitized maps from the Home Owners’ Loan Corporation (HOLC), using 2010 census boundaries
  • @@ -931,15 +907,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Lack of green space

    @@ -1021,15 +991,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Lack of indoor plumbing

    @@ -1129,15 +1093,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Abandoned mine land

    @@ -1186,15 +1144,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Formerly Used Defense Sites

    @@ -1283,8 +1235,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > Treatment, Storage, and Disposal Facilities (TSDF) data - from 2020 calculated from EPA's RCRA database as compiled - by EPA's EJScreen + from 2020 calculated from EPA’s RCRA database as compiled + by EPA’s EJScreen
  • @@ -1438,7 +1390,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > National Air Toxics Assessment (NATA) - from 2014 as compiled by EPA's EJScreen + from 2014 as compiled by EPA’s EJScreen
  • @@ -1451,15 +1403,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Transportation barriers

    @@ -1557,7 +1503,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > Traffic data - from 2017 as compiled by EPA's EJScreen + from 2017 as compiled by EPA’s EJScreen
  • @@ -1570,15 +1516,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Underground storage tanks and releases

    @@ -1615,7 +1555,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > UST Finder - from 2021 as compiled by EPA's EJScreen + from 2021 as compiled by EPA’s EJScreen
  • @@ -1752,7 +1692,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
  • - Low median income calculated as a share of the area’s median income. + Low median income is calculated as the median income of the tract divided by the income in the Metropolitan Statistical Area, unless the tract is a rural tract. For rural tracts, it is calculated as a percent of the state’s median income.
    @@ -1807,13 +1747,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
  • @@ -1880,13 +1826,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
  • @@ -1953,13 +1905,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
  • @@ -2026,13 +1984,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
  • @@ -2046,15 +2010,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    - - NEW - -
    +

    Tribes

    diff --git a/client/src/components/MethodologyFormula/__snapshots__/MethodologyFormula.test.tsx.snap b/client/src/components/MethodologyFormula/__snapshots__/MethodologyFormula.test.tsx.snap index 03da1b8d..7f234705 100644 --- a/client/src/components/MethodologyFormula/__snapshots__/MethodologyFormula.test.tsx.snap +++ b/client/src/components/MethodologyFormula/__snapshots__/MethodologyFormula.test.tsx.snap @@ -5,8 +5,8 @@ exports[`rendering of the MethodologyFormula checks if component renders 1`] = `

    - Under the current formula, a census tract will be identified as disadvantaged in one or more - categories of criteria: + Under the current formula, a census tract will be identified as disadvantaged in one or more + categories of criteria:

    diff --git a/client/src/data/copy/methodology.tsx b/client/src/data/copy/methodology.tsx index a1086ce3..16e16943 100644 --- a/client/src/data/copy/methodology.tsx +++ b/client/src/data/copy/methodology.tsx @@ -1,13 +1,13 @@ /* eslint-disable max-len */ +import {FormattedMessage} from 'gatsby-plugin-intl'; import React from 'react'; import {defineMessages} from 'react-intl'; -import {FormattedMessage} from 'gatsby-plugin-intl'; import {boldFn, linkFn, simpleLink} from './common'; export const VERSION_NUMBER = (2.0).toFixed(1); export const PAGE = defineMessages({ - TILE: { + TITLE: { id: 'methodology.page.title.text', defaultMessage: 'Methodology & data', description: 'Navigate to the methodology page. This is the methodology page title text', @@ -34,10 +34,39 @@ export const PAGE = defineMessages({ PARA1_BULLET2: { id: 'methodology.page.paragraph.1.bullet.2', defaultMessage: ` - If they are on land within the boundaries of Federally Recognized Tribes + If they are on land within the boundaries of Federally Recognized Tribes. `, description: 'Navigate to the methodology page. This is the methodology paragraph 1, bullet 2', }, + PARA1_BULLET3: { + id: 'methodology.page.paragraph.1.bullet.3', + defaultMessage: ` + If the census tract ID was identified as disadvantaged in version 1.0, then the census tract is considered disadvantaged in version 2.0. + `, + description: 'Navigate to the methodology page. This is the methodology paragraph 1, bullet 3', + }, + PARA1_BULLET4: { + id: 'methodology.page.paragraph.1.bullet.4', + defaultMessage: ` + If the tract is a new tract in 2020, then the percentage of land that it shared, if any, with a previously disadvantaged tract will be considered disadvantaged. + `, + description: 'Navigate to the methodology page. This is the methodology paragraph 1, bullet 4', + }, + PARA1_BULLET5: { + id: 'methodology.page.paragraph.1.bullet.5', + defaultMessage: ` + Additionally, census tracts in certain U.S. Territories are considered disadvantaged if they meet the low income threshold only. This is because these Territories are not included in each of the nationally-consistent datasets on environmental and climate burdens currently used in the tool. + `, + description: 'Navigate to the methodology page. This is the methodology paragraph 1, bullet 5', + }, + PARA2: { + id: 'methodology.page.paragraph.2', + defaultMessage: ` + The tool uses datasets as indicators of burdens. The burdens are organized into categories. A community is highlighted as disadvantaged on the CEJST map if it is in a census tract that is (1) at or above the threshold for one or more environmental, climate, or other burdens, and (2) at or + above the threshold for an associated socioeconomic burden. + `, + description: 'Navigate to the methodology page. This is the methodology paragraph 2', + }, SUB_HEADING_1: { id: 'methodology.page.sub.heading.1', defaultMessage: ` @@ -80,8 +109,8 @@ export const FORMULA = { INTRO: , @@ -98,8 +127,8 @@ export const FORMULA = { PARA6: statistical areas are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 - census boundaries. + Census tracts are small units of geography. Census tract boundaries for statistical areas are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 + census boundaries. `} description={'Navigate to the methodology page. This is the methodology paragraph 4'} values={{ @@ -399,7 +428,7 @@ export const DATASETS = defineMessages({ INFO: { id: 'methodology.page.datasetContainer.info', defaultMessage: ` - The tool's datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities. + The tool’s datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities. `, description: 'Navigate to the Methodology page. This is the description of the dataset section', }, @@ -587,6 +616,15 @@ export const SOURCE_LINKS = { date10: DATE_RANGE.TEN, }} />, + DECENNIAL_CENSUS_20: Decennial Census from {date20}'} + description={'Navigate to the Methodology page. This is the source link for Decennial Census'} + values={{ + link1: linkFn('https://www.census.gov/data/developers/data-sets/decennial-census.2020.html', false, true), + date20: DATE_RANGE.TWENTY, + }} + />, FEMA_NRI: National Risk Index from {date14_21}`} @@ -617,7 +655,7 @@ export const SOURCE_LINKS = { />, EPA_NATA: National Air Toxics Assessment (NATA) from {date14} as compiled by EPA's EJScreen`} + defaultMessage={`National Air Toxics Assessment (NATA) from {date14} as compiled by EPA’s EJScreen`} description={'Navigate to the Methodology page. This is the source link for EPA NATA'} values={{ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true), @@ -626,7 +664,7 @@ export const SOURCE_LINKS = { />, DOT_EPA: Traffic data from {date17} as compiled by EPA's EJScreen`} + defaultMessage={`Traffic data from {date17} as compiled by EPA’s EJScreen`} description={'Navigate to the Methodology page. This is the source link for DOT EPA'} values={{ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true), @@ -645,8 +683,8 @@ export const SOURCE_LINKS = { EPA_TSDF: Treatment, Storage, and Disposal Facilities (TSDF) data from {date20} calculated from EPA's RCRA database as compiled - by EPA's EJScreen + Treatment, Storage, and Disposal Facilities (TSDF) data from {date20} calculated from EPA’s RCRA database as compiled + by EPA’s EJScreen `} description={'Navigate to the Methodology page. This is the source link for EPA TSDF'} values={{ @@ -710,7 +748,7 @@ export const SOURCE_LINKS = { />, HOLC: Dataset of formerly redlined areas using digitized maps from the Home Owners Loan Corporation (HOLC), using {date10} census boundaries`} + defaultMessage={`Dataset of formerly redlined areas using digitized maps from the Home Owners’ Loan Corporation (HOLC), using {date10} census boundaries`} description={'Navigate to the Methodology page. This is the source link for CDC Sleep'} values={{ link1: linkFn('https://www.openicpsr.org/openicpsr/project/141121/version/V2/view', false, true), @@ -755,7 +793,7 @@ export const SOURCE_LINKS = { />, UST_FIND: UST Finder from {date21} as compiled by EPA's EJScreen + defaultMessage={`Calculated from EPA’s UST Finder from {date21} as compiled by EPA’s EJScreen `} description={'Navigate to the Methodology page. This is the source link for UST Find'} values={{ @@ -828,6 +866,7 @@ export interface IIndicators { responsibleParty: JSX.Element, sources: { source: JSX.Element, + isNew?: boolean, availableFor: { // Todo remove this and replace with MessageDescriptor when ticket #2000 is fixed id: string, description: string, @@ -836,7 +875,7 @@ export interface IIndicators { }[] }; -export const INDICATORS = [ +export const INDICATORS: IIndicators[] = [ // All categories: { domID: 'census-tract-info', @@ -845,7 +884,6 @@ export const INDICATORS = [ defaultMessage={`Census tract information and demographics`} description={'Navigate to the Methodology page. This is the title text for the census tract dataset'} />, - isNew: true, description: Note: The demographics are included as information only and are not considered as a part of the tool's methodology. + Note: The demographics are included as information only and are not considered as a part of the tool’s methodology. `} description={'Navigate to the Methodology page. This is the note text for low life expectancy'} values={{ @@ -882,7 +920,7 @@ export const INDICATORS = [ description: , @@ -985,7 +1023,6 @@ export const INDICATORS = [ defaultMessage={`Projected flood risk`} description={'Navigate to the Methodology page. This is the title text for the NEW Projected flood risk'} />, - isNew: true, description: , - isNew: true, description: , - isNew: true, description: methodology for converting boundaries in the HOLC maps to census tracts. Census tracts meet the threshold when they have a score of 3.25 or more out of 4. + Census tracts that experienced historic underinvestment based on redlining maps created by the Federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s methodology for converting boundaries in the HOLC maps to census tracts. Census tracts meet the threshold when they have a score of 3.25 or more out of 4. `} description={'Navigate to the Methodology page. This is the description text for Historic Underinvestment'} values={{ @@ -1247,7 +1282,6 @@ export const INDICATORS = [ defaultMessage={`Lack of green space`} description={'Navigate to the Methodology page. This is the title text for the house burden dataset'} />, - isNew: true, description: , - isNew: true, description: , - isNew: true, description: , - isNew: true, description: , - isNew: true, description: , - isNew: true, description: , @@ -1630,7 +1659,8 @@ export const INDICATORS = [ availableFor: AVAILABLE_FOR.ALL_US_DC_PR, }, { - source: SOURCE_LINKS.CENSUS_ACS_10, + source: SOURCE_LINKS.DECENNIAL_CENSUS_20, + isNew: true, availableFor: AVAILABLE_FOR.ALL_ISLDS, }, ], @@ -1657,7 +1687,8 @@ export const INDICATORS = [ availableFor: AVAILABLE_FOR.ALL_US_DC_PR, }, { - source: SOURCE_LINKS.CENSUS_ACS_10, + source: SOURCE_LINKS.DECENNIAL_CENSUS_20, + isNew: true, availableFor: AVAILABLE_FOR.ALL_ISLDS, }, ], @@ -1684,7 +1715,8 @@ export const INDICATORS = [ availableFor: AVAILABLE_FOR.ALL_US_DC_PR, }, { - source: SOURCE_LINKS.CENSUS_ACS_10, + source: SOURCE_LINKS.DECENNIAL_CENSUS_20, + isNew: true, availableFor: AVAILABLE_FOR.ALL_ISLDS, }, ], @@ -1711,7 +1743,8 @@ export const INDICATORS = [ availableFor: AVAILABLE_FOR.ALL_US_DC_PR, }, { - source: SOURCE_LINKS.CENSUS_ACS_10, + source: SOURCE_LINKS.DECENNIAL_CENSUS_20, + isNew: true, availableFor: AVAILABLE_FOR.ALL_ISLDS, }, ], @@ -1726,7 +1759,6 @@ export const INDICATORS = [ defaultMessage={`Tribes`} description={'Navigate to the Methodology page. This is the title text for the Tribal lands'} />, - isNew: true, description: Note: The demographics are included as information only and are not considered as a part of the tool's methodology.", + "defaultMessage": "Note: The demographics are included as information only and are not considered as a part of the tool’s methodology.", "description": "Navigate to the Methodology page. This is the note text for low life expectancy" }, "methodology.page.category.diabetes.description.text": { @@ -2059,7 +2059,7 @@ "description": "Navigate to the Methodology page. This is the note text for linguistic.iso" }, "methodology.page.category.low.hist.underinvestectancy.description.text": { - "defaultMessage": "Census tracts that experienced historic underinvestment based on redlining maps created by the federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s methodology for converting boundaries in the HOLC maps to census tracts. Census tracts meet the threshold when they have a score of 3.25 or more out of 4.", + "defaultMessage": "Census tracts that experienced historic underinvestment based on redlining maps created by the Federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s methodology for converting boundaries in the HOLC maps to census tracts. Census tracts meet the threshold when they have a score of 3.25 or more out of 4.", "description": "Navigate to the Methodology page. This is the description text for Historic Underinvestment" }, "methodology.page.category.low.hist.underinvestectancy.note.text": { @@ -2067,7 +2067,7 @@ "description": "Navigate to the Methodology page. This is the note text for Historic Underinvestment" }, "methodology.page.category.low.income.description.text": { - "defaultMessage": "Percent of a census tract's population in households where household income is at or below 200% of the Federal poverty level, not including students enrolled in higher education.", + "defaultMessage": "Percent of a census tract’s population in households where household income is at or below 200% of the Federal poverty level, not including students enrolled in higher education.", "description": "Navigate to the Methodology page. This is the description text for low income" }, "methodology.page.category.low.life.expectancy.description.text": { @@ -2130,12 +2130,16 @@ "defaultMessage": "American Community Survey from {date15_19}", "description": "Navigate to the Methodology page. This is the source link for Census ACS" }, + "methodology.page.category.source.census.link.20": { + "defaultMessage": "Decennial Census from {date20}", + "description": "Navigate to the Methodology page. This is the source link for Decennial Census" + }, "methodology.page.category.source.doe.lead.link": { "defaultMessage": "LEAD Tool from {date18}", "description": "Navigate to the Methodology page. This is the source link for DOE FEMA" }, "methodology.page.category.source.dot.epa.link": { - "defaultMessage": "Traffic data from {date17} as compiled by EPA's EJScreen", + "defaultMessage": "Traffic data from {date17} as compiled by EPA’s EJScreen", "description": "Navigate to the Methodology page. This is the source link for DOT EPA" }, "methodology.page.category.source.epa.cerclis.link": { @@ -2143,7 +2147,7 @@ "description": "Navigate to the Methodology page. This is the source link for EPA CERCLIS" }, "methodology.page.category.source.epa.nata.link": { - "defaultMessage": "National Air Toxics Assessment (NATA) from {date14} as compiled by EPA's EJScreen", + "defaultMessage": "National Air Toxics Assessment (NATA) from {date14} as compiled by EPA’s EJScreen", "description": "Navigate to the Methodology page. This is the source link for EPA NATA" }, "methodology.page.category.source.epa.oar.link": { @@ -2159,7 +2163,7 @@ "description": "Navigate to the Methodology page. This is the source link for EPA RSEI" }, "methodology.page.category.source.epa.tsdf.link": { - "defaultMessage": "Treatment, Storage, and Disposal Facilities (TSDF) data from {date20} calculated from EPA's RCRA database as compiled by EPA's EJScreen", + "defaultMessage": "Treatment, Storage, and Disposal Facilities (TSDF) data from {date20} calculated from EPA’s RCRA database as compiled by EPA’s EJScreen", "description": "Navigate to the Methodology page. This is the source link for EPA TSDF" }, "methodology.page.category.source.fema.link": { @@ -2175,7 +2179,7 @@ "description": "Navigate to the Methodology page. This is the source link for CDC Sleep" }, "methodology.page.category.source.holc.link": { - "defaultMessage": "Dataset of formerly redlined areas using digitized maps from the Home Owners Loan Corporation (HOLC), using {date10} census boundaries", + "defaultMessage": "Dataset of formerly redlined areas using digitized maps from the Home Owners’ Loan Corporation (HOLC), using {date10} census boundaries", "description": "Navigate to the Methodology page. This is the source link for CDC Sleep" }, "methodology.page.category.source.hud.link": { @@ -2191,7 +2195,7 @@ "description": "Navigate to the Methodology page. This is the source link for Transportation burdens" }, "methodology.page.category.source.ust.find.link": { - "defaultMessage": "Calculated from EPA’s UST Finder from {date21} as compiled by EPA's EJScreen", + "defaultMessage": "Calculated from EPA’s UST Finder from {date21} as compiled by EPA’s EJScreen", "description": "Navigate to the Methodology page. This is the source link for UST Find" }, "methodology.page.category.traffic.vol.description.text": { @@ -2227,7 +2231,7 @@ "description": "Navigate to the Methodology page. This is the description text for exp bld loss rate" }, "methodology.page.category.workforce.dev.description.text": { - "defaultMessage": "Low median income calculated as a share of the area’s median income.", + "defaultMessage": "Low median income is calculated as the median income of the tract divided by the income in the Metropolitan Statistical Area, unless the tract is a rural tract. For rural tracts, it is calculated as a percent of the state’s median income.", "description": "Navigate to the Methodology page. This is the description text for workforce dev" }, "methodology.page.dataset.card.availableFor.ALL_ISLDS": { @@ -2447,7 +2451,7 @@ "description": "Navigate to the Methodology page. This is the section heading of which datasets are used in cumulative score" }, "methodology.page.datasetContainer.info": { - "defaultMessage": "The tool's datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities.", + "defaultMessage": "The tool’s datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities.", "description": "Navigate to the Methodology page. This is the description of the dataset section" }, "methodology.page.datasets.all.except.workforce.used.in.text": { @@ -2555,9 +2559,25 @@ "description": "Navigate to the methodology page. This is the methodology paragraph 1, bullet 1" }, "methodology.page.paragraph.1.bullet.2": { - "defaultMessage": "If they are on land within the boundaries of Federally Recognized Tribes", + "defaultMessage": "If they are on land within the boundaries of Federally Recognized Tribes.", "description": "Navigate to the methodology page. This is the methodology paragraph 1, bullet 2" }, + "methodology.page.paragraph.1.bullet.3": { + "defaultMessage": "If the census tract ID was identified as disadvantaged in version 1.0, then the census tract is considered disadvantaged in version 2.0.", + "description": "Navigate to the methodology page. This is the methodology paragraph 1, bullet 3" + }, + "methodology.page.paragraph.1.bullet.4": { + "defaultMessage": "If the tract is a new tract in 2020, then the percentage of land that it shared, if any, with a previously disadvantaged tract will be considered disadvantaged.", + "description": "Navigate to the methodology page. This is the methodology paragraph 1, bullet 4" + }, + "methodology.page.paragraph.1.bullet.5": { + "defaultMessage": "Additionally, census tracts in certain U.S. Territories are considered disadvantaged if they meet the low income threshold only. This is because these Territories are not included in each of the nationally-consistent datasets on environmental and climate burdens currently used in the tool.", + "description": "Navigate to the methodology page. This is the methodology paragraph 1, bullet 5" + }, + "methodology.page.paragraph.2": { + "defaultMessage": "The tool uses datasets as indicators of burdens. The burdens are organized into categories. A community is highlighted as disadvantaged on the CEJST map if it is in a census tract that is (1) at or above the threshold for one or more environmental, climate, or other burdens, and (2) at or above the threshold for an associated socioeconomic burden.", + "description": "Navigate to the methodology page. This is the methodology paragraph 2" + }, "methodology.page.paragraph.3": { "defaultMessage": "The tool uses datasets as indicators of burdens. The burdens are organized into categories. A community is highlighted as disadvantaged on the CEJST map if it is in a census tract that is (1) at or above the threshold for one or more environmental, climate, or other burdens, and (2) at or above the threshold for an associated socioeconomic burden.", "description": "Navigate to the methodology page. This is the methodology paragraph 3" diff --git a/client/src/intl/es.json b/client/src/intl/es.json index e6665a9c..5c8b1804 100644 --- a/client/src/intl/es.json +++ b/client/src/intl/es.json @@ -530,6 +530,7 @@ "methodology.page.category.source.cdc.sleep.link": "Proyecto de cálculos de esperanza de vida en regiones pequeñas en los Estados Unidos (USALEEP) de {date10_15}", "methodology.page.category.source.census.link.10": "Encuesta sobre la Comunidad Estadounidense de {date10}", "methodology.page.category.source.census.link.15": "Encuesta sobre la Comunidad Estadounidense de {date15_19}", + "methodology.page.category.source.census.link.20": "Censo Decenal from {date20}", "methodology.page.category.source.doe.lead.link": "Herramienta LEAD de {date18}", "methodology.page.category.source.dot.epa.link": "Datos de tránsito de {date17} según han sido compilados por la herramienta EJSCREEN de la EPA", "methodology.page.category.source.epa.cerclis.link": "Base de datos CERCLIS de {date20} según ha sido compilada por la herramienta EJSCREEN de la EPA", @@ -554,7 +555,7 @@ "methodology.page.category.unemploy.description.text": "Número de personas desempleadas como porcentaje de la fuerza laboral", "methodology.page.category.waste.water.description.text": "El Modelo de los indicadores ambientales para detección del riesgo (RSEI) representa concentraciones tóxicas en segmentos de flujos de agua a menos de 500 metros de distancia, divididos por distancia en kilómetros.", "methodology.page.category.wildfire.risk.rate.description.text": "Un modelo de 30 metros de resolución que proyecta la exposición a incendios forestales para cualquier ubicación específica en los EE. UU. contiguos, en la actualidad y con el cambio climático futuro. El riesgo de incendio forestal se calcula a partir de entradas asociadas a los combustibles del fuego, el clima, la influencia humana y el movimiento del fuego. El riesgo no tiene en cuenta el valor de la propiedad.", - "methodology.page.category.workforce.dev.description.text": "Mediana de bajos ingresos calculada como porcentaje de la mediana del ingreso de la zona", + "methodology.page.category.workforce.dev.description.text": "Mediana de bajos ingresos calculada como porcentaje de la mediana del ingreso de la zona dividido por el ingreso en el Área Estadística Metropolitana, a menos que el distrito sea un distrito rural. Para las zonas rurales, se calcula como un porcentaje de la mediana de ingreso medio del estado.", "methodology.page.dataset.card.availableFor.ALL_ISLDS": "Samoa estadounidense, Guam, Islas Marianas del Norte y las Islas Vírgenes de los Estados Unidos", "methodology.page.dataset.card.availableFor.AS_NMI": "Samoa estadounidense e Islas Marianas del Norte", "methodology.page.dataset.card.availableFor.CONUS_DC": "Todos los estados contiguos de los Estados Unidos y el Distrito de Columbia", @@ -635,8 +636,12 @@ "methodology.page.indicator.categories.work.dev.if": "ESTÁN en el percentil 90 o por encima de este para aislamiento lingüístico O mediana de bajos ingresos O pobreza O desempleo", "methodology.page.indicator.categories.workforce.dev.methodology": "Categoría Formación de la fuerza laboral", "methodology.page.paragraph.1": "La herramienta destaca los distritos censales desfavorecidos de los 50 estados, el Distrito de Columbia y los territorios estadounidenses. Las comunidades se consideran desfavorecidas:", + "methodology.page.paragraph.2": "La herramienta utiliza conjuntos de datos como indicadores de cargas. Las cargas están organizadas en categorías. Una comunidad se destaca como desfavorecida en el mapa CEJST si se encuentra en un distrito censal que está (1) en o por encima del umbral para una o más cargas ambientales, climáticas u otras, y (2) en o por encima del umbral de carga socioeconómica asociada.", "methodology.page.paragraph.1.bullet.1": "Si se encuentran en un distrito censal que cumple con los umbrales de al menos una de las categorías de carga de la herramienta, o", - "methodology.page.paragraph.1.bullet.2": "Si están en tierras dentro de los límites de las tribus reconocidas a nivel federal", + "methodology.page.paragraph.1.bullet.2": "Si están en tierras dentro de los límites de las tribus reconocidas a nivel federal.", + "methodology.page.paragraph.1.bullet.3": "Si el distrito censal se identificó como desfavorecido en la versión 1.0, entonces el distrito censal se considera desfavorecido en la versión 2.0.", + "methodology.page.paragraph.1.bullet.4": "Si el distrito censal es un distrito nuevo en 2020, entonces el porcentaje de tierra que compartió, si corresponde, con un tramo previamente desfavorecido se considerará desfavorecido.", + "methodology.page.paragraph.1.bullet.5": "Además, los ditritos censales en ciertos territorios de EE. UU. se consideran desfavorecidas si solo alcanzan el umbral de bajos ingresos. Esto se debe a que estos Territorios no están incluidos en cada uno de los conjuntos de datos consistentes a nivel nacional sobre cargas ambientales y climáticas que se utilizan actualmente en la herramienta.", "methodology.page.paragraph.3": "La herramienta utiliza conjuntos de datos que son indicadores de cargas. Las cargas se organizan en categorías. Una comunidad se destaca como desfavorecida en el mapa de la CEJST si se encuentra en un distrito censal que está (1) en o por encima del umbral para una o más cargas ambientales, climáticas o de otro tipo, y (2) en o por encima del umbral para una carga socioeconómica asociada.", "methodology.page.paragraph.4": "Además, también se considera desfavorecido un distrito censal que esté completamente rodeado de comunidades desfavorecidas y se sitúe en el percentil 50 o por encima de él en cuanto a ingresos bajos.", "methodology.page.paragraph.5": "Las tribus reconocidas a nivel federal, incluidos los pueblos nativos de Alaska, también se consideran comunidades desfavorecidas.", diff --git a/client/src/pages/methodology.tsx b/client/src/pages/methodology.tsx index 703ca79b..7b14c240 100644 --- a/client/src/pages/methodology.tsx +++ b/client/src/pages/methodology.tsx @@ -1,18 +1,17 @@ -import * as React from 'react'; import {Grid} from '@trussworks/react-uswds'; import {useIntl} from 'gatsby-plugin-intl'; +import * as React from 'react'; import {useWindowSize} from 'react-use'; import Categories from '../components/Categories'; import DatasetContainer from '../components/DatasetContainer'; +import DatasetsButton from '../components/DatasetsButton'; import J40MainGridContainer from '../components/J40MainGridContainer'; import Layout from '../components/layout'; import SubPageNav from '../components/SubPageNav'; -import DatasetsButton from '../components/DatasetsButton'; -import {USWDS_BREAKPOINTS, DATA_SURVEY_LINKS} from '../data/constants'; +import {DATA_SURVEY_LINKS, PAGES_ENDPOINTS, USWDS_BREAKPOINTS} from '../data/constants'; import * as METHODOLOGY_COPY from '../data/copy/methodology'; -import {PAGES_ENDPOINTS} from '../data/constants'; interface MethodPageProps { location: Location; @@ -22,8 +21,9 @@ const IndexPage = ({location}: MethodPageProps) => { const intl = useIntl(); const {width} = useWindowSize(); + return ( - + @@ -43,12 +43,11 @@ const IndexPage = ({location}: MethodPageProps) => {

      -
    • - {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET1)} -
    • -
    • - {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET2)} -
    • +
    • {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET1)}

    • +
    • {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET2)}

    • +
    • {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET3)}

    • +
    • {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET4)}

    • +
    • {intl.formatMessage(METHODOLOGY_COPY.PAGE.PARA1_BULLET5)}

    diff --git a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap index 2b587d71..000acc8b 100644 --- a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap @@ -432,16 +432,39 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    • - +

      + If they are in census tracts that meet the thresholds for at least one of the tool’s categories of burden, or +

    • -
    • - - If they are on land within the boundaries of Federally Recognized Tribes +
    • +

      + + If they are on land within the boundaries of Federally Recognized Tribes. +

      +
    • +
    • +

      + + If the census tract ID was identified as disadvantaged in version 1.0, then the census tract is considered disadvantaged in version 2.0. + +

      +
    • +
    • +

      + + If the tract is a new tract in 2020, then the percentage of land that it shared, if any, with a previously disadvantaged tract will be considered disadvantaged. + +

      +
    • +
    • +

      + + Additionally, census tracts in certain U.S. Territories are considered disadvantaged if they meet the low income threshold only. This is because these Territories are not included in each of the nationally-consistent datasets on environmental and climate burdens currently used in the tool. + +

    @@ -491,8 +514,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > statistical areas - are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 - census boundaries. + are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 + census boundaries.

    @@ -1049,7 +1072,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis >

    - The tool's datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities. + The tool’s datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities.

    @@ -1097,15 +1120,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

    -
    -
    - - NEW - -
    +

    Census tract information and demographics

    @@ -1122,7 +1139,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis Note: - The demographics are included as information only and are not considered as a part of the tool's methodology. + The demographics are included as information only and are not considered as a part of the tool’s methodology.

    @@ -1174,7 +1191,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    - Percent of a census tract's population in households where household income is at or below + Percent of a census tract’s population in households where household income is at or below 200% of the Federal poverty level, not including students enrolled in higher education.
    @@ -1226,7 +1243,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    - Expected agricultural value at risk from losses due to fourteen types of natural hazards. These hazards have some link to climate change. They are: avalanche, coastal flooding, cold wave, drought, hail, heat wave, hurricane, ice storm, landslide, riverine flooding, strong wind, tornado, wildfire, and winter weather. The rate is calculated by dividing the agricultural value at risk by the total agricultural value. + Expected agricultural value at risk from losses due to fourteen types of natural hazards. These hazards have some link to climate change. They are: avalanche, coastal flooding, cold wave, drought, hail, heat wave, hurricane, ice storm, landslide, riverine flooding, strong wind, tornado, wildfire, and winter weather. The rate is calculated by dividing the agricultural value at risk by the total agricultural value.
      @@ -1382,15 +1399,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Projected flood risk

      @@ -1439,15 +1450,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Projected wildfire risk

      @@ -1814,22 +1819,16 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Historic underinvestment

      - Census tracts that experienced historic underinvestment based on redlining maps created by the federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s + Census tracts that experienced historic underinvestment based on redlining maps created by the Federal government’s Home Owners’ Loan Corporation (HOLC) between 1935 and 1940. The tool uses the National Community Reinvestment Coalition’s Dataset of formerly redlined areas - using digitized maps from the Home Owners Loan Corporation (HOLC), using 2010 census boundaries + using digitized maps from the Home Owners’ Loan Corporation (HOLC), using 2010 census boundaries
    • @@ -1947,15 +1946,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Lack of green space

      @@ -2037,15 +2030,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Lack of indoor plumbing

      @@ -2145,15 +2132,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Abandoned mine land

      @@ -2202,15 +2183,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Formerly Used Defense Sites

      @@ -2299,8 +2274,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > Treatment, Storage, and Disposal Facilities (TSDF) data - from 2020 calculated from EPA's RCRA database as compiled - by EPA's EJScreen + from 2020 calculated from EPA’s RCRA database as compiled + by EPA’s EJScreen
    • @@ -2454,7 +2429,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > National Air Toxics Assessment (NATA) - from 2014 as compiled by EPA's EJScreen + from 2014 as compiled by EPA’s EJScreen
    • @@ -2467,15 +2442,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Transportation barriers

      @@ -2573,7 +2542,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > Traffic data - from 2017 as compiled by EPA's EJScreen + from 2017 as compiled by EPA’s EJScreen
    • @@ -2586,15 +2555,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Underground storage tanks and releases

      @@ -2631,7 +2594,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > UST Finder - from 2021 as compiled by EPA's EJScreen + from 2021 as compiled by EPA’s EJScreen
    • @@ -2768,7 +2731,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    • - Low median income calculated as a share of the area’s median income. + Low median income is calculated as the median income of the tract divided by the income in the Metropolitan Statistical Area, unless the tract is a rural tract. For rural tracts, it is calculated as a percent of the state’s median income.
      @@ -2823,13 +2786,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
    • @@ -2896,13 +2865,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
    • @@ -2969,13 +2944,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
    • @@ -3042,13 +3023,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis - American Community Survey + Decennial Census - from 2010 + from 2020  + + NEW +
    • @@ -3062,15 +3049,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
      -
      -
      - - NEW - -
      +

      Tribes