-
Notifications
You must be signed in to change notification settings - Fork 645
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
Improve pane transitions in bank auth flow #8682
base: master
Are you sure you want to change the base?
Conversation
Diffuse output:
APK
|
5bc1007
to
ae684c9
Compare
ae684c9
to
d78d1c3
Compare
d78d1c3
to
d964460
Compare
12f37a0
to
5fe60bb
Compare
d964460
to
7df4e00
Compare
Looking good! I noticed in the 'after' that the bank logos load simultaneously, vs. the 'before' where a few logos loaded first and then the rest loaded afterward. Is that a change related to this PR? Or just happened to be the case during the recording? |
@malecks-stripe That’s likely because of caching from the previous run. We kick off the request for all bank logos at the same time, so any delays would be random. |
private val NavBackStackEntry.skipTransition: Boolean | ||
get() = destination.pane == ATTACH_LINKED_PAYMENT_ACCOUNT |
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.
lmk what you think, but I prefer being more declarative with checks like this by just adding a new field on the Destination class. Happy to be convinced otherwise!
7df4e00
to
eb137a8
Compare
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 definitely improves the current experience!
- Move `fadeOnlyTransition` to `Destination`
eb137a8
to
d93e2a6
Compare
Summary
This pull request adds proper pane slide transitions in the bank auth flow, and a fade effect for the Stripe logo in the top bar.
We exclude the attach-payment screen from the slide transitions, as it would just cause a slide from one loading indicator to another (we use a fade instead).
Motivation
Testing
Screen recordings
Before
before.mp4
After
after.mp4
Changelog