Update version number on frontend (#730)

* Update version number on frontend

- add verion to download packet
- add verison to side panel
- update snaphots
- add version to constant file

* Add minor UI changes from QA

- adjust copy in download package
- update tests

* Refactor all intl code and will add page tests

- remove all copy app wide and place into respective data/copy folder
- adds tests for each page
- allow product to make copy changes in one place
- prepare for spanish language effort
This commit is contained in:
Vim 2021-09-22 23:56:23 -07:00 committed by GitHub
commit 53c2d98eaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 3992 additions and 1050 deletions

View file

@ -2,11 +2,6 @@
.howYouCanHelpContainer {
margin: 2rem 0;
.howYouCanHelpText {
color: $headingFontColor;
padding-left: 1rem;
}
}
.howYouCanHelpList {

View file

@ -1,9 +1,7 @@
declare namespace HowYouCanHelpModuleScssNamespace {
export interface IHowYouCanHelpModuleScss {
howYouCanHelpContainer: string;
howYouCanHelpBullet: string,
listWrapper: string;
howYouCanHelpText: string;
howYouCanHelpList: string;
howYouCanHelpListWrapper: string;
}

View file

@ -1,89 +1,23 @@
import React from 'react';
import {Link} from 'gatsby-plugin-intl';
import {useIntl} from 'gatsby-plugin-intl';
import {defineMessages} from 'react-intl';
import * as styles from './howYouCanHelp.module.scss';
import * as EXPLORE_COPY from '../../data/copy/explore';
const HowYouCanHelp = () => {
const intl = useIntl();
const messages = defineMessages({
youCanHelpHeader: {
id: 'howYouCanHelp.header.text',
defaultMessage: 'How you can help improve the tool',
description: 'the header of the how you can help section',
},
youCanHelpInfoText: {
id: 'youCanHelpInfoText.list.element.prefix',
defaultMessage: 'If you have helpful information, we would love to',
description: 'you can help info text ',
},
youCanHelpInfoLinkText: {
id: 'youCanHelpInfoLink.link.text',
defaultMessage: 'recieve an email from you',
description: 'you can help info text ',
},
youCanHelpDataMethPrefixText: {
id: 'youCanHelpDataMethPrefixText.link.prefix.text',
defaultMessage: 'View our',
description: 'view our',
},
youCanHelpDataMethLinkText: {
id: 'youCanHelpDataMethLinkText.link.text',
defaultMessage: 'Data and methodology',
description: 'Data & methodology link',
},
youCanHelpDataMethSuffixText: {
id: 'youCanHelpDataMethSuffixText.link.suffix.text',
defaultMessage: 'page and send us feedback.',
description: 'send us feedbackv via email',
},
youCanHelpSharingPrefixText: {
id: 'youCanHelpSharingPrefixText.link.prefix.text',
defaultMessage: 'Find your community of interest and',
description: 'find your community',
},
youCanHelpSharingLinkText: {
id: 'youCanHelpSharingLinkText.link.text',
defaultMessage: 'share your feedback',
description: 'sharing link to email',
},
});
return (
<div className={styles.howYouCanHelpContainer}>
<h2>
{intl.formatMessage(messages.youCanHelpHeader)}
{EXPLORE_COPY.HOW_YOU_CAN_HELP_LIST_ITEMS.HEADING}
</h2>
<ul className={styles.howYouCanHelpListWrapper}>
<li className={styles.howYouCanHelpList}>
<div className={styles.howYouCanHelpText}>
{intl.formatMessage(messages.youCanHelpInfoText)}
{` `}
<a href={'mailto:screeningtool.feedback@usds.gov'}>
{intl.formatMessage(messages.youCanHelpInfoLinkText)}
</a>.
</div>
{EXPLORE_COPY.HOW_YOU_CAN_HELP_LIST_ITEMS.LIST_ITEM_1}
</li>
<li className={styles.howYouCanHelpList}>
<div className={styles.howYouCanHelpText}>
{intl.formatMessage(messages.youCanHelpDataMethPrefixText)}
{` `}
<Link to={'/methodology'}>
{intl.formatMessage(messages.youCanHelpDataMethLinkText)}
</Link>
{` `}
{intl.formatMessage(messages.youCanHelpDataMethSuffixText)}
</div>
{EXPLORE_COPY.HOW_YOU_CAN_HELP_LIST_ITEMS.LIST_ITEM_2}
</li>
<li className={styles.howYouCanHelpList}>
<div className={styles.howYouCanHelpText}>
{intl.formatMessage(messages.youCanHelpSharingPrefixText)}
{` `}
<a href={'mailto:screeningtool.feedback@usds.gov'}>
{intl.formatMessage(messages.youCanHelpSharingLinkText)}
</a>.
</div>
{EXPLORE_COPY.HOW_YOU_CAN_HELP_LIST_ITEMS.LIST_ITEM_3}
</li>
</ul>
</div>

View file

@ -8,37 +8,31 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
</h2>
<ul>
<li>
<div>
If you have helpful information, we would love to
<a
href="mailto:screeningtool.feedback@usds.gov"
>
recieve an email from you
</a>
.
</div>
If you have helpful information, we would love to
<a
href="mailto:screeningtool.feedback@usds.gov"
>
recieve an email from you
</a>
.
</li>
<li>
<div>
View our
<a
href="/en/methodology"
>
Data and methodology
</a>
page and send us feedback.
</div>
View our
<a
href="/en/methodology"
>
Data and methodology
</a>
page and send us feedback.
</li>
<li>
<div>
Find your community of interest and
<a
href="mailto:screeningtool.feedback@usds.gov"
>
share your feedback
</a>
.
</div>
Find your community of interest and
<a
href="mailto:screeningtool.feedback@usds.gov"
>
share your feedback
</a>
.
</li>
</ul>
</div>