Add Send feedback button census track feedback (#1232)

* Add send feedback btn to side panel

* Update contact page copy

* remove redundant constant
This commit is contained in:
Vim 2022-02-03 12:39:49 -05:00 committed by GitHub
commit 9b4d45a96c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 156 additions and 12 deletions

View file

@ -1,4 +1,7 @@
import React from 'react';
import {defineMessages} from 'react-intl';
import {FormattedMessage, Link} from 'gatsby-plugin-intl';
import LinkTypeWrapper from '../../components/LinkTypeWrapper';
export const PAGE_INTRO = defineMessages({
PAGE_TILE: {
@ -28,6 +31,49 @@ export const PAGE_INTRO = defineMessages({
},
});
export const CENSUS_TRACK_FEEDBACK = {
TITLE: <FormattedMessage
id={'contact.page.census.track.feedback.title'}
defaultMessage={`Census track feedback`}
description={'census track feedback section'}
/>,
PARAGRAPH1: <FormattedMessage
id={'contact.page.census.track.feedback.para1'}
defaultMessage={`
To provide feedback about a specific census tract, either select the send feedback button after
finding a tract on the {exploreLink} page or just use the email address provided above. Please
include the census tract ID, county, state or territory information, in addition to your feedback.
`}
description={'census track feedback section'}
values={{
exploreLink: <Link to={'/cejst'}>Explore the tool</Link>,
}}
/>,
PARAGRAPH2: <FormattedMessage
id={'contact.page.census.track.feedback.para2'}
defaultMessage={`
If there are specific data indicators that could be improved or changed, please include that
information in the body of the email.
`}
description={'census track feedback section'}
/>,
PARAGRAPH3: <FormattedMessage
id={'contact.page.census.track.feedback.para1'}
defaultMessage={`
In addition, you can provide information about data via the {improvementSurvey}.
`}
description={'census track feedback section'}
values={{
improvementSurvey: <LinkTypeWrapper
linkText={'improvement survey'}
internal={false}
url={`https://www.surveymonkey.com/r/cejst-survey`}
openUrlNewTab={true}
/>,
}}
/>,
};
export const CONTACT_VIA_EMAIL = {
ID: 'contact.general',
DESCRIPTION: 'Contact page body text',

View file

@ -230,13 +230,25 @@ export const COMMUNITY = {
defaultMessage={ 'Identified as disadvantaged?'}
description={'asking IF the communities is focused on'}
/>,
SEND_FEEDBACK: <FormattedMessage
id={'areaDetail.categorization.send.feedback'}
defaultMessage={ 'send feedback'}
description={'link to send feedback'}
/>,
SEND_FEEDBACK: {
TITLE: <FormattedMessage
id={'areaDetail.categorization.send.feedback.title'}
defaultMessage={ 'Send feedback'}
description={'link to send feedback'}
/>,
},
};
export const SEND_FEEDBACK = defineMessages({
EMAIL_BODY: {
id: 'areaDetail.categorization.send.feedback.email.body',
// eslint-disable-next-line max-len
defaultMessage: `Please provide feedback about this census tract, including about the datasets, the data categories provided for this tract, the communities who live in this tract, and anything else relevant that we should know.
`,
description: 'link to send feedback',
},
});
export const SIDE_PANEL_CATEGORY = defineMessages({
INDICATOR: {
id: 'areaDetail.category.header.indicator',