Updated methodology version and Git URL for the UI

This commit is contained in:
Carlos Felix 2024-12-10 11:58:31 -05:00 committed by Carlos Felix
commit 85e5812191
17 changed files with 27 additions and 27 deletions

View file

@ -19,7 +19,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid" data-testid="grid"
> >
<h2> <h2>
Datasets used in v1.0 methodology Datasets used in v2.0 methodology
</h2> </h2>
</div> </div>
</div> </div>

View file

@ -14,7 +14,7 @@ import SurveyButton from '../SurveyButton';
// @ts-ignore // @ts-ignore
import whitehouseIcon from '../../images/eop-seal.svg'; import whitehouseIcon from '../../images/eop-seal.svg';
import * as COMMON_COPY from '../../data/copy/common'; import * as COMMON_COPY from '../../data/copy/common';
import {GITHUB_LINK, GITHUB_LINK_ES} from '../../../src/data/copy/about'; import {GITHUB_LINK, GITHUB_LINK_ES} from '../../constants';
const J40Footer = () => { const J40Footer = () => {
const intl = useIntl(); const intl = useIntl();

View file

@ -161,7 +161,7 @@ exports[`J40Footer renders correctly 1`] = `
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -26,7 +26,7 @@ exports[`rendering of ReleaseUpdate Component checks if component renders 1`] =
> >
<div> <div>
<div> <div>
Version 1.0 Release update - Nov 22, 2022 Version 2.0 Release update - Nov 22, 2022
</div> </div>
<div> <div>
New & improved New & improved
@ -237,7 +237,7 @@ exports[`rendering of ReleaseUpdate Component checks if component renders 1`] =
</ul> </ul>
</div> </div>
<div> <div>
release version 1.0 release version 2.0
</div> </div>
</div> </div>
</section> </section>

2
client/src/constants.tsx Normal file
View file

@ -0,0 +1,2 @@
export const GITHUB_LINK = 'https://github.com/DOI-DO/ceq-j40-cejst-2';
export const GITHUB_LINK_ES = `${GITHUB_LINK}/blob/main/README-es.md`;

View file

@ -23,9 +23,6 @@ export const USE_MAP_TUTORIAL_LINK_ES = process.env.GATSBY_CDN_TILES_BASE_URL +`
export const USE_DATA_TUTORIAL_LINK = process.env.GATSBY_CDN_TILES_BASE_URL +`/data-versions/2.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial.pdf`; export const USE_DATA_TUTORIAL_LINK = process.env.GATSBY_CDN_TILES_BASE_URL +`/data-versions/2.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial.pdf`;
export const USE_DATA_TUTORIAL_LINK_ES = process.env.GATSBY_CDN_TILES_BASE_URL +`/data-versions/2.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial-es.pdf`; export const USE_DATA_TUTORIAL_LINK_ES = process.env.GATSBY_CDN_TILES_BASE_URL +`/data-versions/2.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial-es.pdf`;
export const GITHUB_LINK = 'https://github.com/usds/justice40-tool';
export const GITHUB_LINK_ES = 'https://github.com/usds/justice40-tool/blob/main/README-es.md';
export const PAGE = defineMessages({ export const PAGE = defineMessages({
TITLE: { TITLE: {
id: 'about.page.title.text', id: 'about.page.title.text',

View file

@ -5,6 +5,7 @@ import {FormattedDate, FormattedMessage} from 'gatsby-plugin-intl';
import {defineMessages} from 'react-intl'; import {defineMessages} from 'react-intl';
import LinkTypeWrapper from '../../components/LinkTypeWrapper'; import LinkTypeWrapper from '../../components/LinkTypeWrapper';
import DownloadLink from '../../components/DownloadLink'; import DownloadLink from '../../components/DownloadLink';
import {GITHUB_LINK} from '../../constants';
export interface IDefineMessage { export interface IDefineMessage {
id: string, id: string,
@ -234,7 +235,7 @@ export const FOOTER = defineMessages({
}, },
GITHUB_LINK: { GITHUB_LINK: {
id: 'common.pages.footer.gatsby.link', id: 'common.pages.footer.gatsby.link',
defaultMessage: 'https://github.com/usds/justice40-tool', defaultMessage: GITHUB_LINK,
description: 'Navigate to the about page. This is Footer find contact link text', description: 'Navigate to the about page. This is Footer find contact link text',
}, },
CONTACT: { CONTACT: {

View file

@ -4,7 +4,7 @@ import {defineMessages} from 'react-intl';
import {FormattedMessage} from 'gatsby-plugin-intl'; import {FormattedMessage} from 'gatsby-plugin-intl';
import {boldFn, linkFn, simpleLink} from './common'; import {boldFn, linkFn, simpleLink} from './common';
export const VERSION_NUMBER = (1.0).toFixed(1); export const VERSION_NUMBER = (2.0).toFixed(1);
export const PAGE = defineMessages({ export const PAGE = defineMessages({
TILE: { TILE: {

View file

@ -172,7 +172,6 @@
"description": "Navigate to the about page. This is Footer FOIA link text" "description": "Navigate to the about page. This is Footer FOIA link text"
}, },
"common.pages.footer.gatsby.link": { "common.pages.footer.gatsby.link": {
"defaultMessage": "https://github.com/usds/justice40-tool",
"description": "Navigate to the about page. This is Footer find contact link text" "description": "Navigate to the about page. This is Footer find contact link text"
}, },
"common.pages.footer.github.link.text": { "common.pages.footer.github.link.text": {

View file

@ -12,6 +12,7 @@ import DatasetsButton from '../components/DatasetsButton';
import SubPageNav from '../components/SubPageNav'; import SubPageNav from '../components/SubPageNav';
import * as ABOUT_COPY from '../data/copy/about'; import * as ABOUT_COPY from '../data/copy/about';
import {GITHUB_LINK, GITHUB_LINK_ES} from '../constants';
import {FEEDBACK_EMAIL} from '../data/copy/common'; import {FEEDBACK_EMAIL} from '../data/copy/common';
import {PAGES_ENDPOINTS, USWDS_BREAKPOINTS, DATA_SURVEY_LINKS} from '../data/constants'; import {PAGES_ENDPOINTS, USWDS_BREAKPOINTS, DATA_SURVEY_LINKS} from '../data/constants';
@ -164,7 +165,7 @@ const AboutPage = ({location}: IAboutPageProps) => {
imgSrc={githubIcon} imgSrc={githubIcon}
header={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_HEADING)} header={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_HEADING)}
linkText={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_LINK_TEXT)} linkText={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_LINK_TEXT)}
url={intl.locale === 'es' ? ABOUT_COPY.GITHUB_LINK_ES : ABOUT_COPY.GITHUB_LINK} url={intl.locale === 'es' ? GITHUB_LINK_ES : GITHUB_LINK}
openUrlNewTab={true} openUrlNewTab={true}
internal={false}> internal={false}>
<p> <p>

View file

@ -503,7 +503,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
</div> </div>
<p> <p>
CEQ will update the tool each year based on public feedback, research, and the availability of new data. The current version of the tool is version 1.0. CEQ will update the tool each year based on public feedback, research, and the availability of new data. The current version of the tool is version 2.0.
<a <a
class="usa-link usa-link--external" class="usa-link usa-link--external"
data-cy="" data-cy=""
@ -815,7 +815,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external" class="usa-link usa-link--external"
data-cy="" data-cy=""
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >
@ -1047,7 +1047,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -626,7 +626,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -431,7 +431,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<h2 <h2
class="j40-mt-0 j40-mb-3" class="j40-mt-0 j40-mb-3"
> >
Version 1.0 file formats Version 2.0 file formats
</h2> </h2>
<section> <section>
<div> <div>
@ -458,7 +458,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
> >
<div> <div>
<div> <div>
Version 1.0 Release update - Nov 22, 2022 Version 2.0 Release update - Nov 22, 2022
</div> </div>
<div> <div>
New & improved New & improved
@ -669,14 +669,14 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
</ul> </ul>
</div> </div>
<div> <div>
release version 1.0 release version 2.0
</div> </div>
</div> </div>
</section> </section>
</div> </div>
</section> </section>
<p> <p>
The dataset used in the 1.0 version of the tool, along with a codebook, and information about how to use the list of communities (.pdf) are available for download: The dataset used in the 2.0 version of the tool, along with a codebook, and information about how to use the list of communities (.pdf) are available for download:
</p> </p>
<p> <p>
@ -926,7 +926,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -1460,7 +1460,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -1040,7 +1040,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid" data-testid="grid"
> >
<h2> <h2>
Datasets used in v1.0 methodology Datasets used in v2.0 methodology
</h2> </h2>
</div> </div>
</div> </div>
@ -3307,7 +3307,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -486,7 +486,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid" data-testid="grid"
> >
<h2> <h2>
Upcoming events for CEJST version 1.0 Upcoming events for CEJST version 2.0
</h2> </h2>
</div> </div>
<div <div
@ -1367,7 +1367,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >

View file

@ -566,7 +566,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a <a
class="usa-link usa-link--external footer-link-first-child" class="usa-link usa-link--external footer-link-first-child"
data-cy="check-out-the-code-on-github" data-cy="check-out-the-code-on-github"
href="https://github.com/usds/justice40-tool" href="https://github.com/DOI-DO/ceq-j40-cejst-2"
rel="noreferrer" rel="noreferrer"
target="_blank" target="_blank"
> >