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

New icons are corrupted #54514

Closed
2 of 8 tasks
IuliiaHerets opened this issue Dec 24, 2024 · 17 comments
Closed
2 of 8 tasks

New icons are corrupted #54514

IuliiaHerets opened this issue Dec 24, 2024 · 17 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 24, 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: 9.0.78-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: iPhone 11 / iOS 18.1
App Component: Other

Action Performed:

  1. Open NewDot app
  2. Navigate to Workspaces
  3. Navigate to a Workspace
  4. Navigate to Members

Expected Result:

The icon next to the header "Members" should have the right color:
image

Actual Result:

The icon color is wrong:
image

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

ScreenRecording_12-24-2024.12-43-34_1.MP4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Dec 24, 2024
Copy link

melvin-bot bot commented Dec 24, 2024

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Dec 24, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Dec 24, 2024
Copy link

melvin-bot bot commented Dec 24, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 24, 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.

@daledah
Copy link
Contributor

daledah commented Dec 24, 2024

Proposal

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

Icons are corrupted on IOS

What is the root cause of that problem?

We are using fill={iconFill ?? theme.icon} in

fill={iconFill ?? theme.icon}

That makes the icon has the theme.icon color

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

We should add the new prop like shouldUseThemeIconColor default as true, the disable it in case we need like in WorkspacesListPage, ...

fill={iconFill ?? (shouldUseThemeIconColor ? theme.icon : undefined)}

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)

NA

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Result

Screenshot 2024-12-24 at 19 10 46

@daledah
Copy link
Contributor

daledah commented Dec 24, 2024

@sonialiap @aldo-expensify Here's the offending PR: #52823. I can raise the quick PR to fix it

@aldo-expensify
Copy link
Contributor

The corruption is also reproducible in web:

image

@aldo-expensify aldo-expensify changed the title IOS - New icons are corrupted on IOS New icons are corrupted Dec 24, 2024
@daledah
Copy link
Contributor

daledah commented Dec 24, 2024

@aldo-expensify My solution works well on web too.

Screenshot 2024-12-24 at 20 25 22

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Dec 24, 2024

Thanks @daledah for the investigation, I tried to go with a simpler approach that I think should also work: #54531

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Dec 24, 2024
@daledah
Copy link
Contributor

daledah commented Dec 24, 2024

@aldo-expensify Can I help review the PR?

@aldo-expensify
Copy link
Contributor

@aldo-expensify Can I help review the PR?

No need @daledah , I think we need a C+ or someone from the Expensify engineering team. Thanks for offering though.

@shawnborton
Copy link
Contributor

Just to clarify this one, isn't it a regression? If so, shouldn't as ask the offending PR author to fix it?

@aldo-expensify
Copy link
Contributor

Just to clarify this one, isn't it a regression?

It is a regression.

If so, shouldn't as ask the offending PR author to fix it?

Yes, but that sometimes can take time and here the fix seems to be easy, so I put a PR to be able to clear the deploy blocker asap.

@parasharrajat
Copy link
Member

parasharrajat commented Dec 24, 2024

This is a duplicate issue of #54480. I have already created a PR for it. #54494

@aldo-expensify

@parasharrajat
Copy link
Member

parasharrajat commented Dec 24, 2024

May be you can review that and merge. Or I review your PR as C+, this way my efforts will not go waste. Then I will close my PR.

@aldo-expensify
Copy link
Contributor

Closing this as a dupe of #54480

Copy link

melvin-bot bot commented Dec 24, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

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. DeployBlockerCash This issue or pull request should block deployment Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants