Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(survey): switch survey links from SurveyMonkey to qualtrics #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/components/AppFooter/__snapshots__/AppFooter.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,23 @@ exports[`rendering of AppFooter Component > checks if component renders 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/WBNTJNC"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_aVPdC5qtPNhCw3s"
rel="noreferrer"
target="_blank"
>
<strong>
Share your feedback
</strong>
<button
className="usa-button"
data-testid="button"
type="button"
>
<strong>
Share your feedback
</strong>
<img
alt="launch icon"
src="/node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg"
/>
</button>
</a>
</div>
</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`rendering of BtnLaunchExternal Component > checks if component renders
test
<img
alt="launch icon"
src="/node_modules/.pnpm/@[email protected]/node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg"
src="/node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg"
/>
</div>
</button>
Expand Down
36 changes: 28 additions & 8 deletions src/components/Layout/__snapshots__/Layout.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,23 @@ exports[`rendering of AppFooter Component > checks if component renders 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/WBNTJNC"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_aVPdC5qtPNhCw3s"
rel="noreferrer"
target="_blank"
>
<strong>
Share your feedback
</strong>
<button
className="usa-button"
data-testid="button"
type="button"
>
<strong>
Share your feedback
</strong>
<img
alt="launch icon"
src="/node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg"
/>
</button>
</a>
</div>
</footer>
Expand Down Expand Up @@ -1033,13 +1043,23 @@ exports[`rendering of Layout Component > checks if component renders 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/WBNTJNC"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_aVPdC5qtPNhCw3s"
rel="noreferrer"
target="_blank"
>
<strong>
Share your feedback
</strong>
<button
className="usa-button"
data-testid="button"
type="button"
>
<strong>
Share your feedback
</strong>
<img
alt="launch icon"
src="/node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg"
/>
</button>
</a>
</div>
</footer>,
Expand Down
17 changes: 10 additions & 7 deletions src/components/SurveyButton/SurveyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
import React from 'react';
// import { Button } from '@trussworks/react-uswds';
import { Button } from '@trussworks/react-uswds';

import * as styles from './SurveyButton.module.scss';
import MainGridContainer from '../MainGridContainer';

// import { SurveyButtonProps } from '@/types';
// @ts-ignore
import launchIcon from '../../../node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg';
import { FEEDBACK_SURVEY_LINKS } from '../../data/constants';

const SurveyButton: React.FC = () => {
return (
<MainGridContainer className={styles.surveyButtonContainer}>
<a
href={`https://www.surveymonkey.com/r/WBNTJNC`}
href={FEEDBACK_SURVEY_LINKS.EN}
target="_blank"
rel="noreferrer"
// Todo: Figure out how to get the external link working without having to use the icon
// className={`usa-link usa-link--alt usa-link--external ${styles.surveyButton}`}
className={styles.surveyButton}
>
{/* <Button type="button" className={styles.surveyButton}> */}
<strong>Share your feedback</strong>
{/* <img
<Button type="button" className={styles.surveyButton}>
<strong>Share your feedback</strong>
<img
className={styles.launchIcon}
src={launchIcon}
alt={`launch icon`}
/> */}
{/* </Button> */}
/>
</Button>
</a>
</MainGridContainer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ exports[`rendering of SurveyButton Component > checks if component renders 1`] =
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/WBNTJNC"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_aVPdC5qtPNhCw3s"
rel="noreferrer"
target="_blank"
>
<strong>
Share your feedback
</strong>
<button
className="usa-button"
data-testid="button"
type="button"
>
<strong>
Share your feedback
</strong>
<img
alt="launch icon"
src="/node_modules/@uswds/uswds/dist/img/usa-icons/launch.svg"
/>
</button>
</a>
</div>
`;
6 changes: 6 additions & 0 deletions src/data/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ export const FOOTER_CEQ_ADDRESS = {
export const DELIMITERS = {
PARAGRAPH: `%%%%`,
};

// Survey Links
export const FEEDBACK_SURVEY_LINKS = {
EN: `https://eop.gov1.qualtrics.com/jfe/form/SV_aVPdC5qtPNhCw3s`,
ES: ``,
};