-
Notifications
You must be signed in to change notification settings - Fork 32
[MKT-701]:feat:Add first upload condition to FeaturesBanner display #1797
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
[MKT-701]:feat:Add first upload condition to FeaturesBanner display #1797
Conversation
Deploying drive-web with
|
| Latest commit: |
db21d09
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://60ced75e.drive-web.pages.dev |
| Branch Preview URL: | https://feature-set-new-conditions-t.drive-web.pages.dev |
| useEffect(() => { | ||
| const timeout = setTimeout(() => setShowDelayedBanner(true), TIMEOUT); | ||
| return () => clearTimeout(timeout); | ||
| newStorageService.hasUploadedFiles().then(({ hasUploadedFiles }) => { | ||
| if (hasUploadedFiles) { | ||
| setHasUploadedFirstFile(true); | ||
| } | ||
| }); | ||
| }, []); |
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 logic only checks the upload status when mount hte banner, are this the behaviour that you want?
Add the related tests :)
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.
Yes, that's the intended behavior. I've used the same approach we have for the tutorial. I've tested it and confirmed that the banner doesn't appear after 90 seconds just from being on the homepage, and that it correctly appears 90 seconds after the first file upload. Adding the tests now.
|



Description
Added logic to show the FeaturesBanner only after the user has uploaded their first file and 90 seconds. This ensures new users see the banner at the appropriate time.
Related Issues
Related Pull Requests
Checklist
Testing Process
Created a new account, and uploaded File, then checked the banner displays after 90 seconds, uploaded a video on the Jira task
Additional Notes