Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit b116c90

Browse files
committed
Update survey links; ref external repo PR #117
1 parent c88df4e commit b116c90

File tree

14 files changed

+55
-29
lines changed

14 files changed

+55
-29
lines changed

client/src/components/AreaDetail/AreaDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ const AreaDetail = ({properties}: IAreaDetailProps) => {
872872
{/* Send Feedback button */}
873873
<a
874874
className={styles.sendFeedbackLink}
875-
href={intl.locale === `es` ? `https://www.surveymonkey.com/r/ZHP6VZZ?tractid=${blockGroup}` : `https://www.surveymonkey.com/r/6GKVCMF?tractid=${blockGroup}`}
875+
href={intl.locale === `es` ? `${constants.CENSUS_TRACT_SURVEY_LINKS.ES}?tractid=${blockGroup}` : `${constants.CENSUS_TRACT_SURVEY_LINKS.EN}?tractid=${blockGroup}`}
876876
target={"_blank"}
877877
rel="noreferrer"
878878
>

client/src/components/DatasetContainer/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {hyphenizeString} from '../../../cypress/integration/common/helpers';
88

99
import * as styles from './dsContainer.module.scss';
1010
import * as METHODOLOGY_COPY from '../../data/copy/methodology';
11-
import {PAGES_ENDPOINTS} from '../../data/constants';
11+
import {PAGES_ENDPOINTS, DATA_SURVEY_LINKS} from '../../data/constants';
1212
import DatasetsButton from '../DatasetsButton';
1313

1414

@@ -35,7 +35,7 @@ const DatasetContainer = () => {
3535
<Grid desktop={{col: 1}}>
3636
</Grid>
3737
<Grid desktop={{col: 4}}>
38-
<DatasetsButton href= {intl.locale === 'es' ? 'https://www.surveymonkey.com/r/ZPKY8G9' : 'https://www.surveymonkey.com/r/6G9TQJ8'} />
38+
<DatasetsButton href= {intl.locale === 'es' ? DATA_SURVEY_LINKS.ES : DATA_SURVEY_LINKS.EN} />
3939
</Grid>
4040
</Grid>
4141

client/src/components/SurveyButton/SurveyButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ import {Button} from '@trussworks/react-uswds';
55
import * as styles from './SurveyButton.module.scss';
66
import * as CONTACT_COPY from '../../data/copy/contact';
77
import J40MainGridContainer from '../J40MainGridContainer';
8+
import {SITE_SATISFACTION_SURVEY_LINKS} from '../../data/constants';
89

910
// @ts-ignore
1011
import launchIcon from '/node_modules/uswds/dist/img/usa-icons/launch.svg';
1112

1213
const SurveyButton = () => {
1314
const intl = useIntl();
1415
const href = intl.locale === 'es' ?
15-
`https://www.surveymonkey.com/r/ZH36CYV` :
16-
`https://www.surveymonkey.com/r/P3LWTSB`;
16+
SITE_SATISFACTION_SURVEY_LINKS.ES :
17+
SITE_SATISFACTION_SURVEY_LINKS.EN;
1718

1819
return (
1920
<J40MainGridContainer className={styles.surveyButtonContainer}>

client/src/data/constants.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,3 +357,25 @@ export const USWDS_BREAKPOINTS = {
357357
MOBILE_LG: 480,
358358
DESKTOP: 1024,
359359
};
360+
361+
// ********** SURVEY LINKS ***************
362+
363+
export const DATA_SURVEY_LINKS = {
364+
EN: 'https://eop.gov1.qualtrics.com/jfe/form/SV_51EPev2O6jHiaJ8',
365+
ES: 'https://eop.gov1.qualtrics.com/jfe/form/SV_2n0EWXynD1AZyT4',
366+
};
367+
368+
export const SITE_SATISFACTION_SURVEY_LINKS = {
369+
EN: 'https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO',
370+
ES: 'https://eop.gov1.qualtrics.com/jfe/form/SV_bpI7Dn1SBXGOSTY',
371+
};
372+
373+
export const CONTACT_SURVEY_LINKS = {
374+
EN: 'https://eop.gov1.qualtrics.com/jfe/form/SV_cCNgWW4OsfaBlTo',
375+
ES: 'https://eop.gov1.qualtrics.com/jfe/form/SV_2n0EWXynD1AZyT4',
376+
};
377+
378+
export const CENSUS_TRACT_SURVEY_LINKS = {
379+
EN: 'https://eop.gov1.qualtrics.com/jfe/form/SV_8J5wGa8Ya4dMP9c',
380+
ES: 'https://eop.gov1.qualtrics.com/jfe/form/SV_eJXos5X4yekq6cC',
381+
};

client/src/data/copy/about.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {FormattedMessage} from 'gatsby-plugin-intl';
55

66
import {italicFn, linkFn} from './common';
77
import {VERSION_NUMBER} from './methodology';
8-
import {PAGES_ENDPOINTS} from '../constants';
8+
import {PAGES_ENDPOINTS, DATA_SURVEY_LINKS, SITE_SATISFACTION_SURVEY_LINKS, CONTACT_SURVEY_LINKS} from '../constants';
99

1010
export const EXEC_ORDER_LINK = 'https://www.federalregister.gov/documents/2021/02/01/2021-02177/tackling-the-climate-crisis-at-home-and-abroad#:~:text=Sec.%20223.%20Justice40,40-percent%20goal.';
1111
export const FAQS_LINK = 'https://www.whitehouse.gov/wp-content/uploads/2022/02/CEQ-CEJST-QandA.pdf';
@@ -251,17 +251,17 @@ export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
251251
defaultMessage={`Provide <link1>general feedback</link1> on the CEJST website`}
252252
description={`Navigate to the about page. You will see How you can help list item 1`}
253253
values={{
254-
link1: linkFn('https://www.surveymonkey.com/r/P3LWTSB', false, true),
255-
link1es: linkFn('https://www.surveymonkey.com/r/ZH36CYV', false, true),
254+
link1: linkFn(SITE_SATISFACTION_SURVEY_LINKS.EN, false, true),
255+
link1es: linkFn(SITE_SATISFACTION_SURVEY_LINKS.ES, false, true),
256256
}}
257257
/>,
258258
LIST_ITEM_2: <FormattedMessage
259259
id={'about.page.how.you.can.help.list.item.2'}
260260
defaultMessage={`Suggest new <link1>data sources</link1>.`}
261261
description={`Navigate to the about page. You will see How you can help list item 2`}
262262
values={{
263-
link1: linkFn('https://www.surveymonkey.com/r/6G9TQJ8', false, true),
264-
link1es: linkFn('https://www.surveymonkey.com/r/ZPKY8G9', false, true),
263+
link1: linkFn(DATA_SURVEY_LINKS.EN, false, true),
264+
link1es: linkFn(DATA_SURVEY_LINKS.ES, false, true),
265265
}}
266266
/>,
267267
LIST_ITEM_3: <FormattedMessage
@@ -275,8 +275,8 @@ export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
275275
description={`Navigate to the about page. You will see How you can help list item 3`}
276276
values={{
277277
link1: linkFn(PAGES_ENDPOINTS.METHODOLOGY, true, false),
278-
link2: linkFn('https://www.surveymonkey.com/r/5LZ7MNB', false, true),
279-
link2es: linkFn('https://www.surveymonkey.com/r/CGTH5P7', false, true),
278+
link2: linkFn(CONTACT_SURVEY_LINKS.EN, false, true),
279+
link2es: linkFn(CONTACT_SURVEY_LINKS.ES, false, true),
280280
}}
281281
/>,
282282
PARA1: <FormattedMessage

client/src/data/copy/contact.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react';
33
import {defineMessages} from 'react-intl';
44
import {FormattedDate, FormattedMessage} from 'gatsby-plugin-intl';
55
import * as COMMON_COPY from './common';
6+
import {CONTACT_SURVEY_LINKS} from '../constants';
67

78
export const PAGE_INTRO = defineMessages({
89
PAGE_TILE: {
@@ -82,8 +83,8 @@ export const CENSUS_TRACT_FEEDBACK = {
8283
// `}
8384
// description={'Navigate to the survey. Spanish should substitute <link2> to get Spanish link! Already coded to support'}
8485
// values={{
85-
// link1: COMMON_COPY.linkFn('https://www.surveymonkey.com/r/5LZ7MNB', false, true),
86-
// link1es: COMMON_COPY.linkFn('https://www.surveymonkey.com/r/CGTH5P7', false, true),
86+
// link1: COMMON_COPY.linkFn(CONTACT_SURVEY_LINKS.EN, false, true),
87+
// link1es: COMMON_COPY.linkFn(CONTACT_SURVEY_LINKS.ES, false, true),
8788
// }}
8889
// />,
8990
};

client/src/data/copy/faqs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import LinkTypeWrapper from '../../components/LinkTypeWrapper';
66

77
import {EJSCREEN, EXEC_ORDER_LINK, FED_RECOGNIZED_INDIAN_ENTITIES, CEJST_INSTRUCT, CEJST_MEMO, CEJST_INSTRUCT_ES, CEJST_MEMO_ES} from './about';
88
import {boldFn, linkFn, FEEDBACK_EMAIL} from './common';
9-
import {PAGES_ENDPOINTS} from '../constants';
9+
import {PAGES_ENDPOINTS, DATA_SURVEY_LINKS, SITE_SATISFACTION_SURVEY_LINKS} from '../constants';
1010
import {EXPLORE_PAGE_LINKS} from './explore';
1111
import {DOWNLOAD_FILES} from './downloads';
1212

@@ -579,15 +579,15 @@ export const FAQ_ANSWERS = {
579579
defaultMessage={ `The public can also submit <link1>data sources</link1> or ideas for consideration.`}
580580
description={ 'Navigate to the FAQs page, this will be an answer, Q15_P1_2'}
581581
values={{
582-
link1: linkFn('https://www.surveymonkey.com/r/6G9TQJ8', false, true),
582+
link1: linkFn(DATA_SURVEY_LINKS.EN, false, true),
583583
}}
584584
/>,
585585
Q15_P1_3: <FormattedMessage
586586
id={ 'faqs.page.answers.Q15_P1_3'}
587587
defaultMessage={ `The public may also take a <link1>short survey</link1> to help improve the experience of using the tool.`}
588588
description={ 'Navigate to the FAQs page, this will be an answer, Q15_P1_3'}
589589
values={{
590-
link1: linkFn('https://www.surveymonkey.com/r/P3LWTSB', false, true),
590+
link1: linkFn(SITE_SATISFACTION_SURVEY_LINKS.EN, false, true),
591591
}}
592592
/>,
593593
Q15_P1_4: <FormattedMessage

client/src/pages/about.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import SubPageNav from '../components/SubPageNav';
1313

1414
import * as ABOUT_COPY from '../data/copy/about';
1515
import {FEEDBACK_EMAIL} from '../data/copy/common';
16-
import {PAGES_ENDPOINTS, USWDS_BREAKPOINTS} from '../data/constants';
16+
import {PAGES_ENDPOINTS, USWDS_BREAKPOINTS, DATA_SURVEY_LINKS} from '../data/constants';
1717

1818
import accountBalanceIcon // @ts-ignore
1919
from '/node_modules/uswds/dist/img/usa-icons/account_balance.svg';
@@ -46,7 +46,7 @@ const AboutPage = ({location}: IAboutPageProps) => {
4646

4747
<section className={'page-heading'}>
4848
<h1 data-cy={'about-page-heading'}>{intl.formatMessage(ABOUT_COPY.PAGE.TITLE)}</h1>
49-
<DatasetsButton href= {intl.locale === 'es' ? 'https://www.surveymonkey.com/r/ZPKY8G9' : 'https://www.surveymonkey.com/r/6G9TQJ8'} />
49+
<DatasetsButton href= {intl.locale === 'es' ? DATA_SURVEY_LINKS.ES : DATA_SURVEY_LINKS.EN} />
5050
</section>
5151

5252
<Grid row gap className={'j40-mb5-mt3'}>

client/src/pages/contact.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import DatasetsButton from '../components/DatasetsButton';
99

1010
import * as CONTACT_COPY from '../data/copy/contact';
1111
import {FEEDBACK_EMAIL} from '../data/copy/common';
12+
import {DATA_SURVEY_LINKS} from '../data/constants';
1213

1314
interface IContactPageProps {
1415
location: Location;
@@ -24,7 +25,7 @@ const ContactPage = ({location}: IContactPageProps) => {
2425

2526
<section className={'page-heading'}>
2627
<h1>{intl.formatMessage(CONTACT_COPY.PAGE_INTRO.PAGE_HEADING)}</h1>
27-
<DatasetsButton href= {intl.locale === 'es' ? 'https://www.surveymonkey.com/r/ZPKY8G9' : 'https://www.surveymonkey.com/r/6G9TQJ8'} />
28+
<DatasetsButton href= {intl.locale === 'es' ? DATA_SURVEY_LINKS.ES : DATA_SURVEY_LINKS.EN} />
2829
</section>
2930

3031
<Grid row gap={6}>

client/src/pages/downloads.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import ReleaseUpdate from '../components/ReleaseUpdate';
1010
import SubPageNav from '../components/SubPageNav';
1111

1212
import * as DOWNLOADS_COPY from '../data/copy/downloads';
13-
import {PAGES_ENDPOINTS, USWDS_BREAKPOINTS} from '../data/constants';
13+
import {PAGES_ENDPOINTS, USWDS_BREAKPOINTS, DATA_SURVEY_LINKS} from '../data/constants';
1414
interface IDownloadsPageProps {
1515
location: Location;
1616
}
@@ -26,7 +26,7 @@ const DownloadsPage = ({location}: IDownloadsPageProps) => {
2626

2727
<section className={'page-heading'}>
2828
<h1>{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_HEADING1)}</h1>
29-
<DatasetsButton href= {intl.locale === 'es' ? 'https://www.surveymonkey.com/r/ZPKY8G9' : 'https://www.surveymonkey.com/r/6G9TQJ8'} />
29+
<DatasetsButton href= {intl.locale === 'es' ? DATA_SURVEY_LINKS.ES : DATA_SURVEY_LINKS.EN} />
3030
</section>
3131

3232
<Grid row gap className={'j40-mb5-mt3'}>

0 commit comments

Comments
 (0)