feat(centralui): operator Alarm Summary page + per-instance snapshot fan-out (T13)

This commit is contained in:
Joseph Doherty
2026-06-18 02:21:41 -04:00
parent 6a6f8949b9
commit 3c9122bc07
8 changed files with 872 additions and 0 deletions
@@ -78,6 +78,14 @@ public static class ServiceCollectionExtensions
// connection).
services.AddScoped<IBindingTester, BindingTester>();
// Operator Alarm Summary (M7 T13): read-only page that aggregates the
// current alarms across a site's Enabled instances. The service fans out
// one debug snapshot per instance via IInstanceSnapshotClient — a thin
// facade over CommunicationService.RequestDebugSnapshotAsync (the same
// single-shot Ask the Debug View uses) — and flattens the alarm states.
services.AddScoped<IInstanceSnapshotClient, CommunicationInstanceSnapshotClient>();
services.AddScoped<IAlarmSummaryService, AlarmSummaryService>();
// Roslyn-backed C# analysis for the Monaco script editor.
// Scoped because SharedScriptCatalog wraps a scoped service.
services.AddMemoryCache(o => o.SizeLimit = 200);