Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.36k stars 2.78k forks source link

[HOLD for payment 2024-01-04] [$250] Android - Workspace - Card icon is shown as a green square icon #33594

Closed kbecciv closed 8 months ago

kbecciv commented 9 months ago

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: v1.4.17-1 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): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:

Action Performed:

  1. Launch New Expensify app.
  2. Go to Settings > Workspaces > any workspace.

Expected Result:

All icons are displayed properly.

Actual Result:

Card icon is shown as a green square icon.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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/~01b583b60c7afce86e
  • Upwork Job ID: 1739665839943921664
  • Last Price Increase: 2023-12-26
  • Automatic offers:
    • situchan | Contributor | 28070426
    • aswin-s | Contributor | 28070450
Issue OwnerCurrent Issue Owner: @JmillsExpensify
github-actions[bot] commented 9 months ago

:wave: 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.
melvin-bot[bot] commented 9 months ago

Triggered auto assignment to @mountiny (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

mountiny commented 9 months ago

Potentially related to the expo image update, but its odd this is only happening on native android

mountiny commented 9 months ago

QA confirmed only happening on native android

melvin-bot[bot] commented 9 months ago

Job added to Upwork: https://www.upwork.com/jobs/~01b583b60c7afce86e

melvin-bot[bot] commented 9 months ago

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

mountiny commented 9 months ago

Actually found that this will most likely be related to the expo image update as there were some other icons which had similar issue https://expensify.slack.com/archives/C01GTK53T8Q/p1703186271886829

mountiny commented 9 months ago

cc @akinwale @WojtekBoman

melvin-bot[bot] commented 9 months ago

Upwork job price has been updated to $250

tienifr commented 9 months ago

Proposal

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

Card icon is shown as a green square icon.

What is the root cause of that problem?

There card icon path has a typo, it's expensifycard

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

Should be expensify-card

What alternative solutions did you explore? (Optional)

NA

mountiny commented 9 months ago

Still looking for proposals

Tony-MK commented 9 months ago

On the dev environment, it seems like it works properly.

Screenshot

mountiny commented 9 months ago

I do not have android to confirm this in staging/ prod

mountiny commented 9 months ago

Thanks! @Tony-MK Do you for sure have the latest main with expo-image installed?

shubham1206agra commented 9 months ago
Screenshot 2023-12-26 at 9 42 01 PM

Not able to repro this on emulator

Pujan92 commented 9 months ago

Same for me too.

Screenshot_1703607135

situchan commented 9 months ago

@mountiny can we get android apk for staging build? Contributors don't have access to it

mountiny commented 9 months ago

Lets check on some adhoc build waiting for some to finish

Tony-MK commented 9 months ago

@mountiny It was version v1.4.17-1 Develop but it seems other contributors have verified it.

ishpaul777 commented 9 months ago

Tested on latest main on physical device, not reproducable. PHOTO-2023-12-26-21-56-59

mountiny commented 9 months ago

I am making an adhoc buil don this up to date PR so you could test there https://github.com/Expensify/App/pull/33604

situchan commented 9 months ago

reproduced in release build. Not happening in debug build. This happens on all android devices, no matter real device or emulator.

shubham1206agra commented 9 months ago

Yes In release build, it happens

shubham1206agra commented 9 months ago

Tested on latest main on physical device, not reproducable. PHOTO-2023-12-26-21-56-59

@ishpaul777 What error are you getting here?

ishpaul777 commented 9 months ago

The proptype error is unrelated appears when click on bank account option

https://github.com/Expensify/App/assets/104348397/5ecdeb47-24d7-4af8-96fc-7a36a3d3de32

RC for the error is undefined proptype value is assigned in IconSection introduced in https://github.com/Expensify/App/commit/5e800a2289c1cd2c4a1d7a19ab53b0791a776f3d https://github.com/Expensify/App/blob/92501dc7f0288dc88016159d40ed693547222284/src/components/Section/IconSection.js#L8-L12

aimane-chnaif commented 9 months ago

RC for the error is undefined proptype value is assigned in IconSection introduced in https://github.com/Expensify/App/commit/5e800a2289c1cd2c4a1d7a19ab53b0791a776f3d

it's known and will be fixed separately during TS migration. Btw not urgent since it's just console warning

kbecciv commented 9 months ago

@mountiny Issue is reported on:

  1. Samsung Galaxy Note 10+ / Android 12
  2. Samsung Galaxy Z Fold 4 / Android 14
  3. Samsung Galaxy A02s/12
  4. Pixel 6 / Android 14
  5. Pixel 5 / Android 14

Screenshot_20231226-123247 Screenshot_20231227_023215_New Expensify photo_2023-12-26_13-32-26 image (44)

mountiny commented 9 months ago

@shubham1206agra @ishpaul777 @situchan any proposals for this one? I think if this would be a last DB, I would remove the label as its minor but would be nice to fix it

aswin-s commented 9 months ago

Proposal

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

Card icon on Workspace home screen is shown as a green square icon.

What is the root cause of that problem?

TheExpensifyCard icon file name is expensifycard.svg. There is another asset named expensify-card.svg which is mapped to ExpensifyCardImage. Looks like after release build there is a name conflict that causes the image assets to get swapped/overwritten.

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

Simply rename the file to expensify-card-icon.svg and update the import in Expensicons.ts like below

import ExpensifyCard from '@assets/images/expensify-card-icon.svg';

To verify the fix generate a release build using below command and check the Workspace screen.

npx react-native run-android  --mode release

What alternative solutions did you explore? (Optional)

None (edited)

mountiny commented 9 months ago

@aswin-s interesting, did you test this theory?

aswin-s commented 9 months ago

@mountiny Yes, I generated a release build locally and tested on simulator. I could simulate the green square icon on simulator before the fix too.

melvin-bot[bot] commented 9 months ago

📣 @situchan 🎉 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[bot] commented 9 months ago

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

melvin-bot[bot] commented 9 months ago

Bug0 Triage Checklist (Main S/O)

mountiny commented 9 months ago

@aswin-s Can you make a draft PR so we can generate adhoc build for testing?

aswin-s commented 9 months ago

@mountiny Done!

melvin-bot[bot] commented 9 months ago

📣 @aswin-s 🎉 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[bot] commented 9 months ago

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

melvin-bot[bot] commented 9 months ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.17-8 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-01-03. :confetti_ball:

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.

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

melvin-bot[bot] commented 9 months ago

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:

melvin-bot[bot] commented 9 months ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.18-8 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-01-04. :confetti_ball:

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.

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

melvin-bot[bot] commented 9 months ago

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:

melvin-bot[bot] commented 8 months ago

@JmillsExpensify, @aswin-s, @mountiny, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] commented 8 months ago

@JmillsExpensify, @aswin-s, @mountiny, @situchan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

mountiny commented 8 months ago

@situchan can you please complete the checklist here?

Summary is $250 to @aswin-s and $250 to @situchan

melvin-bot[bot] commented 8 months ago

@JmillsExpensify, @aswin-s, @mountiny, @situchan 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

situchan commented 8 months ago

Not able to find offending PR but from deploy checklist, I think expo-image PR is the culprit. This was caught by QA team during regression test so no need new regression test. To prevent such bugs further, it would be good to add eslint rule to avoid duplicated resource file names after excluding -, but not a big deal.

mountiny commented 8 months ago

@JmillsExpensify ready for payment

melvin-bot[bot] commented 8 months ago

@JmillsExpensify, @aswin-s, @mountiny, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] commented 8 months ago

@JmillsExpensify, @aswin-s, @mountiny, @situchan Eep! 4 days overdue now. Issues have feelings too...