From efaf1b2129929a298d89bcf52eab6ee694bec4e3 Mon Sep 17 00:00:00 2001 From: Alex Ruef Date: Wed, 4 Sep 2024 14:28:18 -0700 Subject: [PATCH] removed getting started and feedback links --- package.json | 2 +- src/features/__tests__/About.test.tsx | 6 +---- src/features/about/SupportResources.tsx | 26 ---------------------- src/ui/Footer.tsx | 13 ----------- src/ui/HeaderNav/HelpMenu.tsx | 10 --------- src/ui/MainNav/MobileMenuFooter.tsx | 11 --------- src/ui/__tests__/Footer.test.tsx | 4 +--- src/ui/__tests__/Header.test.tsx | 1 - src/ui/__tests__/HelpMenu.test.tsx | 13 ----------- src/ui/__tests__/MobileMenuFooter.test.tsx | 3 +-- yarn.lock | 8 +++---- 11 files changed, 8 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index ccf1e6c9..30eb3639 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@osu-wams/hooks": "1.0.146", "@osu-wams/lib": "0.1.87", "@osu-wams/theme": "0.1.6", - "@osu-wams/utils": "0.0.29", + "@osu-wams/utils": "0.0.30", "@reach/accordion": "^0.11.2", "@reach/dialog": "^0.11.2", "@reach/menu-button": "^0.10.5", diff --git a/src/features/__tests__/About.test.tsx b/src/features/__tests__/About.test.tsx index 152d8db6..40dc4735 100644 --- a/src/features/__tests__/About.test.tsx +++ b/src/features/__tests__/About.test.tsx @@ -40,12 +40,8 @@ describe('', () => { it('should have support resources links that are tracked via GA', () => { render(); - const started = screen.getByText(/getting started/i); const getHelp = screen.getByText(/Get help/i); - const giveFeedback = screen.getByText(/Give us feedback/i); - userEvent.click(started); userEvent.click(getHelp); - userEvent.click(giveFeedback); - expect(mockGAEvent).toHaveBeenCalledTimes(3); + expect(mockGAEvent).toHaveBeenCalledTimes(1); }); }); diff --git a/src/features/about/SupportResources.tsx b/src/features/about/SupportResources.tsx index a5ba69b2..ece2acc5 100644 --- a/src/features/about/SupportResources.tsx +++ b/src/features/about/SupportResources.tsx @@ -4,8 +4,6 @@ import Icon from 'src/ui/Icon'; import { faCogs, faUserHeadset, - faCommentAltLines, - faExternalLink, } from '@fortawesome/pro-light-svg-icons'; import { Card, CardHeader, CardContent, CardIcon, CardFooter } from 'src/ui/Card'; import { @@ -25,18 +23,6 @@ const SupportResources: FC = () => { } /> - - Event('about', 'feedback')} - > - - - Give us feedback on MyOregonState - - - { - - Event('about', 'getting started')} - > - - - Getting started - - - diff --git a/src/ui/Footer.tsx b/src/ui/Footer.tsx index f17c61c6..70841685 100644 --- a/src/ui/Footer.tsx +++ b/src/ui/Footer.tsx @@ -121,19 +121,6 @@ const Footer = () => {
Get Support - Event('footer', 'Give Feedback link')} - > - -
- Give Feedback -
{ Get Help - - Event('header', 'help-button-menu', 'Give feedback link clicked')} - > - - Give feedback - diff --git a/src/ui/MainNav/MobileMenuFooter.tsx b/src/ui/MainNav/MobileMenuFooter.tsx index a6948a79..04bfc313 100644 --- a/src/ui/MainNav/MobileMenuFooter.tsx +++ b/src/ui/MainNav/MobileMenuFooter.tsx @@ -19,17 +19,6 @@ const MobileMenuFooter = ({ toggleFullMenu, ...props }) => { Help - { - toggleFullMenu(false); - Event('footer-menu-nav', 'Feedback link clicked'); - }} - > - - Feedback - { diff --git a/src/ui/__tests__/Footer.test.tsx b/src/ui/__tests__/Footer.test.tsx index 3718354a..c87f2a37 100644 --- a/src/ui/__tests__/Footer.test.tsx +++ b/src/ui/__tests__/Footer.test.tsx @@ -79,18 +79,16 @@ it('Links to be present and tracked in Google Analytics', async () => { renderWithUserContext(