Skip to content

[$500] BA - When page is reloaded in any form page, "Open in app" banner turns dark mode #34154

Closed

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.23-0
Reproducible in staging?: Y
Reproducible in production?: Cannot test on prod
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:

Pre-requisite: user must have New Expensify app installed and set light mode

  1. Go to Settings > Workspace > Bank account
  2. Start the add bank account flow
  3. In any form page, reload the page

Expected Result:

The "Open in app" banner should remain in light mode

Actual Result:

The "Open in app" banner turns to dark mode

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

Bug6336784_1704813052853.Cumh5666_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b0434639aab4eb51
  • Upwork Job ID: 1745355229456834560
  • Last Price Increase: 2024-01-11
  • Automatic offers:
    • ishpaul777 | Contributor | 28094255

Activity

  1. github-actions commented on Jan 9, 2024

    @github-actions
    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.
  2. melvin-bot commented on Jan 9, 2024

    @melvin-bot

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

  3. ishpaul777 commented on Jan 9, 2024

    @ishpaul777
    Contributor

    Proposal

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

    When page is reloaded in any form page, "Open in app" banner turns dark mode

    What is the root cause of that problem?

    if (newStatusBarStyle !== statusBarStyle) {
    updateStatusBarAppearance({statusBarStyle: newStatusBarStyle});
    setStatusBarStyle(newStatusBarStyle);
    }

    ☝️ here the status bar color is only changes when newStatusBarStyle !== statusBarStyle which seems to be wrong conditional

    offending PR- #33200

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

    Change it back to what it was before:

               if (newStatusBarStyle === statusBarStyle) {
                    updateStatusBarAppearance({backgroundColor: currentScreenBackgroundColor});
                } else {
                    updateStatusBarAppearance({backgroundColor: currentScreenBackgroundColor, statusBarStyle: newStatusBarStyle});
                    setStatusBarStyle(newStatusBarStyle);
                }

    I am available to raise a quick PR as this is a Deploy blocker

  4. aimane-chnaif commented on Jan 9, 2024

    @aimane-chnaif
    Contributor

    @ishpaul777 the proposal makes sense (not tested) but how can you show smart banner in dev?

  5. ishpaul777 commented on Jan 9, 2024

    @ishpaul777
    Contributor

    this is reporducable for status bar on simulator, smart banner just uses status bar color

    Screenshot 2024-01-10 at 2 10 26 AM
  6. aimane-chnaif commented on Jan 9, 2024

    @aimane-chnaif
    Contributor

    @ishpaul777's proposal looks good and tests well.
    cc: @bondydaa

    Simple repro step:

    1. Be in light mode
    2. Open any chat
    3. Refresh app
  7. bondydaa commented on Jan 9, 2024

    @bondydaa
    Contributor

    if this was caused by #33200 then it's not a blocker b/c that was deployed to prod it looks like.

    I posted on on that issue to get @roryabraham and @situchan 's 👀 on it but going to remove the blocker for now.

  8. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Jan 9, 2024
  9. aimane-chnaif commented on Jan 9, 2024

    @aimane-chnaif
    Contributor

    right, already in production

    Reproducible in production?: Cannot test on prod - this is the only reason for marking as deploy blocker I think

  10. 72 remaining items

  11. ishpaul777 commented on Mar 1, 2024

    @ishpaul777
    Contributor

    PR is merged and deployed to prod

  12. ishpaul777 commented on Mar 4, 2024

    @ishpaul777
    Contributor

    not overdue

  13. self-assigned this
    on Mar 7, 2024
  14. abekkala commented on Mar 7, 2024

    @abekkala
    Contributor

    self-assigning to get payments sent now that regression period is over.

  15. abekkala commented on Mar 7, 2024

    @abekkala
    Contributor

    PAYMENT SUMMARY:

  16. abekkala commented on Mar 7, 2024

    @abekkala
    Contributor

    @ishpaul777 payment sent and contract ended - thank you! 🎉

  17. parasharrajat commented on Mar 7, 2024

    @parasharrajat
    Member

    @abekkala Feel free to close it. I will request later. Thanks.

  18. parasharrajat commented on May 20, 2024

    @parasharrajat
    Member

    Payment requested as per #34154 (comment)

  19. JmillsExpensify commented on May 31, 2024

    @JmillsExpensify
    Contributor

    $500 approved for @parasharrajat

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

Metadata

Metadata

Labels

DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions