Update survey links on behalf of lscharen (#2255)

* Update survey links; ref external repo PR #117

* Restore the removed contact page survey link

* Fix testing snapshots

* linter errors

* Update Spanish data survey link

---------

Co-authored-by: Lucas Scharenbroich <lscharen@prowestgis.com>
This commit is contained in:
Vim 2024-02-08 15:27:56 -08:00 committed by GitHub
commit 8712ff53ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 979 additions and 611 deletions

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ import {hyphenizeString} from '../../../cypress/integration/common/helpers';
import * as styles from './dsContainer.module.scss';
import * as METHODOLOGY_COPY from '../../data/copy/methodology';
import {PAGES_ENDPOINTS} from '../../data/constants';
import {PAGES_ENDPOINTS, DATA_SURVEY_LINKS} from '../../data/constants';
import DatasetsButton from '../DatasetsButton';
@ -35,7 +35,7 @@ const DatasetContainer = () => {
<Grid desktop={{col: 1}}>
</Grid>
<Grid desktop={{col: 4}}>
<DatasetsButton href= {intl.locale === 'es' ? 'https://www.surveymonkey.com/r/ZPKY8G9' : 'https://www.surveymonkey.com/r/6G9TQJ8'} />
<DatasetsButton href= {intl.locale === 'es' ? DATA_SURVEY_LINKS.ES : DATA_SURVEY_LINKS.EN} />
</Grid>
</Grid>

View file

@ -51,7 +51,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<a
href="https://www.surveymonkey.com/r/6G9TQJ8"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_51EPev2O6jHiaJ8"
rel="noreferrer"
target="_blank"
>

View file

@ -12,7 +12,7 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.surveymonkey.com/r/P3LWTSB"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO"
rel="noreferrer"
target="_blank"
>
@ -25,7 +25,7 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.surveymonkey.com/r/6G9TQJ8"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_51EPev2O6jHiaJ8"
rel="noreferrer"
target="_blank"
>

View file

@ -211,7 +211,7 @@ exports[`J40Footer renders correctly 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/P3LWTSB"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO"
rel="noreferrer"
target="_blank"
>

View file

@ -5,6 +5,7 @@ import {Button} from '@trussworks/react-uswds';
import * as styles from './SurveyButton.module.scss';
import * as CONTACT_COPY from '../../data/copy/contact';
import J40MainGridContainer from '../J40MainGridContainer';
import {SITE_SATISFACTION_SURVEY_LINKS} from '../../data/constants';
// @ts-ignore
import launchIcon from '/node_modules/uswds/dist/img/usa-icons/launch.svg';
@ -12,8 +13,8 @@ import launchIcon from '/node_modules/uswds/dist/img/usa-icons/launch.svg';
const SurveyButton = () => {
const intl = useIntl();
const href = intl.locale === 'es' ?
`https://www.surveymonkey.com/r/ZH36CYV` :
`https://www.surveymonkey.com/r/P3LWTSB`;
SITE_SATISFACTION_SURVEY_LINKS.ES :
SITE_SATISFACTION_SURVEY_LINKS.EN;
return (
<J40MainGridContainer className={styles.surveyButtonContainer}>

View file

@ -7,7 +7,7 @@ exports[`rendering of the SurveyButton checks if component renders 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/P3LWTSB"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO"
rel="noreferrer"
target="_blank"
>