Skip to content

[HOLD for payment 2024-02-20] [$250] Profile - Error message when loading User / WS avatar has incorrect dimensions and position #35777

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

Closed
4 of 6 tasks
lanitochka17 opened this issue Feb 4, 2024 · 28 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Design Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 4, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.36-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Open iOS/Android App or go to staging.new.expensify.com on mobile Chrome / Safari
  2. Login with any account
  3. Go to User profile and load user avatar with incorrect size to generate an error message
  4. Create existing workspace or go to existing one
  5. Go to Overview and load Workspace avatar with incorrect size to generate an error message

Expected Result:

The error message has the correct dimensions and position

Actual Result:

User avatar -> Error message overlaps user name
WS avatar -> Error message takes up the entire width of the screen

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

Bug6366478_1707015780141!iOS-WS-Avatar-Error

Bug6366478_1707015780153!iOS-User-Avatar-Error

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013bfbb99c962ed2f1
  • Upwork Job ID: 1754499172400123904
  • Last Price Increase: 2024-02-05
  • Automatic offers:
    • bernhardoj | Contributor | 28149470
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Feb 4, 2024
Copy link
Contributor

github-actions bot commented Feb 4, 2024

👋 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 Feb 4, 2024

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

@Tony-MK
Copy link
Contributor

Tony-MK commented Feb 5, 2024

Proposal

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

Profile - Error message when loading User / WS avatar has incorrect dimensions and position

What is the root cause of that problem?

The errorStyles prop is passed in the AvatarWithImagePicker component for the InitialSettingsPage.

While in the WorkspaceOverviewPage, errorRowStyles is left out.

errorRowStyles={[styles.mt6]}

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

Remove the errorStyles prop and match any styles from the AvatarWithImagePicker component in WorkspaceOverviewPage to InitialSettingsPage for consistency.

@mountiny mountiny added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 5, 2024
@melvin-bot melvin-bot bot changed the title Profile - Error message when loading User / WS avatar has incorrect dimensions and position [$500] Profile - Error message when loading User / WS avatar has incorrect dimensions and position Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

Job added to Upwork: https://www.upwork.com/jobs/~013bfbb99c962ed2f1

@mountiny mountiny moved this to Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) in [#whatsnext] Wave 08 - Collect Plan Admins Feb 5, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

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

@mountiny mountiny changed the title [$500] Profile - Error message when loading User / WS avatar has incorrect dimensions and position [$250] Profile - Error message when loading User / WS avatar has incorrect dimensions and position Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

Upwork job price has been updated to $250

@mountiny mountiny added Design Bug Something is broken. Auto assigns a BugZero manager. labels Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

Triggered auto assignment to @dubielzyk-expensify (Design), see these Stack Overflow questions for more details.

Copy link

melvin-bot bot commented Feb 5, 2024

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

@mountiny
Copy link
Contributor

mountiny commented Feb 5, 2024

Lowering the rewards since this is a simple styling change

@dubielzyk-expensify could you please also clarify how this should look like? thank you!

@bernhardoj
Copy link
Contributor

Proposal

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

The avatar error message width is very small and workspace avatar error message doesn't have a horizontal spacing.

What is the root cause of that problem?

This happens after the ideal nav PR where we move the AvatarWithImagePicker from ProfilePage to InitialSettingsPage. Previously, the AvatarWithImagePicker is inside a scroll view with a full width, but in InitialSettingsPage, AvatarWithImagePicker is inside an OfflineWithFeedback and another View that has an align items center style (avatarSectionWrapperSettings) to align all items horizontally.

<View style={[styles.avatarSectionWrapperSettings, styles.justifyContentCenter, styles.ph5]}>
{_.isEmpty(props.currentUserPersonalDetails) || _.isUndefined(props.currentUserPersonalDetails.displayName) ? (
<CurrentUserPersonalDetailsSkeletonView avatarSize={CONST.AVATAR_SIZE.XLARGE} />
) : (
<>
<OfflineWithFeedback
pendingAction={lodashGet(props.currentUserPersonalDetails, 'pendingFields.avatar', null)}
style={styles.mb3}
>
<AvatarWithImagePicker

If the align items is center, the OfflineWithFeedback will be put in the center with a limited width as shown below
image

and on native, the AvatarWithImagePicker width can't expand the OfflineWithFeedback width when a new element is added.

For the workspace avatar, we simply didn't set a horizontal margin style.

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

Set the OfflineWithFeedback width to 100%.

<OfflineWithFeedback
pendingAction={lodashGet(props.currentUserPersonalDetails, 'pendingFields.avatar', null)}
style={styles.mb3}

Remove the extra space of the avatar.

style={[styles.mh5]}

We already have the horizontal spacing from the View wrapper

<View style={[styles.avatarSectionWrapperSettings, styles.justifyContentCenter, styles.ph5]}>

For workspace avatar, add a horizontal margin (mh5).

style={[styles.mb3, styles.mt5]}

@melvin-bot melvin-bot bot added the Overdue label Feb 7, 2024
@melvin-bot melvin-bot bot changed the title [$250] Profile - Error message when loading User / WS avatar has incorrect dimensions and position [HOLD for payment 2024-02-20] [$250] Profile - Error message when loading User / WS avatar has incorrect dimensions and position Feb 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

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

Copy link

melvin-bot bot commented Feb 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-5 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-02-20. 🎊

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

Copy link

melvin-bot bot commented Feb 13, 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:

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

@mallenexpensify mallenexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 13, 2024
@CortneyOfstad
Copy link
Contributor

Payment is scheduled for Tuesday 👍

@melvin-bot melvin-bot bot added the Overdue label Feb 16, 2024
@CortneyOfstad
Copy link
Contributor

CortneyOfstad commented Feb 16, 2024

Not overdue, as the PR went into production 3 days ago. Payment is still scheduled for Tuesday, barring any regressions 👍

@melvin-bot melvin-bot bot added Overdue Daily KSv2 and removed Overdue Daily KSv2 labels Feb 16, 2024
@CortneyOfstad
Copy link
Contributor

No regression listed so getting this payment rolled out!

@CortneyOfstad
Copy link
Contributor

Alright payment summary below!

Payment Summarty

@bernhardoj (Contributor) — paid $250 via Upwork
@thesahindia (C+) — to be paid $250 via NewDot

@CortneyOfstad
Copy link
Contributor

@thesahindia any update on the checklist here?

@CortneyOfstad
Copy link
Contributor

@thesahindia in regards to the checklist, do you think this could be completed by EOD today? Also, has a request been sent to NewDot for payment? Thanks!

@thesahindia
Copy link
Member

thesahindia commented Feb 22, 2024

I don't think this needs a regression test.

This was caused by #33280. It was a big PR, so we couldn’t have prevented this.

@thesahindia
Copy link
Member

Also, has a request been sent to NewDot for payment? Thanks!

I am going OOO, I will send the request after coming back. You can close this.

@CortneyOfstad
Copy link
Contributor

Thanks @thesahindia!

@github-project-automation github-project-automation bot moved this from Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) to Done in [#whatsnext] Wave 08 - Collect Plan Admins Feb 22, 2024
@JmillsExpensify
Copy link

$250 for @thesahindia

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 Design Engineering External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Development

No branches or pull requests