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

[$1000] Share code - Light background does not appear below the avatar image (reported by @alitoshmatov) #20509

Closed
3 of 6 tasks
kbecciv opened this issue Jun 9, 2023 · 34 comments
Assignees
Labels
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 Jun 9, 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!


Issue found when executing PR #19883

Action Performed:

  1. Open the App and upload a profile picture that has a transparent background.
  2. Go to Settings -> Share code

Expected Result:

Verify that a light green background appears below the avatar image.

Actual Result:

A light green background does not appear below the avatar image.

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.26.1

Reproducible in staging?: yes

Reproducible in production?: yes

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

Bug6085932_Recording__267.mp4

Expensify/Expensify Issue URL:

Issue reported by: @alitoshmatov / Applause - Internal Team

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686247175943009

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013a3d4105d7772fca
  • Upwork Job ID: 1668408135973871616
  • Last Price Increase: 2023-06-13
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 9, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 9, 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

@Nikhil-Vats

This comment was marked as outdated.

@s-alves10
Copy link
Contributor

s-alves10 commented Jun 9, 2023

Proposal

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

Light background doesn't appear below the avatar image

What is the root cause of that problem?

We don't pass logoBackgroundColor props here so the default value(defaultTheme.icon) is used.

<QRCodeLibrary
getRef={props.getRef}
value={props.url}
size={props.size}
logo={props.logo}
logoBackgroundColor={props.logoBackgroundColor}
logoSize={props.size * props.logoRatio}
logoMargin={props.size * props.logoMarginRatio}
logoBorderRadius={props.size}
backgroundColor={props.backgroundColor}
color={props.color}
/>

logoBackgroundColor: defaultTheme.icon,

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

Set the default logoBackgroundColor to defaultTheme.highlightBG

    logoBackgroundColor: defaultTheme.highlightBG
Result

image

image

What alternative solutions did you explore? (Optional)

@alitoshmatov
Copy link
Contributor

I have reported this here - https://expensify.slack.com/archives/C049HHMV9SM/p1686247175943009

There are two problems

  1. When png uploaded, backend is converting it to jpeg and it is getting default dark background
  2. fix: add background to share code avatar #19883 produced the regression where every logo in qr code have grey background

@strepanier03
Copy link
Contributor

@alitoshmatov - Is this being fixed with the PR you mentioned? Do you recommend we put this GH on hold for now?

@alitoshmatov
Copy link
Contributor

@strepanier03 No this PR is the one causing the regression, right now there is no PR to fix this yet. I think someone should confirm that this is indeed regression of #19883 and state next steps.

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

melvin-bot bot commented Jun 12, 2023

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

@strepanier03 strepanier03 added the External Added to denote the issue can be worked on by a contributor label Jun 13, 2023
@melvin-bot melvin-bot bot changed the title Share code - Light background does not appear below the avatar image [$1000] Share code - Light background does not appear below the avatar image Jun 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

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

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

melvin-bot bot commented Jun 13, 2023

Triggered auto assignment to @aldo-expensify (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@strepanier03
Copy link
Contributor

Got it, thanks @alitoshmatov!

@melvin-bot melvin-bot bot removed the Overdue label Jun 13, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Jun 14, 2023

@strepanier03 @aldo-expensify I'm unsure if this a regression from #19883 as it is expected before @allroundexperts put up the PR.

Although, the result is not correct as expected in other PR that hit the production first #19984 (comment)

@strepanier03
Copy link
Contributor

@aldo-expensify - Can you please help up determine the regression here and next steps? I am heading out for sabbatical this evening so I will be reassigning this to another BZ momentarily.

@strepanier03 strepanier03 removed their assignment Jun 15, 2023
@strepanier03 strepanier03 added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jun 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 15, 2023

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

@melvin-bot

This comment was marked as outdated.

@strepanier03
Copy link
Contributor

@trjExpensify - Sorry to give you another but I've got a lot of BZ issues to hand off 😬.

I bumped the eng here to help figure out the regression and then this will need some pressure to keep moving forward. For today there is no immediate action required from you.

Thank you for wrapping this up 🙌

@aldo-expensify
Copy link
Contributor

@shawnborton to confirm what is the expected look of this:

Current:

Screenshot 2023-06-16 at 12 10 09 PM

This following is the expected background for the Share QR, right?

Screenshot 2023-06-16 at 12 11 44 PM

@shawnborton
Copy link
Contributor

shawnborton commented Jun 16, 2023

@alitoshmatov where did we end up with this? I think we originally decided that we should use the icon color as the BG color behind all transparent avatars everywhere in the app. However, I can see an argument to do something like the second screenshot above just for this particular QR code screen.

@aldo-expensify
Copy link
Contributor

If we agree with going with the second option above, we just have to revert #19883

@aldo-expensify aldo-expensify changed the title [$1000] Share code - Light background does not appear below the avatar image [$1000] Share code - Light background does not appear below the avatar image (reported by @alitoshmatov) Jun 16, 2023
@allroundexperts
Copy link
Contributor

@aldo-expensify correctly pointed this out. I think this ticket is not needed since we just have to revert #19883. However, I don't think that the revert should be treated as a regression because as seen clearly in the conversation here, the expectation was to set the same background colour as we're setting elsewhere.

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Jun 16, 2023

I think this ticket is not needed since we just have to revert #19883.

Agreed, unless there is a payment for reporting for @alitoshmatov . @trjExpensify do you think reporting reward applies here?

However, I don't think that the revert should be treated as a regression because as seen clearly in the conversation #19569, the expectation was to set the same background colour as we're setting elsewhere.

I'm fine with not considering it a regression, I understand that there was work in parallel addressing similar things in separate issues/PRs made it pretty hard to see that this was going to happen. I'm not sure what it means for your compensation on #19883 if we just revert it.

@allroundexperts can you put up a revert PR? 🙏

@allroundexperts
Copy link
Contributor

@allroundexperts can you put up a revert PR? 🙏

Sure thing!

@allroundexperts
Copy link
Contributor

#20938

Do I need a checklist for the revert as well @aldo-expensify?

@aldo-expensify
Copy link
Contributor

#20938

Do I need a checklist for the revert as well @aldo-expensify?

Thanks, I added the checklist to the body.

@aldo-expensify aldo-expensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 16, 2023
@alitoshmatov
Copy link
Contributor

The issue was that QR codes with expensify logo and non-transparent avatars were not checked after the changes. These changes were only aimed at fixing transparent avatars.

@melvin-bot melvin-bot bot added the Overdue label Jun 19, 2023
@trjExpensify
Copy link
Contributor

Agreed, unless there is a payment for reporting for @alitoshmatov . @trjExpensify do you think reporting reward applies here?

Was this the first time the bug was surfaced? If so, then I think payment for the bug report would be due.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2023

@trjExpensify @mollfpr @aldo-expensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Jun 23, 2023

@trjExpensify, @mollfpr, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@aldo-expensify
Copy link
Contributor

Was this the first time the bug was surfaced? If so, then I think payment for the bug report would be due.

I think it is the first time, I couldn't find other mentions.

@melvin-bot melvin-bot bot removed the Overdue label Jun 23, 2023
@trjExpensify
Copy link
Contributor

Offer sent for the bug report @alitoshmatov here.

@alitoshmatov
Copy link
Contributor

Accepted offer

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@trjExpensify
Copy link
Contributor

Cool, I've paid that out so going to close this issue now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

10 participants