-
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
Invert bootsplash colors + fade splash screen on web #16932
Invert bootsplash colors + fade splash screen on web #16932
Conversation
@neil-marcellini Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Is it possible to only do this on native devices? For web, I feel like the green is pretty distracting. But for mobile, it's nice because it looks like the app icon morphs into the splash screen. |
@shawnborton I rolled back the change, but kept the fade. Screen.Recording.2023-04-04.at.20.53.13.mov |
Nice, I think that feels pretty good to me |
Tagging in a C+ for some extra review help https://expensify.slack.com/archives/C02NK2DQWUX/p1680713244754089?thread_ts=1680713226.483109&cid=C02NK2DQWUX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is on hold for review until #16863 is merged, right? |
@neil-marcellini @0xmiroslav Yes. I can dissociate both PR if you prefer, remove the changes from #16863 from this one. I made that because, as this PR is about the transition between the app icon and the splash screen, you cannot really experience the effect without the other PR (which solve the Android 12 double splash screen issue) |
05bc78b
to
47d08a9
Compare
@neil-marcellini @0xmiroslav Done! I updated the instructions. |
If this one is going to be merged sooner than #16863, I think no need to test based on that branch. If this will be merged later, Let's still put this on hold. |
@0xmiroslav You cannot merge this one before #16863 since the image format change for Android 12: they must include an additional padding: If you want to merge this one before, I will have to update this PR to re-generate assets in this PR to not include the additional padding, wait for it to be merged then update the other PR. So it's easier to keep this one on hold. The other PR is not that huge, I think the review will probably be achieved soon. |
ok still holding this seems best way to go |
47d08a9
to
7fe637a
Compare
@0xmiroslav @neil-marcellini #16863 has been merged, I rebased this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much easier to review now, thank you! Looks good and tests well.
@0xmiroslav all you! |
@zoontek please add iOS splash screenshot as well |
So inconsistent between platforms. |
@0xmiroslav Yes, here: #16932 (comment) I opened the PR with light splash screen on web, but had to rollback this part. EDIT: I added an iOS screenshot. |
Ah sorry, I should have checked discussion |
@0xmiroslav Could you try uninstalling the dev app, restart your phone and reinstall the same app (the dev one?) I updated the navigationBar color to match the rest. It swithes from dark content to light content once the app booted (the system used dark content but your app uses light, you can tweak that as you want in themes files). I also fixed 4. Android documentation mention that both application theme or main activity theme are fine, which is the mistake here (see step 3 here) screen-20230409-205934.mp4screen-20230409-211413.mp4 |
@neil-marcellini @0xmiroslav I pushed the missing |
so it seems build is already in process. may need to re-trigger |
Ok I'll try to trigger it again. @0xmiroslav please let me know once you've approved. |
BUG: iOS splash logo fade first time. tested on iPhone 14 Pro Max (simulator) splash.mp4 |
@zoontek please pull from main. RN version upgraded now. |
@0xmiroslav Is the first appearing logo the color of the old one? Might be the good old one https://developer.apple.com/forums/thread/68244 Because on iOS no code changed (in both PRs), only assets. |
yeah, not a blocker. happening on |
not sure why not sharing build links even after |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - ChromeMobile Web - SafariDesktopiOSios.mp4Androidandroid.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and tests well but only one issue already reported.
I confirmed that splash logo changing issue still happens on fresh android physical device. I tested on Samsung Galaxy S10. So this is not related to cache.
But this was introduced in another PR so not a blocker for this PR. If needed, we can handle that in a new separate issue.
@neil-marcellini all yours
android.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good to go. Thanks.
@zoontek I also added some QA steps for you. Merging! |
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ 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/neil-marcellini in version: 1.3.0-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.0-2 🚀
|
@neil-marcellini can you please create new GH for tracking payment? |
Sure thing, here's the payment issue. |
Thanks |
Details
Following this discussion with @shawnborton, he thought it could be great to invert splash screen colors, in orders to see the app icon "grow" into the splash screen.
This PR provides that + as a bonus, it adds fading on the web splash screen (for consistency with native) - I can revert the commit if this is not wanted.
Fixed Issues
#16863 (comment)
Tests
Offline tests
QA Steps
Web
iOS and Android
No QA for other platforms.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-04-04.at.20.53.13.mov
iOS
Android
android.mp4