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 2024-03-25] Profile avatar is not aligned within highlighted circle #38263

Closed
2 of 6 tasks
m-natarajan opened this issue Mar 14, 2024 · 15 comments
Closed
2 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. Engineering Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Mar 14, 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: 1.4.52-0
Reproducible in staging?: y
Reproducible in production?: new feature
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
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

Precondition: Device font size is minimum.

  1. Launch New Expensify app.
  2. Go to Profile.

Expected Result:

Profile avatar is aligned within highlighted circle

Actual Result:

Profile avatar is not aligned within highlighted circle
Reproducible in SG Note 10+ / Android 12 , SG Z Fold 4 / Android 14,iPhone 15 Pro Max / iOS 17.3.1

Workaround:

visual

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

Bug6412856_1710369724081!Screenshot_20240314_042548_New_Expensify

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016e3c16578ce4b6d1
  • Upwork Job ID: 1768105574093357056
  • Last Price Increase: 2024-03-14
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

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

@m-natarajan m-natarajan added the DeployBlockerCash This issue or pull request should block deployment label Mar 14, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 14, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 14, 2024

Triggered auto assignment to @robertjchen (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@robertjchen robertjchen added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 14, 2024
@robertjchen
Copy link
Contributor

Not a deploy blocker. Opening for External Contributors

@robertjchen robertjchen added the External Added to denote the issue can be worked on by a contributor label Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~016e3c16578ce4b6d1

@melvin-bot melvin-bot bot changed the title Profile avatar is not aligned within highlighted circle [$500] Profile avatar is not aligned within highlighted circle Mar 14, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

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

@robertjchen robertjchen changed the title [$500] Profile avatar is not aligned within highlighted circle [$125] Profile avatar is not aligned within highlighted circle Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

Upwork job price has been updated to $125

@tienifr
Copy link
Contributor

tienifr commented Mar 14, 2024

Proposal

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

Profile avatar is not aligned within highlighted circle
Reproducible in SG Note 10+ / Android 12 , SG Z Fold 4 / Android 14,iPhone 15 Pro Max / iOS 17.3.1

What is the root cause of that problem?

Here we're using dynamic width and height based on componentSizeSmall which will change depending on the font size as can be seen here. Meanwhile both the borderRadius here and the size of the Avatar here are both 28, so in small font size, the container of the Avatar has size less than 28, leading to the broken UI.

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

As far as I know the avatar size is always static (based on the avatar size we assigned to it). So it doesn't make sense for the container View of that avatar to have dynamic size based on font size

To fix it, in here, simply Use both width and height as 28

What alternative solutions did you explore? (Optional)

Make both the borderRadius and Avatar size to be dynamic based on font-size same as the container here

@kosmydel
Copy link
Contributor

Hey, I'm from Software Mansion. I will work on this.

@mkhutornyi
Copy link
Contributor

mkhutornyi commented Mar 14, 2024

Please assign me here too since I reported this earlier while reviewing PR and also have android device I can reproduce this bug on.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 14, 2024
@robertjchen robertjchen removed the External Added to denote the issue can be worked on by a contributor label Mar 14, 2024
@robertjchen robertjchen changed the title [$125] Profile avatar is not aligned within highlighted circle Profile avatar is not aligned within highlighted circle Mar 14, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 14, 2024
@Santhosh-Sellavel Santhosh-Sellavel removed their assignment Mar 14, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 18, 2024
@melvin-bot melvin-bot bot changed the title Profile avatar is not aligned within highlighted circle [HOLD for payment 2024-03-25] Profile avatar is not aligned within highlighted circle Mar 18, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

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

Copy link

melvin-bot bot commented Mar 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.53-2 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 2024-03-25. 🎊

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

  • @mkhutornyi requires payment (Needs manual offer from BZ)
  • @kosmydel does not require payment (Contractor)

Copy link

melvin-bot bot commented Mar 18, 2024

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:

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

@kosmydel
Copy link
Contributor

This one is related to #38463.

@twisterdotcom
Copy link
Contributor

Payment Summary:

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@melvin-bot melvin-bot bot removed the Overdue label Apr 5, 2024
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. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants