-
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 2024-06-03] [$250] mWeb - Chat - In edit comment, changed skin tone is not applied #42058
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.The preferred skin tone doesn't update in edit composer, but updates in main composer. What is the root cause of that problem?The preferred skin tone value is passed from the ReportActionItem to the composer. App/src/pages/home/report/ReportActionItem.tsx Lines 1021 to 1025 in 3bdb08d
App/src/pages/home/report/ReportActionItem.tsx Lines 675 to 676 in 3bdb08d
And ReportActionItem use a memo to optimize the rendering, but we haven't consider the case for the preferred skin tone, so even after it's updated, the component never re-renders. App/src/pages/home/report/ReportActionItem.tsx Lines 1053 to 1087 in 3bdb08d
What changes do you think we should make in order to solve the problem?Check for preferred skin tone in the memo. What alternative solutions did you explore? (Optional)Move the preferred skin tone onyx connection to edit composer component. as pointed out by the comment, the reason we pass the preferred skin tone from ReportActionItem to edit composer is because it causes a crash because the app tries to focus on the edit composer but it's not rendered yet because delayed by withOnyx (ref). However, I can't reproduce it anymore, but to be safe, we can set an initial value to it just like what we already did or use useOnxy to be safer. |
Job added to Upwork: https://www.upwork.com/jobs/~013cd26a26b248adb5 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@bernhardoj Thanks for the proposal. Your RCA is correct. The onyx bug technically is still reproducible as the HOC can still return 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @s77rt |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.75-1 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 2024-06-03. 🎊 For reference, here are some details about the assignees on this 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:
|
Regression Test Proposal
|
All paid up and QA'd, closing! |
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: 1.4.73
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4554707
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
In edit comment, changed skin tone must be applied
Actual Result:
In edit comment, changed skin tone is not applied
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6479206_1715597160442.Skin.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: