You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-06-19] [$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options. #19934
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2
Type a message into the composer that contains only a link e.g. 'google.com', '# google.com', or '> google.com'.
Long-press the empty section on the right side of the link to bring up the message's options.
Expected Result:
The options shown in the modal should include, for example, editing the message, deleting the message, replying in a thread, etc.
Actual Result:
The only option shown is to copy the link to the clipboard.
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?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.21-2 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
Please re-state the problem that we are trying to solve in this issue
The copy to clipboard options shows when clicking on a reportAction with a link even outside the link text instead of the normal context menu.
What is the root cause of that problem?
The root cause is a disparity between web and native platforms as how they render AnchorRender component width.
By default on native, the parent view stretches to cover all the space available for the content but that is not true on web. That's why we see it working correctly on web.
// a new window. On Desktop this means that we will
// skip the default Save As... download prompt
What changes do you think we should make in order to solve the problem?
The simple solution is to wrap the content returned in AnchorRender with a View having the style alignItems: "flex-start" because this will prevent the View from stretching to the max width and only occupy the size of its content (as mentioned here)
Like this:
changed the title [-]Long-pressing the empty right section of a message with just a link doesn't show correct options.[/-][+][$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options.[/+]on Jun 1, 2023
Oh, that makes sense that it would be the same RC - I am managing both issues. If you agree that @bernhardoj's proposal fixes both @Gonals, we should just merge them to be honest. This is basically the same issue couched differently, no?
Oh, that makes sense that it would be the same RC - I am managing both issues. If you agree that @bernhardoj's proposal fixes both @Gonals, we should just merge them to be honest. This is basically the same issue couched differently, no?
changed the title [-][$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options.[/-][+][HOLD for payment 2023-06-19] [$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options.[/+]on Jun 12, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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-06-19. 🎊
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.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty
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:
[@narefyev91] The PR that introduced the bug has been identified. Link to the PR:
[@narefyev91] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@narefyev91] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@narefyev91] Determine if we should create a regression test for this bug.
[@narefyev91] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2
Activity
melvin-bot commentedon Jun 1, 2023
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 1, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)esh-g commentedon Jun 1, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue
The
copy to clipboardoptions shows when clicking on a reportAction with a link even outside the link text instead of the normal context menu.What is the root cause of that problem?
The root cause is a disparity between web and native platforms as how they render
AnchorRendercomponent width.By default on native, the parent view stretches to cover all the space available for the content but that is not true on web. That's why we see it working correctly on web.
App/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js
Lines 89 to 94 in 9fa12f3
What changes do you think we should make in order to solve the problem?
The simple solution is to wrap the content returned in
AnchorRenderwith aViewhaving the stylealignItems: "flex-start"because this will prevent theViewfrom stretching to the max width and only occupy the size of its content (as mentioned here)Like this:
After applying
Screen.Recording.2023-06-01.at.1.34.58.PM.mov
Gonals commentedon Jun 1, 2023
Taking a look!
[-]Long-pressing the empty right section of a message with just a link doesn't show correct options.[/-][+][$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options.[/+]melvin-bot commentedon Jun 1, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0178d9eb714da9b983
melvin-bot commentedon Jun 1, 2023
Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new.
5 remaining items
greg-schroeder commentedon Jun 1, 2023
Oh, that makes sense that it would be the same RC - I am managing both issues. If you agree that @bernhardoj's proposal fixes both @Gonals, we should just merge them to be honest. This is basically the same issue couched differently, no?
thesahindia commentedon Jun 1, 2023
Yeah, it makes sense! Let's fix this in the same PR.
Victor-Nyagudi commentedon Jun 1, 2023
Is this issue considered a dupe now based on the above findings?
Gonals commentedon Jun 2, 2023
Makes sense to me!
greg-schroeder commentedon Jun 2, 2023
Closing as a dupe. It's essentially the same report couched differently, and will be fixed incidentally.
[-][$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options.[/-][+][HOLD for payment 2023-06-19] [$1000] Long-pressing the empty right section of a message with just a link doesn't show correct options.[/+]melvin-bot commentedon Jun 12, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 12, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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-06-19. 🎊
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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Jun 12, 2023
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: