Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.
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
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ For quick reference, the table below shows the value that each generic parameter
vama_givefb_open | linkType | | | | | | | | | |
vama_lab_or_test_details | labType | | | | | | | | | |
vama_lab_or_test_list | timeFrame | | | | | | | | | |
vama_large_nav_btn_click | buttonTitle | | | | | | | | | |
vama_link_click | locationData | phoneNumber | textNumber | TTYnumber | url | type | text | testID | claim_id | claim_type | claim_step
vama_login_start | isBiometric | | | | | | | | | |
vama_pagination | pages | to_page | tab | | | | | | | |
Expand Down
9 changes: 8 additions & 1 deletion VAMobile/src/components/LargeNavButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import { Icon } from '@department-of-veterans-affairs/mobile-component-library'
import { colors } from '@department-of-veterans-affairs/mobile-tokens'

import { Box, TextView } from 'components'
import { Events } from 'constants/analytics'
import { NAMESPACE } from 'constants/namespaces'
import { a11yHintProp } from 'utils/accessibility'
import { logAnalyticsEvent } from 'utils/analytics'
import { useTheme } from 'utils/hooks'

const SkeletonLoader = () => {
Expand Down Expand Up @@ -77,11 +79,16 @@ const LargeNavButton: FC<HomeNavButtonProps> = ({

const accessibilityLabel = `${title} ${showLoading ? t('loadingActivity') : subText || ''}`.trim()

const handlePress = () => {
logAnalyticsEvent(Events.vama_large_nav_btn_click(title))
onPress()
}

return (
// eslint-disable-next-line react-native-a11y/has-accessibility-hint
<Pressable
style={pressableStyle}
onPress={onPress}
onPress={handlePress}
accessible={true}
accessibilityRole={'link'}
testID={testID}
Expand Down
8 changes: 8 additions & 0 deletions VAMobile/src/constants/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,14 @@ export const Events = {
name: 'vama_hs_scroll_var',
}
},
vama_large_nav_btn_click: (buttonTitle: string): Event => {
return {
name: 'vama_large_nav_btn_click',
params: {
p1: buttonTitle,
},
}
},
vama_letter_download: (letterName: string): Event => {
return {
name: 'vama_letter_download',
Expand Down
Loading