-
Notifications
You must be signed in to change notification settings - Fork 692
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
Fix unwanted welcomeModal display #11449
Fix unwanted welcomeModal display #11449
Conversation
Build Artifacts
|
Hi @ozer550 and @marcellamaki - I confirm that the original issue as described in #11202 is fixed now however if I delete all browser cookies and sign in again as a super admin I'm still seeing the rogue modal while already having imported channels. So this will keep happening for admin users every time they sign in in a new browser. |
@pcenov this is definitely not a regression and is how it would have been previously, I am fairly sure - we are not tracking the dismissal in anything other than browser state, so clearing the application data will also clear the fact that the modal has been dismissed. |
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 changes look correct to me.
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 looking good to me as well!
the change from sessionStorage
to localStorage
makes sense & i checked all the places i'd experienced the modal popping up at inappropriate times and was unable to replicate the previous buggy behavior! (aside from the behavior @pcenov pointed out, which as @rtibbles noted is not a regression, but more a symptom of the way we're tracking users' interactions with the modal).
thanks for tackling this @ozer550!!
@rtibbles I'm not claiming it's a regression, I am pointing out that we are partially fixing a preexisting issue. The problem here is that since we are not tracking the dismissal in anything other than browser state the 'Welcome to Kolibri!' modal will show on the Library page and on Device > Channels regardless of whether the user has already imported channels or not. So it works correctly only if I am using the same browser. I can file it as a separate issue if there's anything that can be done? Library: 2023-10-24_10-01-38.mp4Device > Channels: |
Hi @pcenov - I think filing this as a separate issue would be great! It does make sense that we might want to add some checking about whether or not there are channels imported. Thank you |
5686106
into
learningequality:release-v0.16.x
Summary
Screen shots
Before:
After:
References
closes #11202
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)