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-10-09] [HOLD for payment 2023-09-29] [$500] There is a larger gap between the Apple icon and the Google icon on Android #26566

Closed
1 of 6 tasks
kavimuru opened this issue Sep 2, 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. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Sep 2, 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!


Action Performed:

  1. Go to login page

Expected Result:

The gap should be consistent across all platforms

Actual Result:

The gap is larger on Android

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.62-1
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

ef2d595a-cee9-47fa-bcdb-0b188f61bc9a

ca550428-8828-44e8-8291-37a1416f9f0c

Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693020637974179

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0158363a81364181da
  • Upwork Job ID: 1698574418489659392
  • Last Price Increase: 2023-09-04
  • Automatic offers:
    • aman-atg | Contributor | 26711713
    • aman-atg | Reporter | 26711715
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 2, 2023

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

@melvin-bot
Copy link

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

@kavimuru
Copy link
Author

kavimuru commented Sep 2, 2023

Proposal from @aman-atg

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

There is a larger gap between the Apple icon and the Google icon on Android

What is the root cause of that problem?

The root cause of the problem is the styles provided to IconButton here as it provides margin:10px for both buttons resulting in a larger gap in native devices since IconButton is being used there.

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

We should make changes here to avoid horizontal margin for both buttons. Then, we can use gap: 12 for button containers or marginLeft: 12 for Google Button on all platforms to have consistent spacing.

What alternative solutions did you explore? (Optional)

@sophiepintoraetz
Copy link
Contributor

@kavimuru - please make sure you're checking all the affected platforms.
image

@sophiepintoraetz sophiepintoraetz added the External Added to denote the issue can be worked on by a contributor label Sep 4, 2023
@melvin-bot melvin-bot bot changed the title There is a larger gap between the Apple icon and the Google icon on Android [$500] There is a larger gap between the Apple icon and the Google icon on Android Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0158363a81364181da

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

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@hoangzinh
Copy link
Contributor

hoangzinh commented Sep 4, 2023

Proposal

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

There is a smaller gap between the Apple icon and the Google icon on Web/mWeb

What is the root cause of that problem?

In Desktop/Native apps, we use the IconButton component to render Apple and Google icon

<IconButton
onPress={() => {
window.open(googleSignInWebRouteForDesktopFlow);
}}
provider={CONST.SIGN_IN_METHOD.GOOGLE}
/>

But in Web, we use a primitive div to render them

<div
id="appleid-signin"
data-mode="center-align"
data-type="continue"
data-color="white"
data-border="false"
data-border-radius="50"
data-width={CONST.SIGN_IN_FORM_WIDTH}
data-height="52"
style={{cursor: 'pointer'}}
/>

So I think the inconsistency here is in Web/mWeb, it's not in neither Desktop or native apps. In Web/mWeb platform, we forgot to apply the same margin for icons here

style={styles.signInIconButton}

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

In AppleSignIn and GoogleSignIn components for web, we need to apply the same style as we applied for native platforms, which is styles.signInIconButton. So the gap between icons will be consistency among platforms.

@payal-lathidadiya
Copy link
Contributor

Proposal

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

There is a smaller gap between the Apple icon and the Google icon on Web/mWeb

What is the root cause of that problem?

The cause of this inconsistent UI layout is due to different styles applied for component/elements in web and mWeb.

  • On mWeb and native app, it renders as IconButton here. And it applies these CSS style
  • On web, the same style is not applied for web component here

This resulted in inconsistency of margin/padding across platforms.

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

To fix this inconsistency, we can replace below style of web component to have same as sign in IconButton of mWeb/native here and here

style={styles.signInIconButton} 

This changes should be applied to both Google and Apple sign in components

What alternative solutions did you explore? (Optional)

None

@sophiepintoraetz
Copy link
Contributor

Waiting on @robertKozik to review the proposals!

@robertKozik
Copy link
Contributor

Hi all! Thank you for your proposals 🙇🏼

It appears that all of you have accurately identified the root cause of the issue. Furthermore, all the proposed solutions were quite similar. However, I would prefer the solution from @aman-atg, as it moves the setting of gap to a file that is not platform-dependent. This way, we can ensure consistency without style repetition.

Selected Proposal: proposal
contributor: @aman-atg

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

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

melvin-bot bot commented Sep 11, 2023

@marcochavezf, @sophiepintoraetz, @robertKozik Huh... This is 4 days overdue. Who can take care of this?

@sophiepintoraetz
Copy link
Contributor

@marcochavezf - please can you review the proposal on this issue?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 12, 2023
@marcochavezf
Copy link
Contributor

Thanks @robertKozik for reviewing the proposals. I agree with what you commented, assigning here @aman-atg 🚀

@melvin-bot melvin-bot bot removed the Overdue label Sep 14, 2023
@marcochavezf
Copy link
Contributor

Hmm it seems I cannot assign @aman-atg, is this the first GH issue that you will be assigned as contributor?

@aman-atg
Copy link
Contributor

@marcochavezf No, it's not the first one.

@aman-atg
Copy link
Contributor

It might be because I hadn't commented on the thread. Can you please try again?

cc: @marcochavezf

@thienlnam
Copy link
Contributor

QA found that this was not fixed in Android #27837 (comment)

@aman-atg
Copy link
Contributor

I think it is due to this padding style being used in src/components/SignInButtons/IconButton.js

App/src/styles/styles.js

Lines 3721 to 3723 in b225b53

signInIconButton: {
padding: 2,
},

style={styles.signInIconButton}

cc: @robertKozik

@robertKozik
Copy link
Contributor

@aman-atg Yeah, I think you're right. We overlooked this one during the initial PR. But maybe let's stick to changing the padding to be only vertical. This way, we won't introduce any change on the vertical axis.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Sep 21, 2023
@aman-atg
Copy link
Contributor

PR is ready for review!

cc: @robertKozik

@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 22, 2023
@melvin-bot melvin-bot bot changed the title [$500] There is a larger gap between the Apple icon and the Google icon on Android [HOLD for payment 2023-09-29] [$500] There is a larger gap between the Apple icon and the Google icon on Android Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 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-29. 🎊

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

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

@robertKozik
Copy link
Contributor

Not awaiting payment yet. Followup PR is under review

@melvin-bot
Copy link

melvin-bot bot commented Sep 27, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @aman-atg got assigned: 2023-09-16 22:23:28 Z
  • when the PR got merged: 2023-09-27 02:38:32 UTC
  • days elapsed: 6

On to the next one 🚀

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

Payment date is elapsed - paid out!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Overdue Daily KSv2 labels Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-09-29] [$500] There is a larger gap between the Apple icon and the Google icon on Android [HOLD for payment 2023-10-09] [HOLD for payment 2023-09-29] [$500] There is a larger gap between the Apple icon and the Google icon on Android Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

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 Oct 2, 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:

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

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants