Skip to content

Commit 5018663

Browse files
committed
Add sentry labels
1 parent 97a3c9e commit 5018663

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/CONST/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8172,6 +8172,11 @@ const CONST = {
81728172
VIEW_BUTTON: 'ReportPreview-ViewButton',
81738173
ADD_EXPENSE_BUTTON: 'ReportPreview-AddExpenseButton',
81748174
},
8175+
REQUEST_CONFIRMATION_LIST: {
8176+
RESET_SPLIT_SHARES: 'RequestConfirmationList-ResetSplitShares',
8177+
RECEIPT_THUMBNAIL: 'RequestConfirmationList-ReceiptThumbnail',
8178+
PDF_RECEIPT_THUMBNAIL: 'RequestConfirmationList-PDFReceiptThumbnail',
8179+
},
81758180
TRANSACTION_PREVIEW: {
81768181
CARD: 'TransactionPreview-Card',
81778182
},

src/components/MoneyRequestConfirmationList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ function MoneyRequestConfirmationList({
802802
accessibilityLabel={CONST.ROLE.BUTTON}
803803
role={CONST.ROLE.BUTTON}
804804
shouldUseAutoHitSlop
805+
sentryLabel={CONST.SENTRY_LABEL.REQUEST_CONFIRMATION_LIST.RESET_SPLIT_SHARES}
805806
>
806807
<Text style={[styles.pr5, styles.textLabelSupporting, styles.link]}>{translate('common.reset')}</Text>
807808
</PressableWithFeedback>

src/components/MoneyRequestConfirmationListFooter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ function MoneyRequestConfirmationListFooter({
962962
}}
963963
accessibilityRole={CONST.ROLE.BUTTON}
964964
accessibilityLabel={translate('accessibilityHints.viewAttachment')}
965+
sentryLabel={CONST.SENTRY_LABEL.REQUEST_CONFIRMATION_LIST.PDF_RECEIPT_THUMBNAIL}
965966
disabled={!shouldDisplayReceipt}
966967
disabledStyle={styles.cursorDefault}
967968
style={styles.h100}
@@ -990,6 +991,7 @@ function MoneyRequestConfirmationListFooter({
990991
disabled={!shouldDisplayReceipt || isThumbnail}
991992
accessibilityRole={CONST.ROLE.BUTTON}
992993
accessibilityLabel={translate('accessibilityHints.viewAttachment')}
994+
sentryLabel={CONST.SENTRY_LABEL.REQUEST_CONFIRMATION_LIST.RECEIPT_THUMBNAIL}
993995
disabledStyle={styles.cursorDefault}
994996
style={[styles.h100, styles.flex1]}
995997
>

0 commit comments

Comments
 (0)