learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
761 stars 635 forks source link

Migrate all existing references to session getters and state to the useUser composable #12203

Open rtibbles opened 2 months ago

rtibbles commented 2 months ago

The useUser composable now encapsulates all the vuex getters and state for the session, we should migrate all references to these to instead import the useUser composable and read from there.

See the composable for the full list of getters and state that will need to be remapped: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/composables/useUser.js#L36

Note, this will not involve removing the session vuex module.

nathanaelg16 commented 1 month ago

Hi @rtibbles, can I try this issue?

rtibbles commented 1 month ago

Hi @nathanaelg16 - yes, please do!

When you make a pull request, I'd suggest making a commit 'per plugin' (learn, coach, etc. and one for the core references).