Skip to content

Commit 5b813b5

Browse files
adhorodyskiclaude
andcommitted
Add sentryLabel to Wallet, Rules, and TeachersUnite settings pages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 25bb7c3 commit 5b813b5

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

src/CONST/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8762,9 +8762,6 @@ const CONST = {
87628762
INTERACTIVE_STEP_SUB_HEADER: {
87638763
STEP_BUTTON: 'InteractiveStepSubHeader-StepButton',
87648764
},
8765-
WALLET: {
8766-
ADD_BANK_ACCOUNT: 'Wallet-AddBankAccount',
8767-
},
87688765
SOCIALS: {
87698766
LINK: 'Socials',
87708767
},
@@ -8820,10 +8817,18 @@ const CONST = {
88208817
DELEGATE_REMOVE: 'SettingsSecurity-DelegateRemove',
88218818
},
88228819
SETTINGS_WALLET: {
8820+
ADD_BANK_ACCOUNT: 'SettingsWallet-AddBankAccount',
88238821
IMPORT_TRANSACTIONS: 'SettingsWallet-ImportTransactions',
88248822
TRANSFER_BALANCE: 'SettingsWallet-TransferBalance',
88258823
ENABLE_WALLET: 'SettingsWallet-EnableWallet',
88268824
},
8825+
SETTINGS_RULES: {
8826+
NEW_RULE: 'SettingsRules-NewRule',
8827+
},
8828+
SETTINGS_TEACHERS_UNITE: {
8829+
I_KNOW_A_TEACHER: 'SettingsTeachersUnite-IKnowATeacher',
8830+
I_AM_A_TEACHER: 'SettingsTeachersUnite-IAmATeacher',
8831+
},
88278832
SETTINGS_SUBSCRIPTION: {
88288833
EXPLORE_PLANS: 'SettingsSubscription-ExplorePlans',
88298834
SAVE_WITH_EXPENSIFY: 'SettingsSubscription-SaveWithExpensify',

src/pages/TeachersUnite/SaveTheWorldPage.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import useTheme from '@hooks/useTheme';
1212
import useThemeStyles from '@hooks/useThemeStyles';
1313
import useWaitForNavigation from '@hooks/useWaitForNavigation';
1414
import Navigation from '@libs/Navigation/Navigation';
15+
import CONST from '@src/CONST';
1516
import type {TranslationPaths} from '@src/languages/types';
1617
import ROUTES from '@src/ROUTES';
1718
import SCREENS from '@src/SCREENS';
@@ -30,10 +31,12 @@ function SaveTheWorldPage() {
3031
{
3132
translationKey: 'teachersUnitePage.iKnowATeacher',
3233
action: waitForNavigate(() => Navigation.navigate(ROUTES.I_KNOW_A_TEACHER)),
34+
sentryLabel: CONST.SENTRY_LABEL.SETTINGS_TEACHERS_UNITE.I_KNOW_A_TEACHER,
3335
},
3436
{
3537
translationKey: 'teachersUnitePage.iAmATeacher',
3638
action: waitForNavigate(() => Navigation.navigate(ROUTES.I_AM_A_TEACHER)),
39+
sentryLabel: CONST.SENTRY_LABEL.SETTINGS_TEACHERS_UNITE.I_AM_A_TEACHER,
3740
},
3841
];
3942

@@ -44,6 +47,7 @@ function SaveTheWorldPage() {
4447
shouldShowRightIcon: true,
4548
link: '',
4649
wrapperStyle: [styles.sectionMenuItemTopDescription],
50+
sentryLabel: item.sentryLabel,
4751
}));
4852
}, [translate, waitForNavigate, styles]);
4953

src/pages/settings/Rules/ExpenseRulesPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ function ExpenseRulesPage() {
195195
icon={icons.Plus}
196196
text={translate('expenseRulesPage.newRule')}
197197
style={[shouldUseNarrowLayout && styles.flex1]}
198+
sentryLabel={CONST.SENTRY_LABEL.SETTINGS_RULES.NEW_RULE}
198199
/>
199200
</View>
200201
);

src/pages/settings/Wallet/PaymentMethodList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ function PaymentMethodList({
478478
title={translate('bankAccount.addBankAccount')}
479479
icon={Expensicons.Plus}
480480
wrapperStyle={[styles.paymentMethod, listItemStyle]}
481-
sentryLabel={CONST.SENTRY_LABEL.WALLET.ADD_BANK_ACCOUNT}
481+
sentryLabel={CONST.SENTRY_LABEL.SETTINGS_WALLET.ADD_BANK_ACCOUNT}
482482
/>
483483
),
484484

0 commit comments

Comments
 (0)