Skip to content

Commit

Permalink
Adds post 1.0 updates (#2105)
Browse files Browse the repository at this point in the history
- closes #2104 - updates statistical areas link
- closes #2103 - CAPs on NO and PARTIALLY
- closes #2099 - Update press release on Alert and FAQs
- closes #2101 - global replace high school degree to high school diploma
- add comparison chart to FAQ
- update .env file with comp chart route to S3
- update snapshots
  • Loading branch information
vim-usds authored Nov 23, 2022
1 parent 7846635 commit db75b8a
Show file tree
Hide file tree
Showing 23 changed files with 162 additions and 51 deletions.
1 change: 1 addition & 0 deletions client/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ GATSBY_FILE_DL_PATH_1_0_SHAPE_FILE_ZIP=downloadable/1.0-shapefile-codebook.zip
GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF=downloadable/cejst-instructions-for-federal-agencies.pdf
GATSBY_FILE_DL_PATH_1_0_COMP_CHART_PDF=downloadable/total-comparison-chart.pdf
GATSBY_FILE_DL_PATH_1_0_TSD_PDF=downloadable/1.0-cejst-technical-support-document.pdf
GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF=downloadable/1.0-climate-and-environmental-burden-tool-comparison.pdf

GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document-es.pdf
GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF=downloadable/draft-communities-list.pdf
Expand Down
1 change: 1 addition & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ GATSBY_FILE_DL_PATH_1_0_SHAPE_FILE_ZIP=downloadable/1.0-shapefile-codebook.zip
GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF=downloadable/cejst-instructions-for-federal-agencies.pdf
GATSBY_FILE_DL_PATH_1_0_COMP_CHART_PDF=downloadable/total-comparison-chart.pdf
GATSBY_FILE_DL_PATH_1_0_TSD_PDF=downloadable/1.0-cejst-technical-support-document.pdf
GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF=downloadable/1.0-climate-and-environmental-burden-tool-comparison.pdf

GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document-es.pdf
GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF=downloadable/draft-communities-list.pdf
Expand Down
2 changes: 1 addition & 1 deletion client/VIEW_MAP_DATA.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ When zooming in (the zoom number will increase), thus aka 'high' zoom levels, th
"Poverty (Less than 200% of federal poverty line) (percentile)":0.36,

// EDUCATION_PROPERTY_PERCENTILE
"Percentage of individuals age 25 or over with less than high school degree (percentile)":0.08,
"Percentage of individuals age 25 or over with less than high school diploma (percentile)":0.08,

// LINGUISTIC_ISOLATION_PROPERTY_PERCENTILE
"Linguistic isolation (percent) (percentile)":0.05,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ exports[`rendering of the Categories checks if component renders 1`] = `
>
high school education
</a>
(i.e. graduated with a high school degree)
(i.e. graduated with a high school diploma)
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`rendering of DonutCopy Component checks if component renders when adjac
<div
class=""
>
No
NO
</div>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,17 @@ exports[`rendering of the J40Header checks if component renders 1`] = `
<p
class="usa-alert__text"
>
The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on 11/22/2022. For more information about the improvements to the tool, CEQ’s press release will be coming soon.
The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on 11/22/2022. For more information about the improvements to the tool, read CEQ's
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.whitehouse.gov/ceq/news-updates/2022/11/22/biden-harris-administration-launches-version-1-0-of-climate-and-economic-justice-screening-tool-key-step-in-implementing-president-bidens-justice40-initiative/"
rel="noreferrer"
target="_blank"
>
press release
</a>
.
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ describe('rendering of TractPrioritization Component', () => {
{scoreNComm: true, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'},
{scoreNComm: true, tribalCountAK: 3, percentTribal: .45, isDAC: 'YES'},

{scoreNComm: false, tribalCountAK: null, percentTribal: null, isDAC: 'No'},
{scoreNComm: false, tribalCountAK: null, percentTribal: 0, isDAC: 'Partially'},
{scoreNComm: false, tribalCountAK: null, percentTribal: .13, isDAC: 'Partially'},
{scoreNComm: false, tribalCountAK: 1, percentTribal: null, isDAC: 'Partially'},
{scoreNComm: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'Partially'},
{scoreNComm: false, tribalCountAK: 3, percentTribal: .13, isDAC: 'Partially'},
{scoreNComm: false, tribalCountAK: null, percentTribal: null, isDAC: 'NO'},
{scoreNComm: false, tribalCountAK: null, percentTribal: 0, isDAC: 'PARTIALLY'},
{scoreNComm: false, tribalCountAK: null, percentTribal: .13, isDAC: 'PARTIALLY'},
{scoreNComm: false, tribalCountAK: 1, percentTribal: null, isDAC: 'PARTIALLY'},
{scoreNComm: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'PARTIALLY'},
{scoreNComm: false, tribalCountAK: 3, percentTribal: .13, isDAC: 'PARTIALLY'},

];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`rendering of TractPrioritization Component checks if component renders No when score N communities = false, tribal points in AK = null tribal % = null 1`] = `
exports[`rendering of TractPrioritization Component checks if component renders NO when score N communities = false, tribal points in AK = null tribal % = null 1`] = `
<DocumentFragment>
<h3>
No
NO
</h3>
</DocumentFragment>
`;

exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = 1 tribal % = null 1`] = `
exports[`rendering of TractPrioritization Component checks if component renders PARTIALLY when score N communities = false, tribal points in AK = 1 tribal % = null 1`] = `
<DocumentFragment>
<h3>
Partially
PARTIALLY
</h3>
</DocumentFragment>
`;

exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = 2 tribal % = 0 1`] = `
exports[`rendering of TractPrioritization Component checks if component renders PARTIALLY when score N communities = false, tribal points in AK = 2 tribal % = 0 1`] = `
<DocumentFragment>
<h3>
Partially
PARTIALLY
</h3>
</DocumentFragment>
`;

exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = 3 tribal % = 0.13 1`] = `
exports[`rendering of TractPrioritization Component checks if component renders PARTIALLY when score N communities = false, tribal points in AK = 3 tribal % = 0.13 1`] = `
<DocumentFragment>
<h3>
Partially
PARTIALLY
</h3>
</DocumentFragment>
`;

exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = null tribal % = 0 1`] = `
exports[`rendering of TractPrioritization Component checks if component renders PARTIALLY when score N communities = false, tribal points in AK = null tribal % = 0 1`] = `
<DocumentFragment>
<h3>
Partially
PARTIALLY
</h3>
</DocumentFragment>
`;

exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = null tribal % = 0.13 1`] = `
exports[`rendering of TractPrioritization Component checks if component renders PARTIALLY when score N communities = false, tribal points in AK = null tribal % = 0.13 1`] = `
<DocumentFragment>
<h3>
Partially
PARTIALLY
</h3>
</DocumentFragment>
`;
Expand Down
2 changes: 1 addition & 1 deletion client/src/data/copy/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const CONTENT = {
`}
description={'Navigate to the About page. This is the paragraph 4'}
values={{
link1: linkFn(PAGES_ENDPOINTS.METHODOLOGY, true, false),
link1: linkFn('https://www.census.gov/programs-surveys/acs/geography-acs/geography-boundaries-by-year.html', false, true),
}}
/>,
HOW_TO_USE_PARA3:
Expand Down
3 changes: 2 additions & 1 deletion client/src/data/copy/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ export const ALERTS = {
EXPIRATION_DATE: RFI_EXPIRATION_DATE,
ALERT_1_DESCRIPTION: <FormattedMessage
id={'common.pages.alerts.public_comment_period.description'}
defaultMessage={`The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on {ver1RelDate}. For more information about the improvements to the tool, CEQ’s press release will be coming soon.`}
defaultMessage={`The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on {ver1RelDate}. For more information about the improvements to the tool, read CEQ's <link1>press release</link1>.`}
description={`Alert body that appears on landing page.`}
values={{
link1: linkFn('https://www.whitehouse.gov/ceq/news-updates/2022/11/22/biden-harris-administration-launches-version-1-0-of-climate-and-economic-justice-screening-tool-key-step-in-implementing-president-bidens-justice40-initiative/', false, true),
ver1RelDate: <FormattedDate
value={METH_1_0_RELEASE_DATE}
year="numeric"
Expand Down
4 changes: 2 additions & 2 deletions client/src/data/copy/downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export const DOWNLOAD_FILES = {
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
},
COMP_CHART: {
SIZE: .8, // KB // Todo: Update when actual file is uploaded
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_COMP_CHART_PDF, false),
SIZE: 33.1, // KB
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF, false),
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
},
},
Expand Down
6 changes: 3 additions & 3 deletions client/src/data/copy/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -754,12 +754,12 @@ export const COMMUNITY = {
/>,
NOT_OF_FOCUS: <FormattedMessage
id= {'explore.map.page.side.panel.not.community.of.focus'}
defaultMessage= {'No'}
defaultMessage= {'NO'}
description={`Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the communities the score currently is not focused on`}
/>,
PARTIAL: <FormattedMessage
id= {'explore.map.page.side.panel.partial.community.of.focus'}
defaultMessage= {'Partially'}
defaultMessage= {'PARTIALLY'}
description={`Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the communities the score currently is partially focused on`}
/>,
IS_FOCUS: <FormattedMessage
Expand Down Expand Up @@ -1064,7 +1064,7 @@ export const SIDE_PANEL_INDICATORS = defineMessages({
HIGH_SCL: {
id: 'explore.map.page.side.panel.indicator.high.school',
defaultMessage: 'High school education',
description: `Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show High school degree achievement rate`,
description: `Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show High school diploma achievement rate`,
},

// Testing
Expand Down
5 changes: 4 additions & 1 deletion client/src/data/copy/faqs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,11 @@ export const FAQ_ANSWERS = {
/>,
Q17_P1: <FormattedMessage
id={ 'faqs.page.answers.Q17_P1'}
defaultMessage={ `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 November, 2022. The tool is no longer in beta.`}
defaultMessage={ `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 <link1>November, 2022</link1>. The tool is no longer in beta.`}
description={ 'Navigate to the FAQs page, this will be an answer, Q17_P1'}
values={{
link1: linkFn('https://www.whitehouse.gov/ceq/news-updates/2022/11/22/biden-harris-administration-launches-version-1-0-of-climate-and-economic-justice-screening-tool-key-step-in-implementing-president-bidens-justice40-initiative/', false, true),
}}
/>,
Q17_P2: <FormattedMessage
id={ 'faqs.page.answers.Q17_P2'}
Expand Down
4 changes: 2 additions & 2 deletions client/src/data/copy/methodology.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ export const CATEGORY_AND_CLAUSE = {
/>,
HS_DEG_GTE_10: <FormattedMessage
id={'methodology.page.category.and.clause.hs.ed.higher.ed'}
defaultMessage={`<boldtag>AND</boldtag> fewer than 10% of people ages 25 or older have a <link1>high school education</link1> (i.e. graduated with a high school degree)
defaultMessage={`<boldtag>AND</boldtag> fewer than 10% of people ages 25 or older have a <link1>high school education</link1> (i.e. graduated with a high school diploma)
`}
description={'Navigate to the methodology page. Navigate to the category section. This is the portion of the formula dealing with higher ed enrollment and high school degree rate'}
description={'Navigate to the methodology page. Navigate to the category section. This is the portion of the formula dealing with higher ed enrollment and high school diploma rate'}
values={{
boldtag: boldFn,
link1: simpleLink('#high-school'),
Expand Down
14 changes: 7 additions & 7 deletions client/src/intl/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"description": "Navigate to any page. This the title of the alert that informs the user that new census tract information is available"
},
"common.pages.alerts.public_comment_period.description": {
"defaultMessage": "The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on {ver1RelDate}. For more information about the improvements to the tool, CEQ’s press release will be coming soon.",
"defaultMessage": "The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on {ver1RelDate}. For more information about the improvements to the tool, read CEQ's <link1>press release</link1>.",
"description": "Alert body that appears on landing page."
},
"common.pages.alerts.version.1.release..title": {
Expand Down Expand Up @@ -1057,7 +1057,7 @@
},
"explore.map.page.side.panel.indicator.high.school": {
"defaultMessage": "High school education",
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show High school degree achievement rate"
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show High school diploma achievement rate"
},
"explore.map.page.side.panel.indicator.historic.underinvest": {
"defaultMessage": "Historic underinvestment",
Expand Down Expand Up @@ -1344,15 +1344,15 @@
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show asking IF the communities is focused on"
},
"explore.map.page.side.panel.not.community.of.focus": {
"defaultMessage": "No",
"defaultMessage": "NO",
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the communities the score currently is not focused on"
},
"explore.map.page.side.panel.num.categories.exceeded": {
"defaultMessage": "in {numberOfDisCategories, plural, one {# category} other {# categories}}",
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show how many categories are exceeded"
},
"explore.map.page.side.panel.partial.community.of.focus": {
"defaultMessage": "Partially",
"defaultMessage": "PARTIALLY",
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the communities the score currently is partially focused on"
},
"explore.map.page.side.panel.prio.copy.not.prio": {
Expand Down Expand Up @@ -1620,7 +1620,7 @@
"description": "Navigate to the FAQs page, this will be an answer, Q16"
},
"faqs.page.answers.Q17_P1": {
"defaultMessage": "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 November, 2022. The tool is no longer in beta.",
"defaultMessage": "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 <link1>November, 2022</link1>. The tool is no longer in beta.",
"description": "Navigate to the FAQs page, this will be an answer, Q17_P1"
},
"faqs.page.answers.Q17_P2": {
Expand Down Expand Up @@ -1888,8 +1888,8 @@
"description": "responsible party text"
},
"methodology.page.category.and.clause.hs.ed.higher.ed": {
"defaultMessage": "<boldtag>AND</boldtag> fewer than 10% of people ages 25 or older have a <link1>high school education</link1> (i.e. graduated with a high school degree)",
"description": "Navigate to the methodology page. Navigate to the category section. This is the portion of the formula dealing with higher ed enrollment and high school degree rate"
"defaultMessage": "<boldtag>AND</boldtag> fewer than 10% of people ages 25 or older have a <link1>high school education</link1> (i.e. graduated with a high school diploma)",
"description": "Navigate to the methodology page. Navigate to the category section. This is the portion of the formula dealing with higher ed enrollment and high school diploma rate"
},
"methodology.page.category.and.clause.low.inc": {
"defaultMessage": "<boldtag>AND</boldtag> are at or above the 65th percentile for <link1>low income</link1>",
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/frequently-asked-questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const FAQPage = ({location}: IFAQPageProps) => {
</ul>
<p>{FAQS_COPY.FAQ_ANSWERS.Q12_P2}</p>
<p>{FAQS_COPY.FAQ_ANSWERS.Q12_P3}</p>
{/* <p>{FAQS_COPY.FAQ_ANSWERS.Q12_P4}</p> */}
<p>{FAQS_COPY.FAQ_ANSWERS.Q12_P4}</p>
</>
),
(
Expand Down
19 changes: 16 additions & 3 deletions client/src/pages/tests/__snapshots__/about.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,17 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<p
class="usa-alert__text"
>
The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on 11/22/2022. For more information about the improvements to the tool, CEQ’s press release will be coming soon.
The Council on Environmental Quality (CEQ) made the version 1.0 of the tool available on 11/22/2022. For more information about the improvements to the tool, read CEQ's
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.whitehouse.gov/ceq/news-updates/2022/11/22/biden-harris-administration-launches-version-1-0-of-climate-and-economic-justice-screening-tool-key-step-in-implementing-president-bidens-justice40-initiative/"
rel="noreferrer"
target="_blank"
>
press release
</a>
.
</p>
</div>
</div>
Expand Down Expand Up @@ -490,8 +500,11 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
The tool shows information about the burdens that communities experience. It uses datasets to identify indicators of burdens. The tool shows these burdens in census tracts. Census tracts are small units of geography. Census tract boundaries for
<a
class="usa-link"
href="/en/methodology"
class="usa-link usa-link--external"
data-cy=""
href="https://www.census.gov/programs-surveys/acs/geography-acs/geography-boundaries-by-year.html"
rel="noreferrer"
target="_blank"
>
statistical areas
</a>
Expand Down
Loading

0 comments on commit db75b8a

Please sign in to comment.