[No QA] feat: Add sentryLabel for INP debugging across report page components (part 2)#77513
Conversation
Add sentryLabel prop to track user interactions for Sentry INP monitoring: - TaskPreview: card pressable and checkbox - TaskView: title, checkbox, description and assignee menu items - TaskHeaderActionButton: mark complete/incomplete button - MenuItem: add sentryLabel prop support for all menu items
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…tton to BaseTextInput
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
…page-2 # Conflicts: # src/components/TextInput/TextInputClearButton/index.tsx
|
@rlinoz Does this PR require C+ review? |
- Replace deprecated blurOnSubmit with submitBehavior in EmojiPickerMenu - Change namespace import to named imports in EmojiPickerMenuItem
…page-2 # Conflicts: # src/CONST/index.ts # src/components/ButtonWithDropdownMenu/types.ts # src/components/EmojiPicker/EmojiPickerButton.tsx # src/components/TaskHeaderActionButton.tsx
|
Hey @DylanDylann I think we are good, just adding sentry labels, thanks! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.84-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.84-8 🚀
|
Explanation of Change
This PR continues adding Sentry INP (Interaction to Next Paint) labels to interactive components on the report page to enable performance monitoring and debugging of user interactions. This is part 2 following PR #77397.
Changes made:
Added SENTRY_LABEL constants in
src/CONST/index.tsfor the following categories:REPORT_PREVIEW- card, carousel arrows, submit/approve/pay/export/view/add expense buttonsTRANSACTION_PREVIEW- expense cardEMOJI_PICKER- button, dropdown button, menu item, skin tone toggle/items, category shortcuts, search inputEMOJI_REACTIONS- reaction bubble, add reaction bubbleMINI_CONTEXT_MENU- quick reaction, emoji picker buttonTASK- preview card, preview checkbox, view title, view checkbox, view description, view assignee, header action buttonExtended component types with optional
sentryLabelprop:AnimatedSubmitButtonBaseMiniContextMenuItemButtonWithDropdownMenuandDropdownOptionSettlementButtonandAnimatedSettlementButtonExportWithDropdownMenuMenuItemBaseTextInputTextInputClearButtonApplied labels to interactive elements across report page components:
MoneyRequestReportPreviewContent.tsx- expense report card, carousel navigation, action buttonsTransactionPreview/index.tsx- individual expense cardsEmojiPickerButton.tsx,EmojiPickerButtonDropdown.tsx- emoji picker triggersEmojiPickerMenuItem(web + native) - emoji items in pickerEmojiSkinToneList.tsx- skin tone selectionCategoryShortcutButton.tsx- emoji category shortcutsEmojiPickerMenu(web + native) - search inputEmojiReactionBubble.tsx,AddReactionBubble.tsx- message reactionsMiniQuickEmojiReactions.tsx- quick reaction buttons in mini context menuTaskPreview.tsx- task preview card and checkboxTaskView.tsx- task title, checkbox, description and assignee menu itemsTaskHeaderActionButton.tsx- mark complete/incomplete buttonNo logic changes
This PR contains no functional changes - only metadata annotations for Sentry performance tracking.
Fixed Issues
$ #76128
PROPOSAL:
Tests
[data-sentry-label]attribute using Ctrl+F / Cmd+Fdata-sentry-labelattributes:Note: This is the second batch of labels for the report page. Additional labels will be added in follow-up PRs.
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos