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-27] [$500] [Distance] - The i (Toggle attribution) button on the map does not show anything #26761

Closed
2 of 6 tasks
kbecciv opened this issue Sep 5, 2023 · 37 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

@kbecciv
Copy link

kbecciv commented Sep 5, 2023

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:

  1. Open request money
  2. Open distance tab
  3. Tap on i button on bottom right corner of the map

Expected Result:

The toggle attribution button should open options

Actual Result:

The toggle attribution button doesn't work when it is clicked

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.63.0
Reproducible in staging?: y
Reproducible in production?: n
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

i.mp4
Recording.4264.mp4

Expensify/Expensify Issue URL:
Issue reported by: @jo-ui
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693894957986959

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012c7d2a65611a8d49
  • Upwork Job ID: 1701779460806856704
  • Last Price Increase: 2023-09-13
  • Automatic offers:
    • akinwale | Contributor | 26685843
    • jo-ui | Reporter | 26685844
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 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

@akinwale
Copy link
Contributor

akinwale commented Sep 5, 2023

Proposal

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

The toggle attribution (i) button on the map does not show anything on web platforms (desktop web and mweb) and desktop.

What is the root cause of that problem?

The pan responder implemented for the View that contains the Map is intercepting all touch / click events since onStartShouldSetPanResponder is set to always return true, preventing the attribution button from working as it should on web and desktop (tapping or clicking the button should show the attribution text, refer to the Mapbox attribution guide for more details).

const responder = PanResponder.create({
onStartShouldSetPanResponder: () => true,
onPanResponderTerminationRequest: () => false,
});

This is a regression from #26525.

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

Modify the responder by adding an onMoveShouldSetPanResponder handler which returns true, and updating the onStartShouldSetPanResponder handler to return false.

const responder = PanResponder.create({
    onStartShouldSetPanResponder: () => false,
    onMoveShouldSetPanResponder: () => true,
    onPanResponderTerminationRequest: () => false,
});

Or just remove the onStartShouldSetPanResponder handler to avoid unnecessary code.

const responder = PanResponder.create({
    onMoveShouldSetPanResponder: () => true,
    onPanResponderTerminationRequest: () => false,
});

For Android native, we need to add an index.android.ts file for the responder which follows the original implementation in order to handle swiping from left to right properly within the map view.

const responder = PanResponder.create({
    onStartShouldSetPanResponder: () => true,
    onPanResponderTerminationRequest: () => false,
});

What alternative solutions did you explore? (Optional)

None.

@jo-ui
Copy link

jo-ui commented Sep 7, 2023

This issue is now on the latest production too

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@anmurali Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@anmurali Eep! 4 days overdue now. Issues have feelings too...

@anmurali
Copy link

@trjExpensify - what is that i supposed to show?

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2023
@anmurali anmurali added the External Added to denote the issue can be worked on by a contributor label Sep 13, 2023
@melvin-bot melvin-bot bot changed the title [Distance] - The i (Toggle attribution) button on the map does not show anything [$500] [Distance] - The i (Toggle attribution) button on the map does not show anything Sep 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

Job added to Upwork: https://www.upwork.com/jobs/~012c7d2a65611a8d49

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

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

@akinwale
Copy link
Contributor

@trjExpensify - what is that i supposed to show?

mapbox-toggle-attribution.mp4

@PiyushChandra17
Copy link

Proposal

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

The toggle attribution button doesn't work when it is clicked

What is the root cause of that problem?

In MapView, onStartShouldSetPanResponder: () => true, setting it to true (this is the root cause)

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

Setting this onStartShouldSetPanResponder to false will solve the problem

What alternative solutions did you explore? (Optional)

NA

@trjExpensify
Copy link
Contributor

@trjExpensify - what is that i supposed to show?

Yeah, that i is something that comes from mapbox the map provider. I doubt it, but @neil-marcellini @hayata-suenaga is there a way for us not to show the i at all. I appreciate the watermark will always have to be there, like how "Google" is in the bottom-left of the map in all of my ride sharing apps that use Google maps.

@akinwale
Copy link
Contributor

Yeah, that i is something that comes from mapbox the map provider. I doubt it, but @neil-marcellini @hayata-suenaga is there a way for us not to show the i at all. I appreciate the watermark will always have to be there, like how "Google" is in the bottom-left of the map in all of my ride sharing apps that use Google maps.

Quoted from https://docs.mapbox.com/help/getting-started/attribution/:

Maps that use Mapbox map designs, data or software usually must display the Mapbox logo and text attribution.

@trjExpensify
Copy link
Contributor

Got it, so this is what they call "text attribution" is it?

@akinwale
Copy link
Contributor

Got it, so this is what they call "text attribution" is it?

Yes. The logo is displayed at the bottom-left, while text attribution is displayed at the bottom-right by default. On smaller screen widths, the bottom-right changes to an icon which you can click to reveal the text attribution.

@trjExpensify
Copy link
Contributor

Cool, thanks.

@hayata-suenaga
Copy link
Contributor

do you still need an input from me 😃 ?

@trjExpensify
Copy link
Contributor

Ha, I think we're good thanks!

@allroundexperts
Copy link
Contributor

Thanks for your proposal @PiyushChandra17. Unfortunately, I was not able to find any concrete difference between your and @akinwale's proposal.

@akinwale's proposal has the correct root cause and a working solution as well. Also, they were the first to provide a complete solution. Let's go with them!

🎀 👀 🎀 C+ reviewed

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

@allroundexperts My PR is ready for review. Thanks.

@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

🎯 ⚡️ Woah @allroundexperts / @akinwale, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @akinwale got assigned: 2023-09-15 03:24:22 Z
  • when the PR got merged: 2023-09-18 04:15:48 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 20, 2023
@melvin-bot melvin-bot bot changed the title [$500] [Distance] - The i (Toggle attribution) button on the map does not show anything [HOLD for payment 2023-09-27] [$500] [Distance] - The i (Toggle attribution) button on the map does not show anything Sep 20, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

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

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:

  • @akinwale requires payment offer (Contributor) - $500+$250 urgency bonus
  • @allroundexperts does not require payment (Eligible for Manual Requests) - - $500+$250 urgency bonus on ND
  • @jo-ui requires payment offer (Reporter) - $50

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 Sep 20, 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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@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:
  • [@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:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@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.
  • [@anmurali] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Sep 26, 2023
@Julesssss
Copy link
Contributor

Ready for payment @anmurali 👍

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 29, 2023
@Julesssss
Copy link
Contributor

Ready for payment @anmurali 👍

Bumping for payment so we can close out this issue.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 2, 2023
@anmurali
Copy link

anmurali commented Oct 4, 2023

Paid the reporter and contributor. Approved payment to C+ @allroundexperts for whenever he creates a ND request.

@anmurali anmurali closed this as completed Oct 4, 2023
@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2023
@allroundexperts
Copy link
Contributor

@anmurali Can you please write the payment summary?

@anmurali
Copy link

anmurali commented Oct 4, 2023

#26761 (comment)
It's right here. Why do I need to re-write it?

@allroundexperts
Copy link
Contributor

#26761 (comment)

It's right here. Why do I need to re-write it?

This doesn't include the exact amount. @JmillsExpensify we do need a written summary, right?

@anmurali
Copy link

anmurali commented Oct 4, 2023

Updated that entry with amounts

@JmillsExpensify
Copy link

$750 payment approved for @allroundexperts 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

10 participants