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

[HOLD for payment 2024-02-19] [$500] [Wave 8] [Ideal Nav] The color of Status Bar (top part of the background) is not consistent #35632

Closed
1 of 6 tasks
hayata-suenaga opened this issue Feb 2, 2024 · 22 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented Feb 2, 2024

Action Performed:

  1. Open the app on a mobile browser
  2. Go to Chat page (Chat icon on the bottom tab)
  3. Go to Settings page (🔧 icon on the bottom tab)
  4. Go to Settings page > Workspaces

Expected Result:

The color should be consistent

Actual Result:

The colors are different across different pages

Workaround:

N/A

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

screenshots -> #33280 (comment)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f7200068e359bb73
  • Upwork Job ID: 1753450480673206272
  • Last Price Increase: 2024-02-02
@hayata-suenaga hayata-suenaga added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 2, 2024
@hayata-suenaga hayata-suenaga self-assigned this Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

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

@hayata-suenaga hayata-suenaga changed the title The color of Status Bar (top part of the background) is not consistent [Wave 8] [Ideal Nav] The color of Status Bar (top part of the background) is not consistent Feb 2, 2024
@hayata-suenaga hayata-suenaga moved this to Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) in [#whatsnext] Wave 08 - Collect Plan Admins Feb 2, 2024
@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Feb 2, 2024
@melvin-bot melvin-bot bot changed the title [Wave 8] [Ideal Nav] The color of Status Bar (top part of the background) is not consistent [$500] [Wave 8] [Ideal Nav] The color of Status Bar (top part of the background) is not consistent Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

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

@hayata-suenaga
Copy link
Contributor Author

Please hold a little bit before posting proposals until I confirm that this issue is handled independently (there is a possibility that this issue is combined with this issue)

@bernhardoj
Copy link
Contributor

Posting a proposal before going offline in case we want to handle it separately.

Proposal

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

The status bar color doesn't match the page on the chat and workspace list page.

What is the root cause of that problem?

The status bar color is defined by the PAGE_THEMES here.

PAGE_THEMES: {
[SCREENS.HOME]: {
backgroundColor: colors.productDark200,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},

The chat/HOME page uses productDark200 (for dark mode) as the color, but the page color uses appBG, which is productDark100. It goes the same for the workspace list which uses pink color.

[SCREENS.SETTINGS.WORKSPACES]: {
backgroundColor: colors.pink800,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},

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

We can update the color to productDark100 to match the page color or just remove it from the list because the default value is productDark100 (appBG).

let currentScreenBackgroundColor = theme.appBG;
if (currentRoute && 'name' in currentRoute && currentRoute.name in theme.PAGE_THEMES) {

we need to update the light mode color too

@rushatgabhane
Copy link
Member

defering to @hayata-suenaga's comment to hold #35632 (comment)

@hayata-suenaga
Copy link
Contributor Author

still waiting for an answer to this

@kosmydel
Copy link
Contributor

kosmydel commented Feb 8, 2024

This one was fixed in this PR.

However, there are other problems with StatusBar:

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue Weekly KSv2 labels Feb 8, 2024
@bernhardoj
Copy link
Contributor

The home status bar isn't fixed yet.

image

android insets are broken sometimes:

It's a known issue here: #34050 #36010

@hayata-suenaga
Copy link
Contributor Author

Because the issue is fixed in @kosmydel's PR, I'll close this issue.

the status bar is not updating after theme change

@kosmydel, could you handle this issue in your PR?

@github-project-automation github-project-automation bot moved this from Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) to Done in [#whatsnext] Wave 08 - Collect Plan Admins Feb 8, 2024
@bernhardoj
Copy link
Contributor

@hayata-suenaga It's not fixed yet for the home page #35632 (comment)

Copy link

melvin-bot bot commented Feb 9, 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.

@hayata-suenaga
Copy link
Contributor Author

@hayata-suenaga It's not fixed yet for the home page #35632 (comment)

checking here

@hayata-suenaga
Copy link
Contributor Author

@kosmydel could you check this comment when you have time please? 🙇

@kosmydel
Copy link
Contributor

kosmydel commented Feb 9, 2024

@kosmydel could you check this comment when you have time please? 🙇

Changing this in config broke the android insets. That's why I haven't changed it. Here is more details:
#35564 (comment)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 12, 2024
@melvin-bot melvin-bot bot changed the title [$500] [Wave 8] [Ideal Nav] The color of Status Bar (top part of the background) is not consistent [HOLD for payment 2024-02-19] [$500] [Wave 8] [Ideal Nav] The color of Status Bar (top part of the background) is not consistent Feb 12, 2024
Copy link

melvin-bot bot commented Feb 12, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 12, 2024
Copy link

melvin-bot bot commented Feb 12, 2024

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

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

Copy link

melvin-bot bot commented Feb 12, 2024

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:

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

@hayata-suenaga
Copy link
Contributor Author

@kosmydel could you check #35632 (comment) when you have time please? 🙇

Changing this in config broke the android insets. That's why I haven't changed it. Here is more details:
#35564 (comment)

@kosmydel Thank you for reminding me of that. Are you working on this in a separate issue or should I create a new issue for you?

@kosmydel
Copy link
Contributor

@kosmydel Thank you for reminding me of that. Are you working on this in a separate issue or should I create a new issue for you?

I can have a look at this, but I found a PR (#34409) that addresses a mWeb status bar issue. The author of the PR suggests that he found a solution for that. In case this doesn't solve our problem, I can surely investigate it.

@hayata-suenaga
Copy link
Contributor Author

okay let's see if the PR will solve the issue 👍

@ishpaul777
Copy link
Contributor

ishpaul777 commented Feb 27, 2024

Unfortunately there was other PR on which my suggested changes depends #34637 to fully solve the problem and that PR had some blockers (might have been resolved now) so i decided not to include the suggested change in my PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

7 participants