Skip to content

Commit

Permalink
Update survey links on behalf of lscharen (#2255)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
vim-usds and lscharen committed Feb 8, 2024
1 parent c88df4e commit 8712ff5
Show file tree
Hide file tree
Showing 26 changed files with 980 additions and 612 deletions.
1,084 changes: 707 additions & 377 deletions client/src/components/AreaDetail/AreaDetail.tsx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/components/DatasetContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';


Expand All @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand All @@ -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"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down
5 changes: 3 additions & 2 deletions client/src/components/SurveyButton/SurveyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ 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';

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}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down
Loading

0 comments on commit 8712ff5

Please sign in to comment.