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

[$500] [HOLD for payment 2024-04-03] IOS - Profile - Avatar loading icon is not aligned properly within the highlighted green circle #38450

Closed
1 of 6 tasks
kbecciv opened this issue Mar 17, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering 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 Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 17, 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.53-2
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • Device font is minimum.
  1. Launch New Expensify app.
  2. Log in.
  3. While the app is in skeleton loading state, tap on Profile icon.

Expected Result:

The avatar loading icon has the correct size within the highlighted green circle.

Actual Result:

The avatar loading icon is small and not aligned properly within the highlighted green circle.

Workaround:

n/a

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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0183d1c8e91b21dfe4
  • Upwork Job ID: 1775220315708272640
  • Last Price Increase: 2024-04-02
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment and removed Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 17, 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.

@kbecciv
Copy link
Author

kbecciv commented Mar 17, 2024

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

@mkhutornyi
Copy link
Contributor

Maybe @kosmydel can take a look

@apeyada
Copy link
Contributor

apeyada commented Mar 17, 2024

Proposal

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

IOS - Profile - Avatar loading icon is not aligned properly within the highlighted green circle

What is the root cause of that problem?

avatar skeleton size isn't consistent with parent view size

App/src/styles/index.ts

Lines 1445 to 1449 in c915e7f

sidebarAvatar: {
borderRadius: 28,
height: 28,
width: 28,
},

<SkeletonViewContentLoader
animate
height={variables.componentSizeSmall}
backgroundColor={theme.skeletonLHNIn}
foregroundColor={theme.skeletonLHNOut}
>
<Circle
cx={skeletonCircleRadius}
cy={skeletonCircleRadius}
r={skeletonCircleRadius}
/>

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

<SkeletonViewContentLoader
animate
height={variables.componentSizeSmall}

Update this height to 28
Also update circle sizes to 14:
<Circle
cx={skeletonCircleRadius}
cy={skeletonCircleRadius}
r={skeletonCircleRadius}
/>

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Mar 17, 2024

Proposal

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

Profile - Avatar loading icon is not aligned properly within the highlighted green circle.

What is the root cause of that problem?

AvatarSkeleton uses componentSizeSmall as height.

<SkeletonViewContentLoader
animate
height={variables.componentSizeSmall}
backgroundColor={theme.skeletonLHNIn}
foregroundColor={theme.skeletonLHNOut}
>
<Circle
cx={skeletonCircleRadius}
cy={skeletonCircleRadius}
r={skeletonCircleRadius}
/>
</SkeletonViewContentLoader>

componentSizeSmall is dependent on the font size since it uses getValueUsingPixelRatio.

componentSizeSmall: getValueUsingPixelRatio(28, 32),

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

Use 28 size directly without getValueUsingPixelRatio to make the icon independent of font size, just like the chats bubble icon in the bottom bar is also independent of the font size.

<SkeletonViewContentLoader
    animate
-  height={variables.componentSizeSmall}
+  height={variables.avatarSizeSmall}
    backgroundColor={theme.skeletonLHNIn}
    foregroundColor={theme.skeletonLHNOut}
>

What alternative solutions did you explore? (Optional)

Alternatively, we can ensure that the border circle radius/size becomes dependent on the font size, then both the avatar and circle will scale together.

@abzokhattab
Copy link
Contributor

might be a duplicate of #38263

@mountiny mountiny added Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Mar 18, 2024
@mountiny
Copy link
Contributor

This does seem like could have been resolved by #38274 which we wont CP, removing the blocker label.

Lets retest in next staging release @kavimuru @kbecciv

@kosmydel
Copy link
Contributor

kosmydel commented Mar 18, 2024

This does seem like could have been resolved by #38274 which we wont CP, removing the blocker label.

Lets retest in next staging release @kavimuru @kbecciv

I will check it later today if the issue still occurs.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 18, 2024
Copy link

melvin-bot bot commented Mar 20, 2024

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 27, 2024
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Mar 27, 2024
@melvin-bot melvin-bot bot changed the title IOS - Profile - Avatar loading icon is not aligned properly within the highlighted green circle [HOLD for payment 2024-04-03] IOS - Profile - Avatar loading icon is not aligned properly within the highlighted green circle Mar 27, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

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

Copy link

melvin-bot bot commented Mar 27, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.56-8 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-04-03. 🎊

Copy link

melvin-bot bot commented Mar 27, 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:

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

@lschurr
Copy link
Contributor

lschurr commented Apr 2, 2024

Assigned to @mkhutornyi since you were the C+ reviewer on the PR.

@lschurr lschurr added the External Added to denote the issue can be worked on by a contributor label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0183d1c8e91b21dfe4

@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-04-03] IOS - Profile - Avatar loading icon is not aligned properly within the highlighted green circle [$500] [HOLD for payment 2024-04-03] IOS - Profile - Avatar loading icon is not aligned properly within the highlighted green circle Apr 2, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 2, 2024
@lschurr
Copy link
Contributor

lschurr commented Apr 2, 2024

Sorry for the ping @ikevin127 - This bug is already fixed. Removing your assignment :)

@lschurr
Copy link
Contributor

lschurr commented Apr 2, 2024

Payment summary:

@lschurr
Copy link
Contributor

lschurr commented Apr 3, 2024

Hi @mkhutornyi - please accept the offer in Upwork :)

@lschurr
Copy link
Contributor

lschurr commented Apr 5, 2024

Bumped in Slack

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@lschurr
Copy link
Contributor

lschurr commented Apr 8, 2024

Still waiting for @mkhutornyi to accept the offer. Moving to Weekly in the meantime.

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2024
@lschurr lschurr added Weekly KSv2 and removed Daily KSv2 labels Apr 8, 2024
@lschurr
Copy link
Contributor

lschurr commented Apr 12, 2024

The offer still isn't accepted by @mkhutornyi - I've reached out in Slack. Please reopen the GH or send me a message via Slack when you're ready for payment. Closing this GH for now.

@lschurr lschurr closed this as completed Apr 12, 2024
@lschurr
Copy link
Contributor

lschurr commented Jun 6, 2024

New offer sent to @mkhutornyi - https://www.upwork.com/nx/wm/offer/102626632

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 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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants