Skip to content

[HOLD for payment 2024-03-07] [$500] Android - Home - Time and other elements in phone header is not visible in light mode #33674

Closed

Description

@kbecciv

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:

Pre-condition open app in light mode

  1. Launch app
  2. Note header elements like phone time etc.,

Expected Result:

Time and other elements in phone header must be visible in light mode

Actual Result:

Time and other elements in phone header is not visible in light 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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d884bdaeefe025ea
  • Upwork Job ID: 1740123637523148800
  • Last Price Increase: 2024-01-03
  • Automatic offers:
    • jjcoffee | Reviewer | 28080054
    • tienifr | Contributor | 28080055

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 27, 2023
  2. changed the title [-]Android - Home - Time and other elements in phone header is not visible in light mode[/-] [+][$500] Android - Home - Time and other elements in phone header is not visible in light mode[/+] on Dec 27, 2023
  3. melvin-bot commented on Dec 27, 2023

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

    @melvin-bot

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

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

    @melvin-bot

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

  8. rayane-d commented on Dec 27, 2023

    @rayane-d
    Contributor

    Proposal

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

    Android status bar is not visible in light mode.

    What is the root cause of that problem?

    we are setting an incorrect status bar style here:

    statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT,

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

    we should change it to:

        statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,

    Result:

    before:

    image

    after:

    image

    What alternative solutions did you explore? (Optional)

  9. tienifr commented on Dec 28, 2023

    @tienifr
    Contributor

    Proposal

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

    Time and other elements in phone header is not visible in light mode

    What is the root cause of that problem?

    In here, we set the initial state of the status bar. But the status bar color isn't updated via updateStatusBarAppearance yet, that initial state causes the status bar not to change color due to this logic because we think that the color was already updated, but it was not, only the state was initialized.

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

    We can simply initiate the status bar state to undefined here instead of initialize it with the theme current status bar.

    const [statusBarStyle, setStatusBarStyle] = useState();
    

    This will make sure initially when no status bar style is set, this will be evaluated to false and the status bar style will be set correctly.

    Or in an useEffect, set the initial colors (same as initial value of statusBarStyle state) of the status bar by updateStatusBarAppearance, to make sure when we say, in the state, initial color of statusBar is something, it is correctly initialized like that.

    What alternative solutions did you explore? (Optional)

    Set barStyle prop for the StatusBar based on the status bar style in the initial state.

  10. tienifr commented on Dec 28, 2023

    @tienifr
  11. bfitzexpensify commented on Dec 29, 2023

    @bfitzexpensify
    Contributor

    Couple of proposals ready for review @jjcoffee - thank you!

  12. 56 remaining items

  13. melvin-bot commented on Feb 29, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 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-03-07. 🎊

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

  14. melvin-bot commented on Feb 29, 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:

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

    @bfitzexpensify
    Contributor

    Switching to Daily so that I action this when payment is due tomorrow

  16. bfitzexpensify commented on Mar 6, 2024

    @bfitzexpensify
    Contributor

    Payments all done - please complete the BZ checklist when you get a moment @jjcoffee - thank you!

  17. jjcoffee commented on Mar 7, 2024

    @jjcoffee
    Contributor

    Regression Test Proposal

    1. Set app in light mode
    2. Reopen app
    3. Verify that the status bar renders correctly with the appropriate text colour for the theme
    4. Sign out and verify 3
    5. Sign in and verify 3
    6. Repeat all steps with dark mode
    7. Change theme from another device
    8. Verify theme and status bar are updated accordingly

    Do we agree 👍 or 👎

  18. added and removed on Mar 7, 2024
  19. bfitzexpensify commented on Mar 8, 2024

    @bfitzexpensify
    Contributor

    Looks good to me - proposed via https://github.com/Expensify/Expensify/issues/376686. Let's close this out - thanks everyone!

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions