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-08-07] [$1000] Android - Copy icon is not aligned with other texts #22259

Closed
1 of 6 tasks
kbecciv opened this issue Jul 5, 2023 · 45 comments
Closed
1 of 6 tasks
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 Jul 5, 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. Open the App on Android phone
  2. Click on avatar to open settings menu > Profile > Contact methods

Expected Result:

Copy icon should get aligned with other texts (like on iOS)

Actual Result:

Copy icon is not aligned with other texts

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.35-5
Reproducible in staging?: n/a
Reproducible in production?: n/a
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

XRecorder_04072023_133149.mp4

Screenshot from 2023-07-04 16-32-24
Screenshot from 2023-07-04 16-32-15

Expensify/Expensify Issue URL:
Issue reported by: @muxriddinmuqimov77
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688470298151389

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01294f4a678e2bc1c2
  • Upwork Job ID: 1678413644500803584
  • 2023-07-17
  • Automatic offers:
    • | | 0
    • | | 0
    • | | 0
@kbecciv kbecciv added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jul 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 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

@DrLoopFall
Copy link
Contributor

DrLoopFall commented Jul 5, 2023

Proposal

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

Copy icon is not aligned with the text

What is the root cause of that problem?

The inline property was missing from the Icon (was missed in this commit 152daf1).

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

Just adding inline={props.inline} to Icon in PressableWithDelayToggle/index.js would fix the issue.

<Icon
+   inline={props.inline}
    ...
/>

Screen Shot 2023-07-06 at 00 19 54 Cropped

@DrLoopFall
Copy link
Contributor

Also, I think the icon size should be based on the device pixel ratio.

@conorpendergrast
Copy link
Contributor

conorpendergrast commented Jul 7, 2023

Ah yikes, I missed this on Wednesday, sorry! Reviewing now

@conorpendergrast
Copy link
Contributor

Yeah you can see on Android the verticle alignment is slightly higher, and it's bumping against the text in the line above

Android iOS
image image

@Expensify/design Any desired outcome here?

@shawnborton
Copy link
Contributor

The iOS style would be the desired outcome.

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@conorpendergrast conorpendergrast removed the Needs Reproduction Reproducible steps needed label Jul 10, 2023
@conorpendergrast
Copy link
Contributor

Nice, thanks Shawn

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@conorpendergrast conorpendergrast added the External Added to denote the issue can be worked on by a contributor label Jul 10, 2023
@melvin-bot melvin-bot bot changed the title Android - Copy icon is not aligned with other texts [$1000] Android - Copy icon is not aligned with other texts Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01294f4a678e2bc1c2

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

melvin-bot bot commented Jul 10, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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

@umair-outlier
Copy link

umair-outlier commented Jul 11, 2023

Proposal

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

The copy icon is not aligned with the text on android OS on contact method page

What is the root cause of that problem?

Icon is given a absolute position with value of top: 2, that is why icon is not appearing in line with the text and slightly hovers above

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

we should change top: 2 to top: 3 in IconWrapperStyles -> index.js I propose this solution because this file is only used in one component, which is in question right now so changing this file won't have affect on other areas, also it is the most simple change as well.

  • Tested on IOS - Simulator Iphone 14
  • Tested on Android - Emulator Google Pixel
  • Tested on Android - real device - Samsung A52

Before:
Screenshot 2023-07-12 at 1 28 32 AM

After:
Screenshot 2023-07-12 at 1 26 43 AM

What alternative solutions did you explore? (Optional)

  • I explored drilling down styles to get the icon in line
  • alternative solution I explored was to pass in additionalStyles prop to icon component as it accepts it already

Additionally found a small issue: we provide style prop to Icon component, but Icon component does not make use of props.style anywhere, instead it uses props.additionalStyles so we can remove this style prop from here

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @umair-outlier! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@umair-outlier
Copy link

Contributor details
Your Expensify account email: umairahmedbajwa97@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01ef6da402835a55e6

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 13, 2023

@conorpendergrast, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rushatgabhane
Copy link
Member

Woah. All proposals are different. This is interesting!

@melvin-bot melvin-bot bot removed the Overdue label Jul 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

📣 @DrLoopFall You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

📣 @muxriddinmuqimov77 We're missing your Upwork ID to automatically send you an offer for the Reporter role.
Once you apply to the Upwork job, your Upwork ID will be stored and you will be automatically hired for future jobs!

@DrLoopFall
Copy link
Contributor

Hi @rushatgabhane and @hayata-suenaga,
While implementing the solution, I looked deeper and found the real root cause of the problem, the inline property was missing from the Icon (looks like it was somehow missed in this commit 152daf1).

So just adding inline={props.inline}, would solve the issue.
Also, we can't remove the top, we have to retain it, sorry for the confusion earlier.

I've updated my proposal accordingly, and have checked in all the supported platforms, it just works totally fine.
If you think the solution is good, I can make a PR now.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 25, 2023
@DrLoopFall
Copy link
Contributor

Thank you,
I've made PR #23541, and it's ready for review.

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

🎯 ⚡️ Woah @rushatgabhane / @DrLoopFall, 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 @DrLoopFall got assigned: 2023-07-24 16:14:40 Z
  • when the PR got merged: 2023-07-26 19:36:26 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 Jul 31, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Android - Copy icon is not aligned with other texts [HOLD for payment 2023-08-07] [$1000] Android - Copy icon is not aligned with other texts Jul 31, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.47-6 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-08-07. 🎊

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 Jul 31, 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:

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

@conorpendergrast
Copy link
Contributor

@DrLoopFall Could you please confirm your Upwork profile URL?

@muxriddinmuqimov77 Please could you apply to this Upwork job to make sure you get paid the bug bounty?

@muxriddinmuqimov77
Copy link

muxriddinmuqimov77 commented Aug 2, 2023 via email

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 3, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: feat: use pressable with press feedback #19391

  2. 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: feat: use pressable with press feedback #19391 (comment)

  3. 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: Not required we forgot to pass a prop and should have been caught in the code review.

  4. Determine if we should create a regression test for this bug. No

  5. 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 - N.A.

@rushatgabhane
Copy link
Member

Created a manual request - https://staging.new.expensify.com/r/8613046851814433

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 6, 2023
@conorpendergrast
Copy link
Contributor

conorpendergrast commented Aug 7, 2023

Payouts due:

Eligible for 50% #urgency bonus? Yes

Upwork job is here.

@melvin-bot melvin-bot bot removed the Overdue label Aug 7, 2023
@conorpendergrast
Copy link
Contributor

All done and closing out. Thanks!

@JmillsExpensify
Copy link

Reviewed the payment details for @rushatgabhane. This is approved for payment on NewDot.

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

9 participants