-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] Chat - App crash when reply in thread image #29446
Comments
Triggered auto assignment to @CortneyOfstad ( |
Job added to Upwork: https://www.upwork.com/jobs/~015aaed14521ed9d68 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
I think this is a regression from this PR #29134. |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crash when clicking reply in thread. What is the root cause of that problem?It's a regression from: We're using App/src/components/Tooltip/BaseTooltip.js Lines 36 to 38 in f942acd
What changes do you think we should make in order to solve the problem?Updated What alternative solutions did you explore? (Optional)N/A |
The issue is a regression from PR: #29134 ProposalPlease re-state the problem that we are trying to solve in this issueApp should not crash when reply in thread is clicked on an attachment. What is the root cause of that problem?The issue seems to be caused by the App/src/components/Tooltip/BaseTooltip.js Lines 44 to 55 in f942acd
What changes do you think we should make in order to solve the problem?Adding a condition to check if const updateBounds = (bounds) => {
if (bounds.width === 0) {
setIsRendered(false);
}
// Choose a bounding box for the tooltip to target.
// In the case when the target is a link that has wrapped onto
// multiple lines, we want to show the tooltip over the part
// of the link that the user is hovering over.
const betterBounds = chooseBoundingBox(target.current, initialMousePosition.current.x, initialMousePosition.current.y);
+ if (betterBounds) {
setWrapperWidth(betterBounds.width);
setWrapperHeight(betterBounds.height);
setXOffset(betterBounds.x);
setYOffset(betterBounds.y);
+ }
}; What alternative solutions did you explore? (Optional)Ensuring that function chooseBoundingBox(target, clientX, clientY) {
const slop = 5;
const bbs = target.getClientRects();
const clientXMin = clientX - slop;
const clientXMax = clientX + slop;
const clientYMin = clientY - slop;
const clientYMax = clientY + slop;
for (let i = 0; i < bbs.length; i++) {
const bb = bbs[i];
if (clientXMin <= bb.right && clientXMax >= bb.left && clientYMin <= bb.bottom && clientYMax >= bb.top) {
return bb;
}
}
// If no matching bounding box is found, fall back to the first one.
// This could only happen if the user is moving the mouse very quickly
// and they got it outside our slop above.
+ // or fallback to 0 values if no bounding box is found
- return bbs[0];
+ return bbs[0] || { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 };
} Videos:MacOS: Chrome / Safariweb.mov |
Hi, I’m Eto Olei from Callstack and I would like to work in this issue, because I am the author of the #29134 |
📣 @mollfpr 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
@teneeto will handle this as an author of the PR |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@mountiny Assign me as well |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
How do you see these so fast 🤯 |
App crashes when clicking on currency Action Performed:
Expected Result: App should not crash when clicking on currency 2023-10-12.19-57-56.mp4 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
I am going to be OoO when this needs to be paid, so reassigning the BZ label 👍 Payment Summary
|
Triggered auto assignment to @laurenreidexpensify ( |
Payment Summary
|
@laurenreidexpensify This is a regression. We only need to pay the bug reporter here. This can be closed. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: Dev 1.3.83.1
Reproducible in staging?: n
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697117854435399
Action Performed:
Expected Result:
App does not crash
Actual Result:
App crash
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2023-10-12.at.20.38.04.mov
MacOS: Desktop
Screen.Recording.2023-10-12.at.20.47.58.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: