US5 Frontend: View Students Who Viewed Announcements#67
Merged
7 commits merged intoFeb 27, 2026
Merged
Conversation
- Add viewers button to post actions for admins/TAs only - Display eye icon with view count next to reply button - Only visible on main post (index 0) in announcements category - Dropdown shows list of students who viewed the announcement
- Create viewers.js module to handle viewer dropdown - Load and display student viewers when dropdown is opened - Generate mock viewer data for testing (backend TBD) - Track student views in console (frontend-only) - Only admins/TAs can see viewers, students cannot
- Import and initialize viewers module in topic.js - Enables viewers dropdown functionality on topic pages
- Style viewer list items with hover effects - Add dropdown shadow for better visual hierarchy
This was
linked to
issues
Feb 27, 2026
Closed
bendnema
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implements the frontend functionality for admins/TAs to see which students have viewed their announcements.
Changes Made
Features Implemented
Files Changed
node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl- Added viewers dropdown UIpublic/src/client/topic/viewers.js- Created viewers tracking modulepublic/src/client/topic.js- Integrated viewers modulenode_modules/nodebb-theme-harmony/theme.scss- Added dropdown stylingHow to Test
Prerequisites
Test Steps
Expected Behavior
As a Student
Backend Integration Needed
generateMockViewers():To Pass Lint Test