-
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
Fix status bar of mWeb Safari doesn't match the splash screen background color #41830
Conversation
@bernhardoj the status bar changes to white before the splash hides, i think we should fix that wdyt? Screen.Recording.2024-05-12.at.5.03.15.in.the.afternoon.movcc @grgia |
@getusha yep, I noticed it too. It's because we update the status bar color on mount here: App/src/components/CustomStatusBarAndBackground/index.tsx Lines 117 to 120 in 6f9f7ab
So it's updated before the splash hide animation is done. It's to fix #37276. The issue is that the status bar doesn't update in mWeb. The root cause is explained on the selected proposal, but basically, the root cause is that both theme.appBG and theme.splashBG (web only) have the same color value (productDark100), so the condition/logic to update the status bar here fails. App/src/components/CustomStatusBarAndBackground/index.tsx Lines 41 to 43 in 6f9f7ab
App/src/components/CustomStatusBarAndBackground/index.tsx Lines 98 to 101 in 6f9f7ab
We should remove it, but it will make the issue happen again as shown by the video below. Screen.Recording.2024-05-13.at.14.22.09.movFortunately, we already updated the splash screen color for all platforms to green400, but we haven't updated the theme.splashBG value yet. So, the last step is to update the theme.splashBG to green400. App/src/styles/theme/themes/dark.ts Line 10 in 6f9f7ab
The final result will look like this: Screen.Recording.2024-05-13.at.14.28.31.mov |
I wonder why we use green400 for native and not for web, it seems like on purpose.
|
@bernhardoj bump on this |
The different colors on the web and native doesn't matter anymore because we already make it the same in this PR #39997, so we just need to update the value in the theme file as I mentioned in my previous comment. |
thanks, can you apply the changes you described in #41830 (comment)? |
Updated! |
We can only see that banner when the app is deployed, cmiiw @getusha |
I can make a test build, let's try that? |
Yes, that would be great. I can check it tomorrow. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Hmm can't really test the app install banner from this build :( But I did find a different bug, notice the lag in when the status bar color changes: RPReplay_Final1716916307.MP4 |
I can't see the banner either.
I can reproduce the lag on staging too. I think it's the animation that is lagging, not the whole page. Screen.Recording.2024-05-29.at.10.57.19.mov |
@shawnborton does this look good to you? |
Hmm I am a bit confused by your last video. Why the white status bar area? I'm saying that there is a slight lag when the status bar goes from green to dark when the homepage is loaded. Can we fix that somehow? |
That's a video to show the lag on staging too.
Because the lag is happening on staging too, the lag isn't caused by changing the status bar color and most likely coming from the animation. Maybe we can delay the animation start? Haven't tested it yet though. |
Ah okay, that makes sense. If we can fix the delay, that would be amazing. Otherwise I suppose we can ignore that for now and the green status bar is an improvement? |
I was trying to turn off the Lottie auto-play and play it manually after a delay, but the function doesn't seem to work. I also can't find a pattern to delay the animation on our App yet, so I suppose we can ignore it for now. |
Reviewer Checklist
Screenshots/Videos |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.84-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.84-3 🚀
|
Details
When the splash screen is shown, the status bar doesn't match the splash screen background.
Fixed Issues
$ #40683
PROPOSAL: #40683 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Web/Desktop: there is no status bar, so I just provide a ss of the home
Android mWeb: looks like the status bar isn't customizable, so it won't match the splash screen color too
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-05-08.at.18.42.54.mov
Android: mWeb Chrome
Screen.Recording.2024-05-08.at.18.42.32.mov
iOS: Native
Screen.Recording.2024-05-08.at.18.40.14.mov
iOS: mWeb Safari
Screen.Recording.2024-05-08.at.18.39.32.mov
MacOS: Chrome / Safari
MacOS: Desktop