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-08] [$1000] Android - User icons overlapping in the group header and outline is not showing perfectly. #22952

Closed
1 of 6 tasks
kbecciv opened this issue Jul 15, 2023 · 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 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jul 15, 2023

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


Action Performed:

  1. Open App and Go offline
  2. Press FAB > New Group
  3. Select 8 participants > Press Create Group
  4. Observe the page Header where one avatar of the user and +7 are written & also observe the 8 Avatars in the Chat Header

Expected Result:

Chat header icons should be like the ios where we can not see the avatar of another user from semi-transparent background.

Actual Result:

Chat header icons should be like the ios where icons do not overlap another icon.

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.41-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
Group-icon-overlap
group-chat-header

Screen_Recording_20230715_154037_Expensify.Chat.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0194b561dccf84201f
  • Upwork Job ID: 1681461212925595648
  • 2023-07-19
  • Automatic offers:
    • s77rt | Reviewer | 25762373
    • jayeshmangwani | Contributor | 25762376
    • jayeshmangwani | Reporter | 25762379
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 15, 2023

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

@melvin-bot
Copy link

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

@kbecciv
Copy link
Author

kbecciv commented Jul 15, 2023

Proposal

from: @jayeshmangwani

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

User icons overlapping in the group header and outline is not showing perfectly.

What is the root cause of that problem?

On Android, when we apply opacity to a parent, all of its children will inherit the opacity; context is here in the issue

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

We need to pass needsOffscreenAlphaCompositing prop to the OfflineWithFeedback parent Of the Group page Header and Chat header Components here so that Android can align with other platforms and child does not inherit the opacity

At these two places, we need to add the needsOffscreenAlphaCompositing prop to OfflineWithFeedback

1. For Report screen header

<OfflineWithFeedback
pendingAction={addWorkspaceRoomOrChatPendingAction}
errors={addWorkspaceRoomOrChatErrors}
shouldShowErrorMessages={false}

2. For Chat Header where 8 users Avatar is visible

<OfflineWithFeedback
pendingAction={lodashGet(props.report, 'pendingFields.addWorkspaceRoom') || lodashGet(props.report, 'pendingFields.createChat')}
errors={lodashGet(props.report, 'errorFields.addWorkspaceRoom') || lodashGet(props.report, 'errorFields.createChat')}
errorRowStyles={[styles.ml10, styles.mr2]}
onClose={() => Report.navigateToConciergeChatAndDeleteReport(props.report.reportID)}

This Same Issue happens at a few places on the Android

1. Workspace Thread header
WS-header

2. LHN OptionsList

LHN-OptionsList

We also need to add the needsOffscreenAlphaCompositing prop to parent OfflineWithFeedback.

<OfflineWithFeedback
pendingAction={this.props.option.pendingAction}
errors={this.props.option.allReportErrors}
shouldShowErrorMessages={false}

<OfflineWithFeedback
pendingAction={optionItem.pendingAction}
errors={optionItem.allReportErrors}
shouldShowErrorMessages={false}

Note: We will test all the overlapping icons offline on Android in part of this issue so that those can be fixed in this single issue

@jayeshmangwani
Copy link
Contributor

Proposal

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

User icons overlapping in the group header and outline is not showing perfectly.

What is the root cause of that problem?

On Android, when we apply opacity to a parent, all of its children will inherit the opacity; context is here in the issue

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

We need to pass needsOffscreenAlphaCompositing prop to the OfflineWithFeedback parent Of the Group page Header and Chat header Components here so that Android can align with other platforms and child does not inherit the opacity

At these two places, we need to add the needsOffscreenAlphaCompositing prop to OfflineWithFeedback

1. For Report screen header

<OfflineWithFeedback
pendingAction={addWorkspaceRoomOrChatPendingAction}
errors={addWorkspaceRoomOrChatErrors}
shouldShowErrorMessages={false}

2. For Chat Header where 8 users Avatar is visible

<OfflineWithFeedback
pendingAction={lodashGet(props.report, 'pendingFields.addWorkspaceRoom') || lodashGet(props.report, 'pendingFields.createChat')}
errors={lodashGet(props.report, 'errorFields.addWorkspaceRoom') || lodashGet(props.report, 'errorFields.createChat')}
errorRowStyles={[styles.ml10, styles.mr2]}
onClose={() => Report.navigateToConciergeChatAndDeleteReport(props.report.reportID)}

This Same Issue happens at a few places on the Android

1. Workspace Thread header
WS-header

2. LHN OptionsList

LHN-OptionsList

We also need to add the needsOffscreenAlphaCompositing prop to parent OfflineWithFeedback.

<OfflineWithFeedback
pendingAction={this.props.option.pendingAction}
errors={this.props.option.allReportErrors}
shouldShowErrorMessages={false}

<OfflineWithFeedback
pendingAction={optionItem.pendingAction}
errors={optionItem.allReportErrors}
shouldShowErrorMessages={false}

Note: We will test all the overlapping icons offline on Android in part of this issue so that those can be fixed in this single issue

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

melvin-bot bot commented Jul 18, 2023

