Skip to content

bugfix/AB#34241-NotificationsTab - #2902

Merged
JamesPasta merged 1 commit into
mainfrom
hotfix/AB#34241-NotificationsTab
Sep 1, 2026
Merged

bugfix/AB#34241-NotificationsTab#2902
JamesPasta merged 1 commit into
mainfrom
hotfix/AB#34241-NotificationsTab

Conversation

@JamesPasta

Copy link
Copy Markdown
Collaborator

No description provided.

@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 1013
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@aurelio-aot aurelio-aot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JamesPasta
JamesPasta merged commit 13203ae into main Sep 1, 2026
50 of 51 checks passed
@JamesPasta
JamesPasta deleted the hotfix/AB#34241-NotificationsTab branch September 1, 2026 20:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Pull request overview

This PR updates the Unity.Notifications web module to respect the DirectMessaging feature flag at runtime, preventing the SignalR “realtime messaging” widget and related navigation from appearing/connecting when the feature is disabled.

Changes:

  • Add a lightweight API endpoint to expose whether Unity.Notifications.DirectMessaging is enabled for the current user/tenant context.
  • Gate the realtime widget initialization in notifications-realtime-client.js behind the feature-enabled check.
  • Adjust the main menu contributor so the UnityMessaging menu item is added only when DirectMessaging is enabled, without blocking other Notifications menu entries.
File summaries
File Description
applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Web/wwwroot/js/notifications-realtime-client.js Adds a feature-enabled fetch check before initializing the SignalR widget.
applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Web/Menus/NotificationsMenuContributor.cs Moves the DirectMessaging feature check to only guard the UnityMessaging menu item.
applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Web/Controllers/NotificationRealtimeController.cs Introduces an authenticated API endpoint returning the DirectMessaging feature state.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +16 to +20
[HttpGet("feature-enabled")]
public async Task<bool> IsFeatureEnabledAsync()
{
return await featureChecker.IsEnabledAsync(NotificationsFeatureConsts.DirectMessaging);
}
Comment on lines +64 to +67
fetch('/api/notifications/realtime/feature-enabled', { credentials: 'same-origin' })
.then(function (response) {
return response.ok ? response.json() : false;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants