Skip to content
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

Merged

Conversation

ozer550
Copy link
Member

@ozer550 ozer550 commented Dec 5, 2023

Summary

Use the existing getter function "isLearnerOnlyImport" to prevent display of welcome modal in the LOD's

References

closes #11456

Reviewer guidance

  • Open the library section.
  • The Welcome Modal does not appear any more.

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@github-actions github-actions bot added the APP: Learn Re: Learn App (content, quizzes, lessons, etc.) label Dec 5, 2023
@ozer550 ozer550 requested a review from marcellamaki December 5, 2023 13:00
@pcenov
Copy link
Member

pcenov commented Dec 6, 2023

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?

@ozer550
Copy link
Member Author

ozer550 commented Dec 14, 2023

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.

@rtibbles rtibbles assigned rtibbles and unassigned thanksameeelian Dec 14, 2023
Copy link
Member

@rtibbles rtibbles left a 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']),
Copy link
Member

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.

@rtibbles rtibbles merged commit f94e264 into learningequality:release-v0.16.x Dec 15, 2023
33 checks passed
Copy link
Member

@pcenov pcenov left a 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

@ozer550
Copy link
Member Author

ozer550 commented Dec 28, 2023

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

@radinamatic
Copy link
Member

@ozer550

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:

  1. Completely disable the welcome modal for LoDs.
  2. Do not use the presence of channels as the condition for displaying the welcome modal (therefore those users who at some point delete all their channels do not need to see the welcome modal again).

@rtibbles
Copy link
Member

rtibbles commented Jan 5, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Learn Re: Learn App (content, quizzes, lessons, etc.) SIZE: very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The 'Welcome to Kolibri' modal is displayed regardless of the fact that I have imported channels
6 participants