-
Notifications
You must be signed in to change notification settings - Fork 733
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
Prevent display of welcome modal in LOD's #11587
Prevent display of welcome modal in LOD's #11587
Conversation
Build Artifacts
|
Hi @ozer550 I can confirm that the welcome modal is no longer being displayed for a LOD device. What I find strange is that while regression testing I noticed that the issue whit the reappearing modal which was fixed in #11492 is now observed in this build - have you rebased to the latest version of Kolibri? |
Hi @pcenov! The build does seem to have required code to fix the issue that you mentioned as regression. I checked both local branch and downloading the pex file. It seems to be working correctly for 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.
Fixes the issue at hand.
@@ -402,6 +405,7 @@ | |||
}; | |||
}, | |||
computed: { | |||
...mapGetters(['isLearnerOnlyImport']), |
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 fine - in future, we'll try to move more towards using the core useUser
composable that wraps this, so we can deprecate and remove the core vuex state.
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.
Hi @ozer550 after additional investigation on my end, the issue with the Welcome modal being constantly displayed is still valid in LODs and in normal devices if there aren't any downloaded channels yet. Will open a separate issue for that.
2023-12-14_17-20-41.mp4
Hi @pcenov, If I understand correctly here, we do not want the WelcomeModal to be displayed once again when the user deletes all the channels, it should be just displayed once at the very start when there are no channels and the user has never seen the welcome Modal before? cc @radinamatic |
Yes, the welcome modal should not be displayed to users who have seen it already, back when they installed Kolibri for the first time, even when they (for any reason at some point) delete all the channels they have on the device. This condition should be implemented together with not displaying the welcome modal to LoDs altogether, since the wording of the string is clearly directed to admins, and not learner users. To sum it up:
|
I am not sure why we would remove the no channel condition. If anything this will make it more likely for a user to see the modal again (it would happen every time they clear the site data, rather than if they cleared the site data and had no channels). |
Summary
Use the existing getter function "isLearnerOnlyImport" to prevent display of welcome modal in the LOD's
…
References
closes #11456
…
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)