feat(web): navigation & layout responsive — drawer adaptatif, badge notif, dark toggle (Fixes #33)

- Drawer : Breakpoint.Sm + mini-variant (64px) — responsive mobile/desktop.
- Nav restructurée : Événements et Snapshots SORTIS de la section
  Administration (bug d'accès : masqués aux non-admin alors que les pages
  sont autorisées) — section Navigation pour tous les connectés.
- Badge notifications temps réel : NotificationsHubClient (SignalR,
  access_token JWT, reconnexion auto, fallback silencieux) +
  NotificationBadge dans l'AppBar (compteur non lues, clic → /events).
- Toggle clair/sombre dans l'AppBar (IsDarkMode du MudThemeProvider).
- PageTestBase : enregistre NotificationsHubClient pour les tests bUnit.
172 tests Web verts.
This commit is contained in:
Arnaud Dartois committed 2026-08-10 22:49:37 +02:00
1 parent 319060a997
commit 17ed0a19a1
6 files changed
+168 -10

No files matched your search

+1
View File
@@ -510,6 +510,7 @@ public partial class Program {
// explicit ApiBaseUrl (config/env) overrides that for external APIs.
builder.Services.AddHttpContextAccessor();
builder.Services.AddScoped<HeimdallApiClient>();
builder.Services.AddScoped<NotificationsHubClient>();
builder.Services.AddTransient<TokenRefreshHandler>();
builder.Services.AddTransient<SameOriginHttpMessageHandler>();
var apiBaseUrlConfigured = ApiBaseUrlResolver.IsConfigured(builder.Configuration);