-
Notifications
You must be signed in to change notification settings - Fork 0
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
Loading Screen to Welcome Screen #875
Conversation
[diff-counting] Significant lines: 322. |
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.
Great work integrating the animation into the transition into the Wrapped modal. Since we have this, I think we can close the original animation PR. I did notice from testing on my side though that there was a bit longer of a delay (a few seconds) where it seemed a little stuck on the DTI logo. Are you seeing this as well? Could just be slow network speed on my side.
src/components/includes/Wrapped.tsx
Outdated
{showBanner && ( | ||
<> | ||
<div className="banner top-right"> | ||
loading ? (<> </>) : |
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.
instead of conditionally rendering an empty component, this is typically done with && in typescript (see line 418 for an example)
src/components/includes/Wrapped.tsx
Outdated
className="sec-plus" | ||
alt="second plus" | ||
onAnimationEnd={() => { | ||
const timer = setTimeout(() => { |
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.
Overall, the animation looks good. I'm just curious that since this calls an inline-function inside of onAnimationEnd
, wouldn't this create a timer every re-render. Would it be better to make declare the function outside? This might be a bit better performance-wise if the component frequently re-renders or updates.
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.
good to merge once changes are addressed
Summary
Building on this Wrapped Frontend PR and this animation PR, creates a loading animation screen that transitions into the welcome screen.
Screen.Recording.2024-10-27.at.1.27.18.PM.mov
Test Plan
Notes
Breaking Changes
None