GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement red dot in username and sidebar to flag new notifications · Issue #5458 · learningequality/studio

Implement red dot in username and sidebar to flag new notifications #5458

New issue
Copy link
New issue
Copy link
Closed
Task
#5610
Closed
Implement red dot in username and sidebar to flag new notifications#5458
Task
#5610
Copy link
Assignees
AlexVelezLl
Labels
P0 - criticalPriority: Release blocker or regression
Milestone
Studio: Easy Sharing of Community Channels

Description

@AlexVelezLl
AlexVelezLl
opened on Oct 9, 2025
Issue body actions

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

As part of this issue, we will implement support for displaying a red dot on the user profile and a notifications option to indicate when the user has received a new notification. New notifications will only be flagged when:

  • A user creates a new Submission -> A notification is flagged to the channel editors, other than the one who made the submission.
  • An admin resolves a Submission -> A notification is flagged to all channel editors.

Technical details

New field in User model

  • To persist the number of notifications that the user has not read, we will add a new unread_notifications_count to the User model and to the UserViewSet.
    • When a submission is created, we should increment this field by 1 for all channel editors.
    • When a submission is resolved, we should increment this field by 1 for all channel editors.
    • We should create a new endpoint in the UserViewSet to mark X number of notifications as read. This endpoint will decrement the given number from the unread_notifications_count field.
      • The reason why it is better to decrement rather than just set it to 0 is to prevent concurrency errors in case a new notification had been published while the user was viewing the notifications page.

Change events

  • For every change to this field, we should create a new applied=True change event to the session table, so that, when the changes are synced to the frontend, this number is updated.
    • For this, we will need to add a new SESSION table in the ALL_TABLES set
    • Since the pk for this table in the frontend is CURRENT_USER, we will need to use the "CURRENT_USER" string as pk for the change.
      • Additionally, in the frontend, there is a bug in the Session Vuex module's UPDATE_SESSION_FROM_INDEXEDDB method where we assume that id is the pk field, but it's not, so we should update this method to be something like this, to reflect the correct pk field:
      UPDATE_SESSION_FROM_INDEXEDDB(state, { CURRENT_USER, ...mods }) {
       if (CURRENT_USER === 'CURRENT_USER') {
         state.currentUser = { ...applyMods(state.currentUser, mods) };
       }
      },

Red dot display

  • To return this new unread_notifications_count field and make it available in the frontend, we should add this field to the user_fields tuple.
  • We should then update the AppBar component to reflect the red dot on the user profile if user.unread_notifications_count > 0.

Notifications page updates

  • On the Notifications page, a new KTabs component should be added to differentiate "UNREAD" vs "ALL NOTIFICATIONS" (Figma specs here).
  • To load the Community Library Submission updates on the unread tab, we should look at how many unread_notifications_count exist, and load and display just that number of updates.
  • When the user clicks on the "clear all" button, a request should be made to the previously described endpoint to decrement the number of unread notifications that were loaded when the page was mounted.

Activity

  1. AlexVelezLl
    added this to the Studio: Easy Sharing of Community Channels milestone on Oct 9, 2025
  2. AlexVelezLl
    added
    TODO: draftIssue is a working in progress and not ready to be worked on
    on Oct 9, 2025
  3. AlexVelezLl
    added a parent issue on Oct 9, 2025
    • Channel editor notifications UI #5174
  4. AlexVelezLl
    added the
    Task
    issue type on Oct 9, 2025
  5. AlexVelezLl
    added
    P0 - criticalPriority: Release blocker or regression
    on Dec 11, 2025
  6. AlexVelezLl
    marked this as blocked on Dec 12, 2025
    • Implement Community Library notifications page #5457
  7. AlexVelezLl
    removed
    TODO: draftIssue is a working in progress and not ready to be worked on
    on Dec 12, 2025
  8. AlexVelezLl
    self-assigned this
    on Dec 19, 2025
  9. rtibbles
    closed this as completedin #5610on Mar 3, 2026
  10. rtibbles
    reopened this on Mar 3, 2026
  11. rtibbles commented on Mar 9, 2026

    @rtibbles
    rtibbles
    on Mar 9, 2026
    Member
    More actions

    Sorry, this was completed, I think I just wasn't seeing it because it originated from the same user.

  12. rtibbles
    closed this as completedon Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @AlexVelezLl
    AlexVelezLl

Labels

P0 - criticalPriority: Release blocker or regression

Type

Task

Projects

No projects

    Milestone

    • Studio: Easy Sharing of Community Channels

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.