@michaelhaxhiu Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@michaelhaxhiu michaelhaxhiu added the External Added to denote the issue can be worked on by a contributor label Jul 19, 2023
@melvin-bot melvin-bot bot changed the title Android - User icons overlapping in the group header and outline is not showing perfectly. [$1000] Android - User icons overlapping in the group header and outline is not showing perfectly. Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0194b561dccf84201f

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

melvin-bot bot commented Jul 19, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

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

@michaelhaxhiu
Copy link
Contributor

reproduced!

@melvin-bot melvin-bot bot removed the Overdue label Jul 19, 2023
@Nodebrute
Copy link
Contributor

Proposal

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

Android - User icons overlapping in the group header and outline is not showing perfectly.

What is the root cause of that problem?

On Android, when we apply opacity to a parent, all of its children will inherit the opacity
https://twitter.com/kzzzf/status/1075450650975195136

In the first PR where needsOffscreenAlphaCompositing was introduced. In that issue their focus was only to fix IOU previews opacity so they passed the prop to set needsOffscreenAlphaCompositing but this issue is bigger than just IOU preview.

These are 3 checks they were using to set needsOffscreenAlphaCompositing

  1. For Android platform only
  2. If needsOpacity of OfflineWithFeedback is true
  3. IOUPreview component only (by passing prop)

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

There's no need to pass props to set needsOffscreenAlphaCompositing

needsOffscreenAlphaCompositing={shouldRenderOffscreen ? needsOpacity && props.needsOffscreenAlphaCompositing : undefined}

With the first check, we ensure that it is only applied on Android, as this issue exists only on Android. With the second check, we verify if the component needsOpacity. If it is true, we can set needsOffscreenAlphaCompositing.

needsOffscreenAlphaCompositing={shouldRenderOffscreen ? needsOpacity : undefined}

By making this change this issue will be fixed across app.

What alternative solutions did you explore? (Optional)

@s77rt
Copy link
Contributor

s77rt commented Jul 19, 2023

@melvin-bot melvin-bot bot added the Overdue label Jul 21, 2023
@s77rt
Copy link
Contributor

s77rt commented Jul 22, 2023

Not overdue. Based on the latest discussion on the slack thread, the use of needsOffscreenAlphaCompositing may cause some "incompatibilities". In this case the global fix seems less favorable but I think it's still worth it as those incompatibilities can be fixed. I have bumped the thread for more 👀.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 22, 2023
@s77rt
Copy link
Contributor

s77rt commented Jul 24, 2023

Not overdue, Melvin. No activity on that Slack thread yet but we will probably go with a solution this week

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@s77rt
Copy link
Contributor

s77rt commented Jul 26, 2023

From the Slack discussion we want to move with the "Only apply the fix when needed" approach. In that case we can move with @jayeshmangwani's proposal.

🎀 👀 🎀 C+ reviewed
Link to proposal

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

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

@s77rt PR is ready for Review

@melvin-bot
Copy link

melvin-bot bot commented Jul 28, 2023

🎯 ⚡️ Woah @s77rt / @jayeshmangwani, 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 @jayeshmangwani got assigned: 2023-07-26 11:44:54 Z
  • when the PR got merged: 2023-07-28 11:44:54 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 Aug 1, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Android - User icons overlapping in the group header and outline is not showing perfectly. [HOLD for payment 2023-08-08] [$1000] Android - User icons overlapping in the group header and outline is not showing perfectly. Aug 1, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

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 Aug 1, 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:

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

@s77rt
Copy link
Contributor

s77rt commented Aug 3, 2023

  • The PR that introduced the bug has been identified: None. This is an Android thing
  • The offending PR has been commented on: n/a
  • A discussion in #expensify-bugs has been started: We have this (#expensify-open-source) https://expensify.slack.com/archives/C01GTK53T8Q/p1689793295080599
  • Determine if we should create a regression test for this bug: No

@michaelhaxhiu michaelhaxhiu removed the Bug Something is broken. Auto assigns a BugZero manager. label Aug 4, 2023
@michaelhaxhiu michaelhaxhiu removed their assignment Aug 4, 2023
@michaelhaxhiu michaelhaxhiu added the Bug Something is broken. Auto assigns a BugZero manager. label Aug 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2023

Triggered auto assignment to @kadiealexander (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 Aug 4, 2023
@Expensify Expensify deleted a comment from melvin-bot bot Aug 4, 2023
@michaelhaxhiu michaelhaxhiu self-assigned this Aug 4, 2023
@michaelhaxhiu
Copy link
Contributor

michaelhaxhiu commented Aug 4, 2023

Note: I'm preparing to go OOO for ~2 weeks and need a BZ buddy to watch over this in the meantime. 🙏

Next steps:

Wait for 8/8 to arrive. After that's done, we'll process payments as follows (assuming no regressions 🤞):

I'll take this over when I return if it's not complete. Thanks in advance @kadiealexander

@kadiealexander
Copy link
Contributor

@kadiealexander
Copy link
Contributor

Everyone is paid! 🎉

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

7 participants