You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set default notificationStatus.<courseId> initialization to inactive in both sidebar trigger implementations.
Add provider fallback to inactive when local storage status is missing.
Baseline upgradeNotificationLastSeen on first load without forcing notificationStatus to active.
Keep existing re-activation behavior when upgrade notification state actually changes.
Why
Learners were seeing a red dot even when no meaningful notification content was available. This change reduces misleading red-dot states while preserving existing transition-driven activation behavior.
Current rendering logic in NotificationTray is gated by verifiedMode:
verifiedMode === true -> renders NotificationTraySlot verifiedMode === false -> renders fallback message: "You have no new notifications at this time."
NotificationTraySlot is only a plugin-slot container. Actual notification UI/content must come from runtime plugin registration/wiring.
Runtime Configuration Observation
In Tutor runtime config (tutor/env/plugins/mfe/build/mfe/env.config.jsx), the Learning block is empty (same in both local and staging):
if (process.env.APP_ID == 'learning') {
}
This means there is no explicit custom widget registration for Learning notification tray slots via this config.
Observed Behavior
In verified-mode courses: tray opens, but no notification items are rendered (empty panel).
In non-verified courses: fallback message is shown as expected.
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
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.
Summary
notificationStatus.<courseId>initialization toinactivein both sidebar trigger implementations.inactivewhen local storage status is missing.upgradeNotificationLastSeenon first load without forcingnotificationStatustoactive.Why
Learners were seeing a red dot even when no meaningful notification content was available. This change reduces misleading red-dot states while preserving existing transition-driven activation behavior.
Files changed
src/courseware/course/sidebar/sidebars/notifications/NotificationTrigger.jsxsrc/courseware/course/new-sidebar/sidebars/discussions-notifications/DiscussionsNotificationsTrigger.tsxsrc/courseware/course/sidebar/SidebarContextProvider.jsxsrc/courseware/course/new-sidebar/SidebarContextProvider.tsxsrc/courseware/course/sidebar/sidebars/notifications/NotificationTrigger.test.jsx