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

[HOLD for payment 2023-09-06] [$1000] Workspace - Highlight on text is displayed when email is pressed in Bills screen #24591

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 15, 2023 · 52 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 15, 2023

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


Issue found when executing PR #24244

Action Performed:

  1. Open app in iOS
  2. Go to Settings > Workspaces > Select a Workspace > Bills
  3. Tap on the email shown in the Manage your bills section

Expected Result:

No highlight on text when email is pressed

Actual Result:

Highlight is displayed when email is pressed

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.54.5

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

Bug6165815_24244_iOS.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b7076c95fa743b6d
  • Upwork Job ID: 1692325576877830144
  • Last Price Increase: 2023-08-18
  • Automatic offers:
    • mollfpr | Reviewer | 26302490
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 15, 2023
@allroundexperts
Copy link
Contributor

allroundexperts commented Aug 15, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Highlight on text is displayed when email is pressed in Bills screen

What is the root cause of that problem?

The root cause of the issue is that the container for PressableWithDelayToggle is Text by default. In react native, for iOS, by default, Text has a background colour in pressed state. We're not suppressing the default highlight here.

What changes do you think we should make in order to solve the problem?

We need to add the following here:

            {...props.inline && {suppressHighlighting: true}}

We need to add the above for iOS only, although adding it for all platforms wouldn't really cause any error. We're already doing this here. If that is not an option, then, I think a cleaner way to add this on iOS only would be to create a platform specific Text component that has highlighting disabled by default and name it something like TextWithoutHighlight and use that instead.

What alternative solutions did you explore? (Optional)

None

@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

Triggered auto assignment to @joekaufmanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@allroundexperts
Copy link
Contributor

allroundexperts commented Aug 15, 2023

@joekaufmanexpensify I think the test steps should be updated because this is only reproducible once you are logged in with a non-public domain email account ie user.isFromPublicDomain is false.

@joekaufmanexpensify
Copy link
Contributor

I'm unable to reproduce this at all on iOS (in either an expensifail account, or in a public domain account).

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts could you please share what you're seeing in a public domain account?

@allroundexperts
Copy link
Contributor

Here's what it looks like with a public domain account:

https://github.com/Expensify/App/assets/30054992/5cb636e6-a6fb-45cf-aebe-55f89f84737a

@joekaufmanexpensify
Copy link
Contributor

I don't think that is a bug. There is nothing to select there purposefully as public domain emails do not have a bill intake email address to send in bills (as they don't have a private domain).

@allroundexperts
Copy link
Contributor

Sorry, this happens when you're NOT on a public domain email.

@allroundexperts
Copy link
Contributor

Here is how it looks for non-public emails:

Screenshot 2023-08-16 at 1 43 31 AM

@joekaufmanexpensify
Copy link
Contributor

Got it, thanks for clarifying that!

@joekaufmanexpensify
Copy link
Contributor

Yeah, I cannot reproduce this at all on iOS v1.3.54-11. This is what I see:

7C81EB10-C019-4D62-971D-1DD90FBA4465-2023-08-15 21_17_40 744

@allroundexperts
Copy link
Contributor

@joekaufmanexpensify Try holding the press.

@joekaufmanexpensify
Copy link
Contributor

You mean long pressing on the bill intake email address? If so, doing that highlights the email (as long as I am long pressing). But does not result in the check mark appearing. Which feels like expected behavior IMO.

@allroundexperts
Copy link
Contributor

It should not highlight the Pressables on native platforms. Like this is the bug. For reference, go to any chat that contains a link and try long pressing on it. You won't really see the highlight. Same is the case when you long press the green tick on the same screen.

@allroundexperts
Copy link
Contributor

allroundexperts commented Aug 15, 2023

Ref:

Screen.Recording.2023-08-16.at.2.30.01.AM.mov
Screen.Recording.2023-08-16.at.2.32.49.AM.mov

@allroundexperts
Copy link
Contributor

Here's how this looks on web. Notice that there is no highlight.

Screen.Recording.2023-08-18.at.3.00.50.AM.mov

@melvin-bot melvin-bot bot added the Overdue label Aug 17, 2023
@joekaufmanexpensify
Copy link
Contributor

Cool cool, yeah I just tested this on mobile web on iOS and web, and confirmed the there is no highlight when long tapping/clicking on the email. It just selects the email (and we show that via the copy checkmark), once you let go of the long tap/click.

@melvin-bot melvin-bot bot removed the Overdue label Aug 18, 2023
@joekaufmanexpensify joekaufmanexpensify added the External Added to denote the issue can be worked on by a contributor label Aug 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01b7076c95fa743b6d

@melvin-bot melvin-bot bot changed the title Workspace - Highlight on text is displayed when email is pressed in Bills screen [$1000] Workspace - Highlight on text is displayed when email is pressed in Bills screen Aug 18, 2023
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (External)

@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

📣 @allroundexperts Please request via NewDot manual requests for the Contributor role ($1000)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 24, 2023
@allroundexperts
Copy link
Contributor

PR created #25873 @mollfpr!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 30, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Workspace - Highlight on text is displayed when email is pressed in Bills screen [HOLD for payment 2023-09-06] [$1000] Workspace - Highlight on text is displayed when email is pressed in Bills screen Aug 30, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.58-5 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-09-06. 🎊

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

For reference, here are some details about the assignees on this issue:

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 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:

@joekaufmanexpensify
Copy link
Contributor

@mollfpr / @allroundexperts mind completing the BZ checklist here so we can prep to issue payment next week?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 5, 2023
@joekaufmanexpensify
Copy link
Contributor

Bumped

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts was assigned to this issue on 2023-08-24, and the PR was merged on 2023-08-25, so this qualifies for a speed bonus. This means we need to issue the following payments:

  • @allroundexperts - $1,500 ($1000 for PR + $500 speed bonus). Paid via NewDot.
  • @mollfpr - $1,500 ($1000 for C+ review +$500 speed bonus). Paid via Upwork.
  • No reporting bonus here.

@mollfpr
Copy link
Contributor

mollfpr commented Sep 6, 2023

Sorry for the delay @joekaufmanexpensify

[@mollfpr / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:

#19391

[@mollfpr / @allroundexperts] 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:

https://github.com/Expensify/App/pull/19391/files#r1316716014

[@mollfpr / @allroundexperts] 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:

The regression step should be enough.

[@mollfpr / @allroundexperts] Determine if we should create a regression test for this bug.
[@mollfpr / @allroundexperts] 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.

  1. Login with a expensify.cash email or reverse the condition here.
  2. Go to Settings -> Work spaces -> Select Any workspace -> Bills.
  3. Click on the email in the Manage your bills section
  4. Verify that the click does not highlight the email.
  5. 👍 or 👎

@joekaufmanexpensify
Copy link
Contributor

This is a pretty minor bug that doesn't impact the user experience, so my 2c is no regression test is needed here.

@joekaufmanexpensify
Copy link
Contributor

BZ checklist all set!

@joekaufmanexpensify
Copy link
Contributor

@mollfpr $1,500 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts could you please request $1,500 in NewDot and confirm here once complete?

@allroundexperts
Copy link
Contributor

Requested!

@joekaufmanexpensify
Copy link
Contributor

Great, thanks! Going to close this out for now. If your request isn't paid within the next 7 days, LMK and I will look into it.

@joekaufmanexpensify
Copy link
Contributor

Note for the individual paying, that the payment summary message is here.

@JmillsExpensify
Copy link

$1,500 approved for payment via NewDot based on BZ summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants