-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 newdot payment after BugZero checklist is complete] [$1000] Pressing escape on the composer deletes your message, and CMD+Z doesn't bring it back #22053
Comments
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Escape in composer removes the draft and CMD Z does not restore it. What is the root cause of that problem?This is the part of code in
This clears the draft on clicking What changes do you think we should make in order to solve the problem?I see the point of removing mentions with What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.After typing text into composer input, pressing Esc and then Ctrl-Z does not bring the text back. What is the root cause of that problem?The current logic update the comment to empty via state change instead of user interactions. App/src/pages/home/report/ReportActionCompose.js Lines 806 to 807 in c0ece67
What changes do you think we should make in order to solve the problem?We need to execute browser commands It will be a browser specific command, so logic will be implemented in
if (e.key === CONST.KEYBOARD_SHORTCUTS.ESCAPE.shortcutKey) {
e.preventDefault();
if (suggestionsExist) {
this.resetSuggestions();
} else if (this.comment.length > 0) {
ComposerUtils.clearComment();
this.updateComment('', true);
}
return;
} Results
Screen.Recording.2023-07-02.at.12.23.55.PM.movWhat alternative solutions did you explore? (Optional) |
I think this is intentional... @shawnborton |
@roryabraham just to confirm the desired behaviour, |
Job added to Upwork: https://www.upwork.com/jobs/~018379455c4980f440 |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
Either |
You can store the contents of the message body in a temporal var and listen for the ctrl+z to replace the current msg body with the temporal var value |
📣 @oluwagbemigadavid! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Proposal from @honnamkuan looks good to me #22053 (comment) |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Before assigning, I'd love to confirm the expected behavior here @shawnborton and @roryabraham. To me, I feel like |
Guys @shawnborton @roryabraham any updates here? |
Sharing some links relevant to the earlier decision to make Esc clear composer input: Slack: https://expensify.slack.com/archives/C049HHMV9SM/p1681480139063839 |
Thanks @honnamkuan! Based on the discussion text should be removed - when you click on Esc button, and CMD+Z should bring it back. I think we good to go @dangrous |
The premise that since pressing Esc cancels the edit, pressing Esc in composer should reset it does not appear to be logical. |
I'm following up in that convo, thank you for the link! Sorry for the delay, I just am still not sold on this behavior |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.39-11 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-07-20. 🎊 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.
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:
|
@c3024 I've sent you an Upwork contract, please accept! @narefyev91 If you're being paid via newdot please let me know, otherwise let me know your upwork details and I'll send across a contract. Also, please don't forget the checklist! |
@kadiealexander Thank you. Accepted. PR was merged within 3 days and this is eligible for bonus. Will the bonus be paid as a separate Upwork job? |
It will be paid as a bonus on this Upwork job :) The total payment will be $1500. |
I think we're still waiting on the checklist, anything else needed on this one? |
Just the checklist and C+ payment :) |
Hey @narefyev91! Let us know when you have a chance to look at that checklist - thank you! |
|
yep i think that's all right! |
I think we're just waiting on the C+ payment here now, right? |
I'm from Callstack - not needs any additional payments from NewDot or Upwork :-) |
Ah, lovely! @kadiealexander when you have time I think we can update the payment checklist to reflect that ^ and then can close! |
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:
Your draft message should come back
Actual result:
Your draft message is gone forever
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.35-5
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
Notes/Photos/Videos: Any additional supporting documentation
Recording.5259.mp4
Expensify/Expensify Issue URL:
Issue reported by: @roryabraham
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688153029272289
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: