Dismissing the Device > Channels welcome modal dismisses it for every user on the browser
🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:
- Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
- Confirm that you’ve read the guidelines in your comment.
Target branch: develop
Observed behavior
Dismissing the welcome modal on Device > Channels stores DEVICE_WELCOME_MODAL_DISMISSED-undefined in localStorage instead of a per-user key.
ManageContentPage/index.vue#L131-L132destructuresuser_idfromuseUser(), which returns no such property. The logged-in user's ID iscurrentUserId.- Learn's
HomePage/index.vue#L143builds the same key fromcurrentUserId.
User-facing consequences
Once any user dismisses the modal, no other user on that browser sees it.
Steps to reproduce
- On a device with no channels imported, sign in as a super admin and open Device > Channels.
- Dismiss the welcome modal.
- In browser DevTools, open Application > Local storage. The key is
DEVICE_WELCOME_MODAL_DISMISSED-undefined.
Acceptance Criteria
- [ ] Dismissing the modal stores
DEVICE_WELCOME_MODAL_DISMISSED-<user id>. - [ ] A second admin signing in on the same browser still sees the modal.
- [ ] A new
ManageContentPagespec asserts that dismissing the modal writes the key suffixed with the current user's ID, using theuseUsermock inpackages/kolibri/composables/__mocks__/useUser.js. It does not need to cover the rest of the page.
Out of scope
- The unsuffixed
DEVICE_WELCOME_MODAL_DISMISSEDkey written bySettingUpKolibri.vueand read byuseTour.js.
AI usage
Claude Code located the remaining broken call site and drafted this revision; @nucleogenesis reported the bug.
Hi! 👋
This issue is available for contribution and supports self-assignment. Here's how to get started:
- Comment
/assignto assign yourself to this issue - You can have up to 2 issues assigned at a time across all community repos
- Dropping an issue has a 7-day cooldown before the slot opens up
- Link your pull request to this issue when you submit it
📖 Read the Contributing guidelines before starting.
Are you preparing for Google Summer of Code? See our GSoC guidelines.
/assign
Hi! 👋
You've been assigned to this issue. Here's what to do next:
- Read the issue description carefully and make sure you understand the requirements
- Link your pull request to this issue when you submit it
- If you can no longer work on this, unassign yourself so others can pick it up
Good luck! 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.