You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Chat -In offline, while edit comment, tapping on emoji picker moves cursor to compose box. #31709
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: 1.4.2-0 Reproducible in staging?: Y Reproducible in production?: Y 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: Applause-Internal Team Slack conversation: @
changed the title [-]Chat -In offline, while edit comment, tapping on emoji picker moves cursor to compose box.[/-][+][$500] Chat -In offline, while edit comment, tapping on emoji picker moves cursor to compose box.[/+]on Nov 22, 2023
As you can see above, we don't show the main composer when the edit composer gets blurred by emoji button or by tapping on other edit composer.
The problem here is that the id of emoji button was not properly set. When emoji button is tapped, relatedTargetId is empty.
Please check the following code
I am not able to understand the issue itself. Could someone explain more?
In offline, while edit comment, tapping on emoji picker moves cursor to compose box.
what does this mean actually? Should the cursor be in search or something else?
@mallenexpensify@abdulrahuman5196 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
[-]Chat -In offline, while edit comment, tapping on emoji picker moves cursor to compose box.[/-][+][$500] Chat -In offline, while edit comment, tapping on emoji picker moves cursor to compose box.[/+]melvin-bot commentedon Nov 22, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01f8d143448ba4dda0
melvin-bot commentedon Nov 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 22, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (
External)DylanDylann commentedon Nov 22, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat -In offline, while edit comment, tapping on emoji picker moves cursor to compose box
What is the root cause of that problem?
App/src/pages/home/report/ReportActionItemMessageEdit.js
Line 431 in f1e085b
In here relatedTargetID is null, so we call setShouldShowComposeInputKeyboardAware(true). It makes the main composer appear
What changes do you think we should make in order to solve the problem?
App/src/pages/home/report/ReportActionItemMessageEdit.js
Line 431 in f1e085b
In here we should check both targetID and relatedTargetID like that
What alternative solutions did you explore? (Optional)
dummy-1111 commentedon Nov 22, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
In edit composer, tapping on emoji picker button shows the main composer and moves cursor to it
What is the root cause of that problem?
App/src/pages/home/report/ReportActionItemMessageEdit.js
Lines 431 to 434 in 34d165e
As you can see above, we don't show the main composer when the edit composer gets blurred by emoji button or by tapping on other edit composer.
The problem here is that the id of emoji button was not properly set. When emoji button is tapped,
relatedTargetIdis empty.Please check the following code
App/src/components/Pressable/GenericPressable/index.tsx
Lines 10 to 19 in 34d165e
We removed the
nativeIDin this PR and used id instead intentionally, but we didn't remove the above code. soidprops is redefined as undefinedThis is the root cause
What changes do you think we should make in order to solve the problem?
Simply removing the below code would solve the issue
App/src/components/Pressable/GenericPressable/index.tsx
Line 18 in 34d165e
Note: We might need to remove all
nativeIDfrom the projectResult
31709.mp4
What alternative solutions did you explore? (Optional)
abdulrahuman5196 commentedon Nov 24, 2023
I am not able to understand the issue itself. Could someone explain more?
In offline, while edit comment, tapping on emoji picker moves cursor to compose box.what does this mean actually? Should the cursor be in search or something else?
dummy-1111 commentedon Nov 24, 2023
@abdulrahuman5196
Try the following steps in mobile web platforms
27 remaining items
mallenexpensify commentedon Dec 11, 2023
Reopening to try to reproduce via Browserstack. Will get to soon.
mallenexpensify commentedon Dec 12, 2023
@s-alves10
So, the issue is that the cursor briefly shows in the compose box before showing the emoji?

If so, I don't think this is a high-priority bug.
dummy-1111 commentedon Dec 12, 2023
@mallenexpensify
This issue isn't related to whether offline or online. I think this is a bug worth fixing
mallenexpensify commentedon Dec 12, 2023
@s-alves10 this is the bug though, correct?
dummy-1111 commentedon Dec 13, 2023
@mallenexpensify
yes
melvin-bot commentedon Dec 13, 2023
@mallenexpensify @abdulrahuman5196 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
abdulrahuman5196 commentedon Dec 14, 2023
This issue was already C+ approved. @mallenexpensify can we assign @yuwenmemon for internal engineer review?
melvin-bot commentedon Dec 18, 2023
@mallenexpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
abdulrahuman5196 commentedon Dec 18, 2023
@mallenexpensify to check on this - #31709 (comment)
mallenexpensify commentedon Dec 18, 2023
I'm going to close, I think this is low priority and not worth investing internal engineering resources.
More info here https://expensify.slack.com/archives/C01GTK53T8Q/p1702496349813859