Repository navigation
Conversation
|
|
|
@bernhardoj 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62bece9edd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
dariusz-biela
left a comment
There was a problem hiding this comment.
LGTM I'm just leaving a few non-blocking comments that are worth addressing.
| `@sentry/browser-utils` ships its own copy of `htmlTreeAsString`, which INP, CLS and LCP spans, click breadcrumbs and Session Replay use. This logic used to be patched into the `@sentry/core` copy, which the browser SDK stopped calling after the upgrade to `@sentry/core` 10.73 (https://github.com/Expensify/App/commit/9689acf98e3), so labels disappeared from web spans from release 9.4.76 on. | ||
| - Upstream PR/issue: https://github.com/getsentry/sentry-javascript/pull/18398 | ||
| - E/App issue: https://github.com/Expensify/App/issues/76128 | ||
| - PR Introducing Patch: https://github.com/Expensify/App/pull/76547 |
There was a problem hiding this comment.
#76547 never touched browser-utils. This PR is the one that adds this patch.
| - PR Introducing Patch: https://github.com/Expensify/App/pull/76547 | |
| - PR Introducing Patch: https://github.com/Expensify/App/pull/104340 |
|
@mountiny Does this need a C+ review? |
|
I dont think it does |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.15-1 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.5.15-3 🚀
Bundle Size Analysis (Sentry): |
|
@MelvinBot please create an issue based on this plan: Improve
|
|
I created Improve data-sentry-label granularity and add inp.category grouping for Sentry INP with all 6 steps of your plan. It links back to this PR and to the umbrella issue, [Sentry] Extending Sentry Analysis to Systematically Reduce High INP Events. I found no existing issue that covers this work. I didn't add labels or assignees. |
Explanation of Change
Related to #100711
Since the
@sentry/core10.73 bump (9.4.76), web INP/CLS/LCP spans and click breadcrumbs use@sentry/browser-utils' ownhtmlTreeAsString, so ourdata-sentry-labelpatch on@sentry/corebecame dead code and labels vanished from Sentry. This moves the patch to@sentry/browser-utilsand drops the unused core hunk.See labeled clicks trace where it drops to 0
Fixed Issues
$ #100694
PROPOSAL: N/A
Tests
Test 1: Labeled pressables are identified by their label
npm iso the new patch is applied, then start the web app withnpm run weband log inCtrl + D(or go to Settings > Troubleshoot) to open the test tools, enable "Log Sentry requests to console" and set "Highlighted span names" toui.interaction.click[SPAN][ui.interaction.click]entry whose description is a label selector such as[data-sentry-label="LHN-OptionRow"]or[data-sentry-label="NavigationTabBar-Account"], not a barediv.css-…selectorTest 2: Elements without a label keep the default selector
data-sentry-labelon it or its ancestors (for example, empty space in a report's chat area)ui.interaction.clickspan description is the plain CSS selector (for examplediv.css-175oi2r > …) and that no errors appear in the consoleOffline tests
N/A
QA Steps
[No QA] — telemetry-only change with no user-facing behavior. After deploy, an engineer can verify it in Sentry:
appprojectspan.op:ui.interaction.click span.description:*data-sentry-label*and filter by the release containing this PRPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-10-19.at.12.03.46.mov