question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the ability to copy messages in Expensify.cash

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


Internal issue: https://github.com/Expensify/Expensify/issues/147479 Internal Upwork Posting: https://www.upwork.com/ab/applicants/1371557081012895744/job-details Public Upwork Posting: https://www.upwork.com/jobs/~013badfb341950b5a6


Expected Result:

The “Copy to Clipboard” button in the ReportActionContextMenu should copy the text context of a report action / message to the clipboard.

Actual Result:

The “Copy to Clipboard” button in the ReportActionContextMenu currently doesn’t do anything:

image


image


image

Action Performed:

  1. Temporarily edit this function to always return true so that the ReportActionContextMenu will show (see screenshots above).
  2. Hover, right-click, or longPress a message in a report (called a reportAction), then click Copy to Clipboard

Workaround:

None.

Platform:

All platforms ->

Web iOS Android Desktop App Mobile Web

Notes/Photos/Videos:

  • A good clipboard library for React Native is @react-native-community/clipboard, so your solution should probably leverage that.
  • Your solution must work on all platforms.
  • A solution should copy only the plain-text version of a message, not HTML the html.
  • BONUS: Make it also work to copy images 😉

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mallenexpensifycommented, Mar 25, 2021

@roryabraham Assigned to you since you’ll be the one reviewing proposals

1reaction
roryabrahamcommented, Mar 22, 2021

Well, just to clarify the “context menu” and “hover menu” are just different manifestations of the ReportActionContextMenu, and they should never show at the same time. A similar effect with the checkmark should be implemented on both, ideally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to copy or duplicate expenses?
Work Around: Export to CSV -> Edit -> Import into Expensify. Export Expenses to CSV. You may want to create a CSV Template...
Read more >
Expensify Terms of Service | Our Terms of Use
You will be responsible for notifying your financial institution of any voided or cancelled checks, ensuring the bank account associated with ...
Read more >
How-to: Copy an exisiting Invoice — Expensify Community
To copy the expense(s) on an existing invoice, we recommend setting the filters on the Reports page to Invoices, then clicking the copy...
Read more >
Format text messages in Expensify
Formatting works the same way on both the web and mobile applications, and there are three options to use markdown in your report...
Read more >
Is it possible to send a message to all Expensify users in our ...
You can do this by navigating to the People tab of your policy, and then clicking [Export to CSV]. Once that's done, open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found