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

[$250] iOS - Distance - Center icon overlaps with compass icon #44486

Open
1 of 6 tasks
lanitochka17 opened this issue Jun 26, 2024 · 22 comments
Open
1 of 6 tasks

[$250] iOS - Distance - Center icon overlaps with compass icon #44486

lanitochka17 opened this issue Jun 26, 2024 · 22 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 26, 2024

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


Version Number: 9.0.2-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch New Expensify app
  2. Go to FAB > Submit expense > Distance
  3. Use two fingers to rotate the map

Expected Result:

Center icon will not overlap with compass icon

Actual Result:

Center icon overlaps with compass icon

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6525406_1719418260738.RPReplay_Final1719412840.mp4
00 08 43

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c7fdbfc969413a5e
  • Upwork Job ID: 1806794874145887299
  • Last Price Increase: 2024-06-28
Issue OwnerCurrent Issue Owner: @ahmedGaber93
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@Krishna2323
Copy link
Contributor

Krishna2323 commented Jun 26, 2024

Proposal

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

iOS - Distance - Center icon overlaps with compass icon

What is the root cause of that problem?

The centre icon is placed with p5 (20px) padding.

{interactive && (
<View style={[styles.pAbsolute, styles.p5, styles.t0, styles.r0, {zIndex: 1}]}>
<Button
onPress={centerMap}
iconFill={theme.icon}
iconStyles={styles.ml1}
medium
icon={Expensicons.Crosshair}
accessibilityLabel={translate('common.center')}
/>
</View>
)}
</View>

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

Adjust the padding to change the position of the icon to bottom left/right.

What alternative solutions did you explore? (Optional)

Options 1. Hide the compass using compassEnabled prop.

Options 2. Updated compass position using compassPosition prop. Scale bar position can also be changed using scaleBarPosition

Option 3. Compass can also be hidden by positioning it just below the center button compassPosition={{top: 20, right: 20}}.

@trjExpensify
Copy link
Contributor

Hm, @Expensify/design I'm not sure on this. Do we literally just cover the compass icon in the background or should it not be there at all?

@shawnborton
Copy link
Contributor

Ah interesting, that only shows up if you rotate the map I bet?

@dannymcclain
Copy link
Contributor

Ah interesting, that only shows up if you rotate the map I bet?

Yup you're right. I had never seen that compass before but I just tested out rotating the map and that's when it shows up. Womp.

@trjExpensify
Copy link
Contributor

Goooot it. So both of these UI elements need to live together in the same view then conceivably?

@shawnborton
Copy link
Contributor

It looks like we can also just move the compass or disable it entirely. From here:

CleanShot 2024-06-27 at 07 41 07@2x

So I like the idea of maybe moving the compass to the bottom right or something? Curious what @Expensify/design thinks.

@trjExpensify
Copy link
Contributor

Got it. Bottom right, above the info button? We can pay a retainer to get rid of all the Mapbox stuff at the bottom at some point in the future.

I think we should keep the compass, as I think it's pretty standard when turning the map to reorientate it.

@shawnborton
Copy link
Contributor

Yeah, that's what I was thinking. And the info button would typically always show because the default view is not to rotate the map.

@trjExpensify
Copy link
Contributor

Sounds good!

@Krishna2323
Copy link
Contributor

@shawnborton @trjExpensify, what do you think about placing the compass below the scale bar? I think it relates to the scale bar and should be positioned near it.

below_scalebar.mp4

@trjExpensify
Copy link
Contributor

Works for me, but I'll defer to Shawn!

@dannymcclain
Copy link
Contributor

I like it beneath the scale bar—it does feel kinda related and tucks up in there nicely. Will also wait for Shawn to weigh in 🙂

@shawnborton
Copy link
Contributor

Oh I really like that too, let's do it

@Krishna2323
Copy link
Contributor

Krishna2323 commented Jun 28, 2024

@trjExpensify, can we apply the external label to get this moving?

@trjExpensify
Copy link
Contributor

Let's do it!

@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

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

@melvin-bot melvin-bot bot changed the title iOS - Distance - Center icon overlaps with compass icon [$250] iOS - Distance - Center icon overlaps with compass icon Jun 28, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

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

@ahmedGaber93
Copy link
Contributor

@Krishna2323's alternative solutions option 2 using compassPosition to change the compass position LGTM!
also, result is accepted by the design team.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jun 29, 2024

Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

7 participants