-
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-05-22] [$1000] Copy to clipboard has inconsistent behavior in the (Reimburse expenses and contact method page) VS (the profile's details page) #17751
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
Discussing this in Slack before applying the label. |
@flaviadefaria Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01a8489353b4a203b3 |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @danieldoglas ( |
Added the external label. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copy to clipboard has inconsistent behavior between Contacts page and Profile detail page What is the root cause of that problem?In Contacts page, In Profile detail page, What changes do you think we should make in order to solve the problem?Extend
Improvement: for consistency, we can deprecate 2nd param of |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copy to clipboard is in-consistent between Reimburse page and profile detail page. What is the root cause of that problem?In Reimburse page we use CopyTextToClipboard component which set 2000ms timeout but doesn't reset the timeout once user clicks again. So the old timeouts reset the icon while continously pressing. In profile detail page we are using CommunicationLink Component which uses withDelayToggleButtonState component at last to handle the timeout logics. This uses 1800ms timeout and also handles clearing of timeout after user presses again. This is why we have inconsistency. What changes do you think we should make in order to solve the problem?
For 2) action item the Current components usage is:
We can unify all delayable actions to work like -> Take action "copy to clipboard" or "download" -> action blocked -> Wait 1800ms -> action unblocked -> take action -> action blocked -> wait 1800ms -> action unblocked What alternative solutions did you explore? (Optional)We can also create helper classes to have the common timeout handling code and icon showing logic and make the components use it. We can also reset the timer in CopyTextToClipboard component when user clicks again. We can remove the reseting of timer logic in withDelayToggleButtonState component and make it in sync with the CopyTextToClipboard logic. |
@flaviadefaria I'm unassigning due to low bandwidth, can you assign a new C+ here, by reapplying cc: @danieldoglas |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @arielgreen ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
@priya-zha @sobitneupane @situchan please apply to the Upwork posting so that I can issue payment |
@arielgreen Submitted the proposal.Thanks |
It is an inconsistency issue not really a bug. So, I don't think we can point a specific PR or issue as a culprit. |
Regression Test Proposal:
Do we agree 👍 or 👎 |
Calculating payments: 3 business days = 50% bonus $500 to @priya-zha |
Offers sent, ready for payment once accepted. |
I am OOO tomorrow, so reassigning |
Triggered auto assignment to @laurenreidexpensify ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Also reassigning Flavia and I for credit. |
Have issued all payments in Upwork. Please reopen if I've missed anything. thanks |
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:
Copying to clipboard should behave in the same manner on Reimburse expenses and contact method page like that of the profile's details page
Actual Result:
Copying to clipboard behaves differently in reimburse expenses and contact method page unlike the profile's details page
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.2
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
copy.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681978408152299
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: