-
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] Chat - App allows emoji link for email #28544
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Email links with emojis work fine but website links do not What is the root cause of that problem?This is the parsing we are using What changes do you think we should make in order to solve the problem?If we like the parsing of link to be followed for email we need to change the email part to {
name: 'email',
process: (textToProcess, replacement) => {
const regex = new RegExp(
`(?!\[\s*\])\[([^[\]]*)]\(${CONST.REG_EXP.MARKDOWN_EMAIL}\)`, 'gim'
);
return this.modifyTextForEmailLinks(regex, textToProcess, replacement);
},
replacement: (match, g1, g2) => {
if (g1.match(CONST.REG_EXP.EMOJIS) || !g1.trim()) {
return match;
}
return `<a href="mailto:${g2}">${g1.trim()}</a>`
},
}, What alternative solutions did you explore? (Optional)If we want the parsing of email to be followed for link we can omit the emoji comparison in link similar to the email. |
Triggered auto assignment to @isabelastisser ( |
Job added to Upwork: https://www.upwork.com/jobs/~01738d1f93a454a1eb |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
@c3024 Thanks for your proposal #28544 (comment). You pointed out a correct RCA and proposed a good solution. I tested it with various cases and it looks good 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Not overdue. |
Thank you for assigning this to me. |
@tylerkaraszewski, @hoangzinh, @isabelastisser, @c3024 Eep! 4 days overdue now. Issues have feelings too... |
@c3024 It seems we forgot to bump the library in Expensify/App. |
How to do that? |
Oh! Now, I see that @eh2077 added their commit hash to the package.json. Their PR was merged after my PR was merged. |
@c3024 could you test again and confirm it works in latest main branch? Thanks |
This comment was marked as outdated.
This comment was marked as outdated.
No PR is created here because hash of a later merged PR 585 of expensify-common was already added to package.json of Expensify/App with PR #28985 and that includes the changes made in 583 of expensify-common as well. Videos for the PR 583 merged into expensify-common for this issue: Screenshots/VideosAndroid: NativeandroidEmoji.mp4Android: mWeb ChromeemojimWeb.mp4iOS: NativeiOSNative.moviOS: mWeb SafariiOSSafariEmoji.movMacOS: Chrome / SafariwebEmoji.movMacOS: DesktopdesktopWeb.mov |
@isabelastisser @tylerkaraszewski Context: Both #28344 and this GH issue need to do 2 steps:
Unfortunately, as @c3024 found out #28544 (comment), the PR #28985 also includes his commit fix so he doesn't need to do the step 2. It makes our automation process doesn't work (because there is no PR in Expensify/App). So could we manually make this GH issue hold for the same payment date with #28344? Thanks |
@tylerkaraszewski @isabelastisser Please refer to this comment. PR on expensify-common was merged within 3 days from assigning for this issue. Can this be considered for bonus? |
I'm afraid that it couldn't. We were assigned on Oct 4, but until Oct 10, we started to do 2nd part of the progress (create/test in Expensify/App) #28544 (comment). And we came up with just testing on Oct 11. |
@isabelastisser could you check my comment here #28544 (comment)?. The issue #28344 has been paid out and closed. |
BugZero Checklist:
|
Hey @hoangzinh, sorry for the delay! I see that we processed the payment for the other issue that you mentioned above. To clarify, do I need to process the same payment amount for this issue? Please confirm if the payment summary looks correct:
|
Yes I think it's correct. cc @c3024 |
cc @isabelastisser on payment ^ |
The payments were made in Upwork. All set! |
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:
App should not convert emoji into link like it doesn't for normal website URL
Actual Result:
App converts emoji into link when we use email in link format
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
windows.chrome.emoji.as.link.for.email.mp4
android.native.app.allows.emoji.link.for.email.mp4
android.chrome.emoji.email.link.mp4
ios.native.safari.mac.chrome.desktop.emoji.as.link.on.used.with.email.mov
Recording.113.mp4
android.native.app.allows.emoji.link.for.email.2.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695837410025229
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: