-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2025-01-07] [$250] Android-Navigation bar shows purple color on "Submit an expense,get $250" page in offline mode #53444
Comments
👋 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:
|
Production 2024-12-03.11.25.02.AM.mp4 |
Triggered auto assignment to @MarioExpensify ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Hardly a deploy blocker. Demoting it. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem we're addressing is that the navigation bar color on the ReferralDetailsPage changes unexpectedly when the device goes offline. This creates an inconsistent user experience and doesn't align with the intended design of the page. What is the root cause of that problem?The root cause is that the navigation bar color is not being set explicitly for offline scenarios. When the device goes offline, it seems that a default or fallback styling is applied to the navigation bar, causing the unexpected color change. What changes do you think we should make in order to solve the problem?To solve this issue, I've made the following changes:
// ReferralDetailsPage.tsx
headerContainerStyles={[
styles.staticHeaderImage,
styles.justifyContentEnd,
StyleUtils.getBackgroundColorStyle(colors.pink800)
]}.
// themes/light.ts
[SCREENS.REFERRAL_DETAILS]: {
backgroundColor: colors.productLight100
}
// themes/dark.ts
[SCREENS.REFERRAL_DETAILS]: {
backgroundColor: colors.productDark100
} These changes ensure that the header background color is explicitly set to pink800, while the overall page background is set to productLight100[light theme] & colors.productDark100[dark theme]. This should maintain the correct color scheme even when the device goes offline. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?To prevent reintroducing this issue in the future, we should implement the following automated tests:
What alternative solutions did you explore? (Optional)I considered using the StatusBar component and useNavBarSettings hook to manage the navigation bar color independently. However, the current solution using headerContainerStyles and updating the theme configuration is more in line with the existing codebase structure and doesn't require additional hooks or components. The implemented solution maintains consistency with how other pages in the app handle background colors and should resolve the issue of unexpected color changes when offline. |
Job added to Upwork: https://www.upwork.com/jobs/~021864014658060063799 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dominictb ( |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry for comments above, I misunderstood the issue. |
Edited by proposal-police: This proposal was edited at 2024-12-04 04:03:37 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Navigation bar shows purple color on "Submit an expense,get $250" page in offline mode What is the root cause of that problem?When the user is offline, App/src/components/ScreenWrapper.tsx Line 255 in 0eec30d
Which makes the wrap view have a padding-bottom is the safe area padding-bottom App/src/components/ScreenWrapper.tsx Line 273 in 0eec30d
Then purple color is displayed at the bottom because the wrap view's background color App/src/pages/ReferralDetailsPage.tsx Line 64 in 0eec30d
App/src/components/HeaderPageLayout.tsx Line 78 in 0eec30d
What changes do you think we should make in order to solve the problem?We should not apply the padding-bottom to the wrap view here of
App/src/components/ScreenWrapper.tsx Line 255 in 0eec30d
App/src/components/ScreenWrapper.tsx Line 308 in 0eec30d
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional) |
@mohammedmatar Thank you for your proposal but your RCA is not clear. The solution is not correct because it makes the status bar to not match with the header color which is against the UI design: @nkdengineer RCA and proposed solution here LGTM 🎀👀🎀 C+ reviewed |
Current assignee @MarioExpensify is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Triggered auto assignment to @anmurali ( |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.79-5 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 2025-01-07. 🎊 For reference, here are some details about the assignees on this issue:
|
@dominictb @anmurali @dominictb The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@dominictb @nkdengineer - does this need a regression test? |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
@anmurali, @nkdengineer, @dominictb, @MarioExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@anmurali, @nkdengineer, @dominictb, @MarioExpensify Eep! 4 days overdue now. Issues have feelings too... |
@anmurali the BZ Checklist has been provided, is there any further action pending before we close this one? |
@anmurali, @nkdengineer, @dominictb, @MarioExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@anmurali, @nkdengineer, @dominictb, @MarioExpensify 10 days overdue. I'm getting more depressed than Marvin. |
Added test and paid. |
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.70-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
The device navigation bar will not have purple color.
Actual Result:
The device navigation bar shows purple color on "Submit an expense, get $250" page.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6682559_1733193867103.Screen_Recording_20241203_103842_Expensify.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: