-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[PAID] [$1000] Emoji-only Anchor Text with Hyperlink is accepted/doesn't look right #18386
Comments
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
Raised internally for discussion on path forward. |
Bumped again as we're still unclear what the expected and preferred behavior will be. |
After a few different discussions, we have come to a consensus that we don't want emoji to be allowed as anchor text for hyperlinks. |
Job added to Upwork: https://www.upwork.com/jobs/~016f4e82bec390b3ae |
Current assignee @strepanier03 is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @marcochavezf ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji only hyperlink doesn't look good. What is the root cause of that problem?The link doesn't look good because of the added underline below the emojis. What changes do you think we should make in order to solve the problem?As mentioned here we do no want emojis as anchor text in hyperlinks. We can mark the field as "invalid" when some/all anchor text is an emoji and let the user edit the anchortext. We can achieve this by following how ExceededCommentLength is used in ReportActionCompose What alternative solutions did you explore? (Optional)We can also
|
📣 @nazmulpcc! 📣
|
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@nazmulpcc Thanks for your proposal. Can you please be more descriptive in your proposal. "What is the root cause of that problem?" section should include why is this issue occurring? Where in the codebase the problem lies? Please make use of permalinks. "What changes do you think we should make in order to solve the problem?" section::
Can you please explain how and for what purpose |
ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji only is accepted as an anchor text and it doesn't look pleasing to the eye. As mentioned in #18386 (comment), we don't want emoji-only text to be anchor text for links. What is the root cause of that problem?We're not validating if the anchor text contains only emojis in the What changes do you think we should make in order to solve the problem?If we don't want the anchor text to contain any emoji
(the Line 1005 in 32662bf
If we don't want the anchor text to contain only emojis We need to check if the anchor text Line 62 in 1b1e562
return match; .
After either of the change above (depending on what we want), it will show the user input as is without converting to (We shouldn't make the composer look like it's invalid/show error message, we simply shouldn't match it as links) IMO we should only does not allow anchor text to "contains only emojis", if it contains both text and emojis then it should be allowed since the underlined text in that case does not look that bad. Whatever the decision is the above will work fine. What alternative solutions did you explore? (Optional)NA |
@strepanier03 Can you please confirm wether we will allow anchor text to contain text with emojis or not? |
@sobitneupane - We do not want to allow emoji to be used as anchor text for hyperlinks moving forward. |
Thanks @strepanier03. So, We will not be allowing emoji at all in the anchor text. Even text mixed with emoji like Mixed 🤒 Text 🤒 will not be allowed. @dukenv0307 Would you like to update your proposal? |
@sobitneupane sure thing! |
Thanks for the update @dukenv0307 Proposal from @dukenv0307 looks good to me. cc: @marcochavezf |
@sobitneupane the PR is ready for review |
🎯 ⚡️ Woah @sobitneupane / @dukenv0307, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.15-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-05-25. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
Speed bonus assessment: here = Eligible As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Prepping for the pay hold being removed
Chat again on the 25th! |
@strepanier03 I've applied! My profile is https://www.upwork.com/freelancers/~01f5cbe690701118a2, thanks! |
Thank you so much @dukenv0307, I really appreciate it. I've hired you as well so we'll be ready for tomorrow. |
@Nathan-Mulugeta and @dukenv0307 - I've paid you both via Upwork and ended the contracts, thank you! @sobitneupane - I'll keep an eye out for the checklist responses and update them when I see you send them through. Then I'll finish pay out and close this GH. |
Thanks @strepanier03 I just received. |
It's an improvement in the app. I don't think we can blame the PR allowing the emoji in url for causing this issue because it was lately decided to not allow emoji in the url. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Sounds good to me @sobitneupane - I can make that reg test GH. |
Finished up everything here, paid out the remaining contract and closed it. Thank you everyone! |
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:
Expected Result:
Emoji only should not be accepted as an anchor text or it should look right
Actual Result:
Emoji only is accepted as an anchor text and it doesn't look pleasing to the eye
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.9.16
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
2023-05-03.13.37.01.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683110677125259
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: