Skip to content

[HOLD for payment 2024-02-09] [$500] Android - Workspace - WS image is displayed without background #33682

Description

@lanitochka17

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: 1.4.18-2
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Tap on a Workspace ( with single letter name like eg:"Z")
  3. Tap Workspace icon in header
  4. Tap Workspace icon in Details page
  5. Note Workspace image is displayed with background in mweb.
  6. Launch app
  7. Repeat step 2 - step 4
  8. Note Workspace image is displayed without background in Android

Expected Result:

Workspace image must be displayed with background

Actual Result:

Workspace image is displayed without background in Android but with background in mweb

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

Bug6327135_1703716298402.az_recorder_20231228_001317.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010b6d3a83f995ac38
  • Upwork Job ID: 1740172374538711040
  • Last Price Increase: 2024-01-04
  • Automatic offers:
    • tienifr | Contributor | 28091060
Issue OwnerCurrent Issue Owner: @MitchExpensify

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Dec 28, 2023
  2. changed the title [-]Android - Workspace - WS image is displayed without background[/-] [+][$500] Android - Workspace - WS image is displayed without background[/+] on Dec 28, 2023
  3. melvin-bot commented on Dec 28, 2023

    @melvin-bot
  4. melvin-bot commented on Dec 28, 2023

    @melvin-bot

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

  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Dec 28, 2023
  6. melvin-bot commented on Dec 28, 2023

    @melvin-bot

    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
  7. melvin-bot commented on Dec 28, 2023

    @melvin-bot

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

  8. tienifr commented on Dec 28, 2023

    @tienifr
    Contributor

    Proposal

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

    Workspace image is displayed without background in Android but with background in mweb

    What is the root cause of that problem?

    Since the SVG migration to using expo-image, it no longer match this condition, because SVG is no longer React components, it's now statically imported

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

    Check if source is number here instead, because the statically imported SVG will have source as number, it's native iOS & Android's static asset representation.

    if (typeof source === 'number' && !transactionID) {
    

    The transactionID check is so that we exclude receipt case, since generic receipt is an image and it should never display as Icon. An alternative of this is that we can move all the checks related to receipt like here and here to above the source number check. But I prefer the transactionID check since it's more robust.

    What alternative solutions did you explore? (Optional)

    Since source number could be images as well, there could be risk of the image showing as icon if that happens (although currently I didn't find any such case in the app except for the generic receipt above). If we want to avoid that risk entirely, we can add another prop like isImage to indicate the file type (or add type to the file), and the condition of source above will take into account the file type as well, so only if the source is number, and it is CSV (or it's not image), we'll use the <Icon>.

  9. shubham1206agra commented on Dec 28, 2023

    @shubham1206agra
    Contributor

    @NicMendonca @sobitneupane Can we combine this GH with #33616?

    As #33616 (comment) seems to solve both issues.

  10. tienifr commented on Dec 28, 2023

    @tienifr
    Contributor

    @shubham1206agra they have 2 different root causes, in #33616 the solution that's accepted won't fix this issue.

    But we can hold this issue on that one though.

    cc @NicMendonca @sobitneupane

  11. shubham1206agra commented on Dec 28, 2023

    @shubham1206agra
    Contributor

    Nope both have the same root cause

    And the accepted solution is partially wrong

  12. 40 remaining items

  13. changed the title [-][$500] Android - Workspace - WS image is displayed without background[/-] [+][HOLD for payment 2024-02-09] [$500] Android - Workspace - WS image is displayed without background[/+] on Feb 2, 2024
  14. melvin-bot commented on Feb 2, 2024

    @melvin-bot

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

  15. melvin-bot commented on Feb 2, 2024

    @melvin-bot

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

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

  16. melvin-bot commented on Feb 2, 2024

    @melvin-bot

    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:

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

    @MitchExpensify
    Contributor

    Reminder set to pay

  18. MitchExpensify commented on Feb 13, 2024

    @MitchExpensify
    Contributor

    Payment summary:

    $500 @sobitneupane requires payment through NewDot Manual Requests
    $500 @tienifr requires payment automatic offer (Contributor) PAID

  19. JmillsExpensify commented on Mar 12, 2024

    @JmillsExpensify
    Contributor

    $500 approved for @sobitneupane based on summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions