kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Dismissing the Device > Channels welcome modal dismisses it for every user on the browser

Open nucleogenesis opened this issue 10 months ago • 3 comments

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

User-facing consequences

Once any user dismisses the modal, no other user on that browser sees it.

Steps to reproduce

  1. On a device with no channels imported, sign in as a super admin and open Device > Channels.
  2. Dismiss the welcome modal.
  3. 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 ManageContentPage spec asserts that dismissing the modal writes the key suffixed with the current user's ID, using the useUser mock in packages/kolibri/composables/__mocks__/useUser.js. It does not need to cover the rest of the page.

Out of scope

  • The unsuffixed DEVICE_WELCOME_MODAL_DISMISSED key written by SettingUpKolibri.vue and read by useTour.js.

AI usage

Claude Code located the remaining broken call site and drafted this revision; @nucleogenesis reported the bug.

nucleogenesis avatar Jan 16 '26 21:01 nucleogenesis

Hi! 👋

This issue is available for contribution and supports self-assignment. Here's how to get started:

  • Comment /assign to 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.

learning-equality-bot avatar Sep 30 '26 02:09 learning-equality-bot

/assign

rishiraj38 avatar Sep 30 '26 04:09 rishiraj38

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.

learning-equality-bot avatar Sep 30 '26 04:09 learning-equality-bot