G2-Pair1 (Module 20): Notification & Announcement Module v2 — final submission#231
Open
KasuAbhishekReddy wants to merge 1 commit into
Open
Conversation
Notification & Announcement Module frontend (final submission for IT3C03). Roll numbers: 23BCS131, 23BCS054, 23BCS005 New module at src/Modules/Notification/: - NotificationModule.jsx — single-page hub with 5 tabs (Inbox, Preferences, Send, Announcements, Event Types) - api.js — Axios wrappers for all 52 backend endpoints - components/NotificationBell.jsx — global navbar bell with 5s poll (UC-NT-04, BR-NT-02) - components/NotificationItem.jsx — single notification row with read/archive - components/NotificationList.jsx — list wrapper with empty state - components/PreferenceToggle.jsx — per-module opt-in/out switch (BR-NT-06) - components/UnreadBadge.jsx — badge count indicator New routes at src/routes/notificationRoutes/index.jsx (URL constants for NAM API). Minimal wiring deltas (only NAM-specific lines): - src/components/header.jsx — renders <NotificationBell /> globally (BR-NT-02) - src/redux/userslice.jsx — state.user.isStaff for BR-NT-03 UI gating - src/helper/validateauth.jsx — populates user state on login - src/main.jsx — module/route registration - src/Modules/Dashboard/dashboardNotifications.jsx — NAM dashboard tab - src/routes/dashboardRoutes/index.jsx — dashboard route registration - src/routes/globalRoutes/index.jsx — defines `host` constant - vite.config.js — proxy /api to backend Roles defined in this module: - NAM Admin (Authorized Sender) - External Fusion Module (System Actor) - Recipient (Student / Faculty / Staff)
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.
Module ID: 20
Module Name: Notification & Announcement Module
Pair: G2-Pair1 (AI-assisted development)
Roll Numbers: 23BCS131, 23BCS054, 23BCS005
Final submission for IT3C03.
New module at src/Modules/Notification/
New routes at src/routes/notificationRoutes/index.jsx
URL constants for all 52 NAM API endpoints.
Minimal wiring deltas (only NAM-specific lines touched)
src/components/header.jsx— renders<NotificationBell />globally (BR-NT-02)src/redux/userslice.jsx—state.user.isStafffor BR-NT-03 UI gatingsrc/helper/validateauth.jsx— populates user state on loginsrc/main.jsx— module/route registrationsrc/Modules/Dashboard/dashboardNotifications.jsx— NAM dashboard tabsrc/routes/dashboardRoutes/index.jsx— dashboard route registrationsrc/routes/globalRoutes/index.jsx— defineshostconstantvite.config.js— proxy/apito backend at port 8000Roles defined in this module
state.user.isStaffUse Cases / Business Rules implemented (frontend touchpoints)
state.user.isStaff), BR-NT-06 (per-module Preferences toggle UI), BR-NT-09 (Archive button in inbox)No other modules touched.