Fix ManualSendMessage metrics measurements#82321
Conversation
|
@MonilBhavsar 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87b4c9717a
ℹ️ 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".
src/pages/inbox/report/ReportActionCompose/ReportActionCompose.tsx
Outdated
Show resolved
Hide resolved
src/pages/inbox/report/ReportActionCompose/ReportActionCompose.tsx
Outdated
Show resolved
Hide resolved
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
I can help if this requires C+ review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b5988646ae
ℹ️ 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".
src/pages/inbox/report/ReportActionCompose/ReportActionCompose.tsx
Outdated
Show resolved
Hide resolved
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required on this one.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-02-16.at.6.53.32.pm.mov |
|
@marcochavezf 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] |
|
🎯 @mkhutornyi, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #82589. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 27219ed2c0
ℹ️ 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".
src/pages/inbox/report/ReportActionCompose/ReportActionCompose.tsx
Outdated
Show resolved
Hide resolved
|
This PR picked up a conflict |
src/pages/inbox/report/ReportActionCompose/ReportActionCompose.tsx
Outdated
Show resolved
Hide resolved
…-metrics Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
mountiny
left a comment
There was a problem hiding this comment.
LGTM, can you make sure to go through all the comments pending and address/ resolve them please
|
Seems like all the threads and addressed or resolved, so I'm going to go ahead and merge this. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.3.24-1 🚀
|
|
Hi @cristipaval. Does this PR apply only to Web? |
|
I don't believe it does, no. I think it applies to all platforms. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.3.24-3 🚀
|
The ManualSendMessage Sentry span was unreliable — it used a single global span ID, so any TextCommentFragment rendering (incoming messages, other pane re-renders) could end someone else's span. If the user scrolled up when sending, the message rendered off-screen, and the span could stay open for tens of seconds until something else accidentally closed it.
Explanation of Change
reportActionIDin its ID (ManualSendMessage_), so only the fragment for that exact message can end it.ActionListContextvalue creation into the newuseActionListContextValuehook, removing boilerplate fromReportScreenandSearchMoneyRequestReportPage. Added thescrollOffsetRefto it to help with the previous bullet.cancelSpansByPrefixto clean up any orphanedsend-messagespans when navigating away from a report.Fixed Issues
Part of #77176
PROPOSAL:
Tests
Tested that message sending works as expected.
1. Basic send message (scrolled to bottom)
Open any 1:1 chat (scrolled to bottom)
Send a message
Verify the message appears and chat stays scrolled to bottom
Verify no console errors
2. Send message while scrolled up
Open a chat with long history
Scroll up significantly (past the 250px threshold)
Send a message
Verify the message is sent successfully
3. Send message in RHP
Open a chat in the central pane
Open the same chat's thread or the chat itself in the RHP
Send a message from the RHP
Verify the message appears in both panes
Offline tests
QA Steps
Same as Tests
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-16.at.20.16.10.mov