Skip to content
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

Added support for phone mention without expensify.sms suffix #645

Conversation

FitseTLT
Copy link
Contributor

@FitseTLT FitseTLT commented Feb 8, 2024

This PR will introduce support for phone mention without expensify.sms suffix.
@c3024 @jasperhuangg
One question I have is now I have not made + sign to be mandatory in the beginning of the mention but we can make it mandatory. Need your thoughts on this.

Fixed Issues

$ Expensify/App#33902

Tests

  1. What unit/integration tests cover your change? What autoQA tests cover your change?
  2. What tests did you perform that validates your changed worked?

QA

  1. What does QA need to do to validate your changes?
  2. What areas to they need to test for regressions?

@FitseTLT FitseTLT requested a review from a team as a code owner February 8, 2024 19:00
Copy link

github-actions bot commented Feb 8, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@melvin-bot melvin-bot bot requested review from deetergp and removed request for a team February 8, 2024 19:01
@FitseTLT
Copy link
Contributor Author

FitseTLT commented Feb 8, 2024

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@deetergp deetergp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a nice improvement

@deetergp deetergp merged commit 7aa1d42 into Expensify:main Feb 8, 2024
5 checks passed
@FitseTLT
Copy link
Contributor Author

FitseTLT commented Feb 9, 2024

@deetergp I forgot to change this comment shall I raise another PR?

* Note: currently we are only allowing mentions in a format of @[email protected] and @[email protected]
* The username can contain any combination of alphanumeric letters, numbers, and underscores

Copy link
Contributor

@c3024 c3024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not make this work. Could you post the test steps and video of this working for Web? @FitseTLT

/**
* Regex matching a text containing an e164 format phone number
*/
readonly PHONE_PART: "\\+?[1-9]\\d{1,14}";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be in the CONST.jsx file?

@jasperhuangg
Copy link
Contributor

ah shoot @deetergp we probably shouldn't have merged this without any testing steps or test screenshots 😟

@jasperhuangg
Copy link
Contributor

Confirmed locally that this does not work :(

@jasperhuangg
Copy link
Contributor

Gonna spin up a revert

@deetergp
Copy link
Contributor

Yikes, that's my bad 😬 Thanks for putting up the revert @jasperhuangg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants