-
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
[$500] Assign task - Completed/reopened task message is not copied in offline mode #27558
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b56cf7afa052e5c6 |
Triggered auto assignment to @maddylewis ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @jliexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copy and paste is not working over the web. What is the root cause of that problem?https://necolas.github.io/react-native-web/docs/clipboard/ This plugin is not properly supported over the web. What changes do you think we should make in order to solve the problem?Update package with the one supporting both react native and web. e.g. use navigator.clipboard api over the web and use clipboard plugin for apps. What alternative solutions did you explore? (Optional)clipboard.js supports the web |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copy-and-paste through the context menu is broken for "completed task" and "reopened task" notifications. What is the root cause of that problem?In The root cause assessment from @ayazalavi is incorrect. What changes do you think we should make in order to solve the problem?
|
📣 @ewanmellor! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Unassigning myself as Maddy was the first B0 member assigned. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Assign task - Completed/reopened task message is not copied in offline mode What is the root cause of that problem?In the Copy to clipboard handler, if it's a Task report action, we will gonna get the content inside of App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 187 to 188 in 76c1559
But when we build optimistic data for a Task report action, we haven't set the html data for originalMessage yet Lines 2308 to 2312 in 76c1559
=> Nothing data to copy What changes do you think we should make in order to solve the problem?In the util to build optimistic data for a Task report action, we need to set Lines 2308 to 2312 in 76c1559
Moreover, in online mode, I found that we are unable to copy the Task report action message too. I think it's BE root cause. Because it's out of scope here so I will explain the expand block below. RCA in online modeBE set childReportID (and other childReport data for those system messages), which is incorrect because it doesn't have any child thread Thus, we get incorrect originial report id here Lines 3290 to 3292 in 76c1559
Thus, we get incorrect list reportActions here App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js Lines 132 to 135 in 76c1559
=> Could not found reportAction in those LOC App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js Lines 51 to 54 in 76c1559
=> Unable to copy in online mode We can fix it in FE by checking if it's report action in this util getOriginalReportID, but I think it's better if it's fixed in BE because those report action doesn't have any child thread |
@everyone Can you guys paste videos showing your solution working in android mobile web? I am pretty sure docs clearly says react-native-web clipboard is having issues over the web. |
@jjcoffee will review proposals once he has a chance |
Can't repro this on latest main, I believe it was fixed in #27119. |
Hey @maddylewis as this was a legitimate bug, i think i should be eligible for reporter bonus even if it was fixed by another PR. TIA |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@jjcoffee @maddylewis this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@jjcoffee, @maddylewis Whoops! This issue is 2 days overdue. Let's get this updated quick! |
kk, i'll issue $50 reporting bonus to @SofoniasN, but this was fixed via #27119. I'll close once payment is processed to the reporter. |
offer sent |
Offer accepted |
paid! |
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:
Content should be pasted
Actual Result:
A copied to clipboard confirmation is shown but content is not pasted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.70-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
2023_08_29_07_23_17.mp4
Screen_Recording_20230915_194701_Chrome.mp4
Expensify/Expensify Issue URL:
Issue reported by: @SofoniasN
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693283250856049
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: