-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 color when modal is visible #28407
fix: status bar color when modal is visible #28407
Conversation
cc @s77rt can you please review this one |
hii @s77rt, This seems to be creating a issue (not repro on prod) on mweb chrome when we navigate from settings to sidebar or click close button on security page, and open a report, the status bar color remain unchanged. We are already changing the color of status bar color on navigation state change here. i believe we can remove useFocusEffect entirely or atleast remove the clean up function What do you think? |
@fedirjh Thanks! |
@ishpaul777 Can you please upload a video for the new bug? |
I am away from my machine, can you try to repro with below steps Steps to repro- Expected result - Actual result - |
Seems fine from my end Screen.Recording.2023-09-28.at.9.40.00.PM.mov |
Weird can you try closing the security page by clicking 'x' icon |
Still seems to be working well |
Can you plaese include screenshot for mWeb - Chrome? |
Sorry for delayed response please see below 👇 Record_2023-09-30-16-43-11.mp4Not sure why this is not reproducable on prod. |
Can you reproduce that bug on main? I'm not able to reproduce it either way and I don't see how we may be breaking the functionality with the color change. |
After merging main this is not reproducable, i still am not sure whats changed, I dont believe this was related to this PR. Can you proceed with your review? Also I reported a bug while ago - https://expensify.slack.com/archives/C049HHMV9SM/p1694868564758319 this was not reproduced, so not logged in GH, after this PR the bug is still reproducable for me, Can you confirm the same? |
Can you add the mWeb Chrome test to the PR description |
Reviewer Checklist
Screenshots/Videos |
Added the video. @s77rt, awaiting your response on #28407 (comment) |
I will proceed here as I don't see that bug reproducible from my end and also because it was reported previously on main. |
Noting here that in general we should be using this solution for setting the status bar color, but in the case of Modals it doesn't always work because not all modals are screens in react-navigation |
Also noticed while reviewing this that this code is unnecessary and can be safely removed – doing so is actually an improvement because the default behavior animates the status bar transition and that code does not. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Hii @roryabraham, 👆 Thats what i realized #28407 (comment) but was not sure why are we changing statusbar color. I am able to work on the improvement. Should I raise a PR? |
@ishpaul777 I already opened one, thanks |
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
Fixed Issues
$ #28263
PROPOSAL: #28263 (comment)
Tests
On mobile devices -
Offline tests
QA Steps
On mobile devices -
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-09-28.at.10.50.25.PM.mov
Mobile Web - Chrome
Record_2023-09-30-22-34-56.mp4
Mobile Web - Safari
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-09-28.at.21.43.23.mp4
Desktop
Screen.Recording.2023-09-28.at.10.47.43.PM.mov
iOS
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-09-28.at.21.52.16.mp4
Android
Screen.Recording.2023-09-28.at.10.41.43.PM.mov