-
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-08-03] [HOLD for payment 2023-08-02] [$500] DEV: Web - Unable to paste copied text into emoji search box #23502
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to paste copied text into emoji search box. What is the root cause of that problem?In App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 149 to 201 in a906877
So user is unable to paste text into emoji search box. What changes do you think we should make in order to solve the problem?We can add this.pasteHandler = (event) => {
if (!this.searchInput) {
return;
}
const text = (event.clipboardData || window.clipboardData).getData('text');
this.searchInput.value += text;
this.filterEmojis(this.searchInput.value);
} And remove handler in document.removeEventListener('keydown', this.pasteHandler); What alternative solutions did you explore? (Optional)None. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copy paste does not work in the EmojiPickerMenu component What is the root cause of that problem?Due to recent changes in the App/src/components/Composer/index.js Lines 309 to 323 in a906877
This makes it work for the parent/first mounted component but preventing default behavior ends up in preventing other handlers/inputs to work as expected. Hence the expected native handler of the input does nothing. What changes do you think we should make in order to solve the problem?As it was before move handlePaste(event) {
const isVisible = this.props.checkComposerVisibility();
const isFocused = this.textInput.isFocused();
if (!(isVisible || isFocused)) {
return;
}
if (this.textInput.id !== event.target.id) {
return;
}
event.preventDefault(); Video of solution working: 23470.solution.working.webmWhat alternative solutions did you explore? (Optional)Create a new handler in the component but is just not tackling it in the root. |
Job added to Upwork: https://www.upwork.com/jobs/~014a88b8b12d4216db |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
📣 @Santhosh-Sellavel Please request via NewDot manual requests for the Contributor role ($1000) |
📣 @honnamkuan 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@robertKozik check this out #23502 (comment)! |
Stepping in here as this would be unfortunate regression in staging. Assigning Santosh as the C+ here as they came from the PR with Robert who is now C+ as well. @StevenKKC thank you for your quick proposal, I must admit I think that @daordonez11 proposal which implements the fix in Composer itself. I will make the reward half here with no urgency bonus given this is a regression but Robert most likely is not online to work on this at this time. Also let's do no reward for C+ given this was a regression from the previous PR. I hope thats understandable. @daordonez11 would you be able to create the PR and ensure that pasting works correctly with multiple composers open? ie with edit mode you can have multiple composers. |
📣 @Santhosh-Sellavel Please request via NewDot manual requests for the Reviewer role ($1000) |
📣 @daordonez11 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Upwork job price has been updated to $500 |
Okay, @mountiny that makes sense! |
🚀 Thanks for the hustle |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
PR is being CPed |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-7 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-08-02. 🎊 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.46-2 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-08-03. 🎊 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:
|
@mountiny & company it looks like you just need the payment summary and upwork payment from me here? |
@adelekennedy correct, thank you! |
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:
cc: @mountiny if differ on any let me know, thanks! |
Payment Summary |
No due in payment for here, thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Text pasted into emoji search text input successfully
Actual Result:
Emoji search text remains empty after text paste attempt
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev v1.3.44-0
Reproducible in staging?: no
Reproducible in production?: no
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
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-07-24.at.3.11.51.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @honnamkuan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690183117515199
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: