-
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 2021-11-12] LHN: Hide the pencil icon when message is sent or draft is deleted and show the icon when user started to type #6050
Comments
Triggered auto assignment to @SofiedeVreese ( |
Posted on Upwork: https://www.upwork.com/jobs/~013ddffbd27504e496 |
@mountiny did you want to CME this one? Let me know if not, and I can remove you from the issue and assign a CME. |
Proposal
|
@SofiedeVreese I would like to keep this as I was CME on issue, which kind of introduced this problem and this is an improvement from it 😅 . @marktoman Hi Mark! Thank you for your proposal, I am not sure if this proposal really solves the problem described in the issue body. Could you please elaborate a bit more and ideally include a screen recording of the behaviour being fixed/being as expected with those proposed changes? Thank you very much! |
@mountiny Sure. Currently I have separated the reorder behavior from the update by:
expensify-.6050.mp4 |
@marktoman Thank you for the clarification. Sorry if this was not clear form the issue description, but could we look into making the pencil icon show up/hide immediately when some text is added/removed? There is a delay now, I am not sure if that requires some more substantial changes. Thank you very much for looking into this one! |
Done. I will post a complete solution soon. expensify-.6050-2.mp4 |
Not sure if it's helpful but... the reproduction steps that I found while testing are
Regardless... I only think the pencil icon should be shown when there is a background chat that contains text in the compose box or an uncompleted action (which I can't think of what any of those might be since uploading an attachment is it's own modal and requesting money pops out RHN) |
@mallenexpensify Alright, this is about what we want the behaviour to look like in the end. I remember we were discussing it before, we can update the expected behaviour, however, it would most likely complicate the solution. I think that for now, the pencil icon appearing right when you start to type is not as distracting since it is a moment you hit the keyboard. I think we should first change it to show the icon immediately when there is some text. If we would then find this not ideal either, we could create new issue to improve it, but I would not add it to scope of this issue. |
The solution brings two changes:
|
@marktoman Thank you for working on that proposal. I will have a look over it properly but so far I like it. Could you please apply for the job on Upwork and post here once you have done so? Since we would make a few changes in this, we need to make sure this gets tested really well for any regressions. @SofiedeVreese Could you please hire @marktoman on Upwork, once they apply? Thank you very much 🙇 |
Also I noticed now this will be your first PR in this App! Great to have you onboard and I hope we can get this change to successful end 🎉 For future reference, avoid creating a PR before you are hired or assigned to the job and just write the proposal out in here, with video/image as prove it works. Once an assigned engineer will approve, feel free to start the PR:) |
@mountiny @SofiedeVreese Applied. Thank you, glad you like it! |
Hi @marktoman I've just hired you in Upwork! |
@marktoman Congratulations! Just as a reminder of our contributor guidelines, as a first time contributor, you can only work on one issue at a time. Once we finish this one, you can send proposals to many issues and potentially work on them in parallel. |
PR is in a review! |
LHN: Hide the pencil icon when message is sent or draft is deleted and show the icon when user started to type #6050
Close to being deployed. |
@marktoman @SofiedeVreese There has been a regression detected which has been introduced in PR solving this issue. We need to resolve that. Link is slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1636082766011900 |
Looks like the regression's been fixed. I'm going to add a "hold for payment", 7 days from the original deploy. |
@SofiedeVreese To our best knowledge, the only place where the reported error or any related issue could occur has indeed been fixed. Thank you for putting this forward. |
@SofiedeVreese Confirming this job shoul dbe good to pay out on the 12th. |
Paid and closed! Thanks for your patience @marktoman. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.14-4 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 2021-11-22. 🎊 |
Hmm that's weird ^ It was already deployed 🤷 |
|
Oh actually looking into this more, #6084 (comment) the original PR has been deployed to production just now so the comment was correct after all, so we have paid out prematurely here. It got delayed because of the week when we have not deployed. Nothing to do about it here, just noting for future. |
Ah darn it, ok that's good to know, thank you @mountiny ! |
@mountiny @SofiedeVreese Just a hopefully redundant FYI: In case of a regression, I will continue being around :) |
@marktoman Let's hope it wont be needed 😊 but at the same time, I hope to see you working on new issues 🎉 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The pencil icon should not be visible when there is no draft in the report.
Let's separate the pencil icon behaviour from the LHN reordering. Show the pencil icon whenever users creates the draft (immediately) and hide the pencil icon as soon as the draft is either deleted or message sent (also immediately). However, keep the LHN reordering same, we do not want the LHN to reorder while typing as that is very distracting.
Actual Result:
Observe that the pencil icon is still visible in the LHN even though we have no draft at the moment.
Workaround:
User can switch to different report or reload and the pencil icon will disappear.
Platform:
Where is this issue occurring?
Version Number:
Reproducible in staging?:
Reproducible in production?:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @AndrewGable
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1635195542084000
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: