-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Onboarding optimizations #1089
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
Onboarding optimizations #1089
Conversation
Finish animation if dialog is not dismissible when the user clicks outisde.
|
Hey @marcosholgado, please ping me here once the product review is done. thanks! |
@cmonfortep, product review approved! This is now ready. |
|
@marcosholgado while testing this I've noticed there's a ripple effect when clicking outside the dialog. It feels weird to me to have that effect there. Is this something intentional? |
cmonfortep
left a comment
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.
Code looks great, just some minor comments. I will wait for that final check on the ripple effect.
| private var typingAnimationJob: Job? = null | ||
| private var delayAfterAnimationInMs: Long = 300 | ||
| var typingDelayInMs: Long = 20 | ||
| lateinit var textInDialog: Spanned |
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.
No strong opinion here, but I think is safer to use a nullable type in here instead of a lateinit. Since this will be initialized by startTypingAnimation but there are other public methods that could be called by mistake before that, I will put a safety net and go for nullable instead.
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 it makes sense, yes. You could be calling finish animation when textInDialog is not initialized which it will crash the app. Changed!
| newTabLayout.setOnClickListener { daxCtaContainer.dialogTextCta.finishAnimation() } | ||
| } | ||
|
|
||
| private fun resetNewTabLayoutClickListener() { |
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.
what about removeNewTabLayoutClickListener? reset sounds more like you are going to set a new one instead of just removing the listener.
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.
Makes sense, done!
|
Thanks @cmonfortep, this should be ready to re-review. I was only able to reproduce the ripple in effect on emulators but in any cases I made that foreground invisible to avoid it. |
| secondaryButtonText: String? = "", | ||
| toolbarDimmed: Boolean = true, | ||
| dismissible: Boolean = true, | ||
| dismissible: Boolean = false, |
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.
Thanks, this is perfect, but I would also change line 53 in this same file. Just to keep this aligned with default property
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.
👍 changed!
cmonfortep
left a comment
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.
LGTM, just the comment related to also changing the dismissable value in DaxDialog.ktL53
Good work!
Good catch! I've just changed it and will merge once it passes CI. Thanks! |

Finish animation if dialog is not dismissible when the user clicks outisde.
Task/Issue URL: https://app.asana.com/0/715106103902962/1199405563917479
Tech Design URL:
CC:
Description:
This PR adds a few onboarding optimizations:
Steps to test this PR:
New dax icon
Welcome Page
Home screen
Click outside doesn't dismiss first time
wikipedia.organd before the dialog animation finishes, click outside of the dialog.Waiting for the animation to finish
Finish animation by clicking text
google.comand before the dialog animation finishes, click inside the dialog.New icon in location dialog
your locationin the bottom right corner of the map.Internal references:
Software Engineering Expectations
Technical Design Template