Skip to content

Improve UX when pasting images and there is an error #2530

@JmillsExpensify

Description

@JmillsExpensify

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Expected Result:

Text/image gets pasted

Actual Result:

Alert pops up which is bad UX

Action Performed:

When copy/pasting something from Slack into E.cash, there is an alert() being used when there is an error pasting images. Not only is it invasive to the UX (you have to click to make it go away), but it prevents anything from getting pasted.

Suggestion:

  1. Don't use an alert and use something more appropriate if there is indeed something that the user needs to know (maybe an error message down by the compose field).
  2. Allow the rest of the text to be pasted if something fails with images being pasted (I think this just means not calling e.preventDefault() ).

Code is here

Workaround:

Upload images directly in E.cash

Platform:

Web
Desktop App

Version Number: 1.0.28-0
Notes/Photos/Videos: image
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/160750
Upwork job: https://www.upwork.com/jobs/~0103d5a375d57f66de

View all open jobs on Upwork

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions