App: [HOLD for payment 2023-07-17] [$1000] Web - App throws 'No content to add' error if we send empty alias for email

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


Action Performed:

  1. Open the app
  2. Open any report
  3. Type in a link with empty alias eg: [](google.com)
  4. Observe that app handles it well
  5. Send email with empty alias eg: [](test@test.com)
  6. Observe that app throws ‘No content to add’ for step 5 message

Expected Result:

App should handle empty alias for email in similar way like it does for link

Actual Result:

App throws ‘No content to add’ error for email with empty alias

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.30.0

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

https://github.com/Expensify/App/assets/93399543/3efe4b24-22e0-47e5-9758-5bae899a4dac

https://github.com/Expensify/App/assets/93399543/b68bed52-6612-4012-9223-1ffaf656b18d

Expensify/Expensify Issue URL:

Issue reported by: @dhanashree-sawant

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686755882619169

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012e72288a82e6fae6
  • Upwork Job ID: 1671920286239043584
  • Last Price Increase: 2023-06-29

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 73 (37 by maintainers)

Most upvoted comments

Technically, this PR was merged in 3 days. There was some back and forth in the Contributor assignment which the bot didn’t know. The real assignment to the right contributor happened https://github.com/Expensify/App/issues/21234#issuecomment-1619738189 2 days back.

cc: @laurenreidexpensify

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

Regression Test Steps

  1. Go to a chat and add the following comment
[](concierge@expensify.com)
[   ](concierge@expensify.com)
[   

 ](concierge@expensify.com)
  1. Verify that a. Only emails inside () are parsed as email links b. [], () and spaces(including line break) inside [] are not parsed
  2. Click to edit the comment
  3. Verify that the initial draft is the same as the original input.

Do you agree 👍 or 👎 ?

We have already shared our opinion above. If you want to share the payment with anyone, it’s your choice but that won’t be done from our side as we only offer payments via Upwork, and in the absence of an Upwork account, we don’t have any way of paying up.

@parasharrajat Thanks for reviewing proposals.

I’m open to share the bounty with @YacineF0001 , like 50/50. I’d also suggest to let @YacineF0001 make the PR which should be his first contribution to the App! If speed bonus is qualified, then it will be compensated to him only. Hope team will take this into consideration.

@parasharrajat Thanks for your review. I hope you take care of my latest proposal. I addressed about auto-test cases to be fixed and added more. Without it, i think it can’t be perfect proposal.

Hey everyone. Thanks for the updates. I will review them as soon as possible.