arnaud.dartois
2d28771945
fix(web): avoid error notification for missing detail records ( #303 )
...
Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Failing after 12m2s
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (push) Skipped
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / CI policy (push) Failing after 2s
Co-authored-by: Arnaud Dartois <admin@tordais.cc >
2026-11-08 13:02:38 +01:00
Arnaud Dartois
8d35518d1a
feat(agent): add Pangolin-style native installs and updates
Heimdall Gitea / Detect CI scope (pull_request) Successful in 5s
Heimdall Gitea / Build and tests (pull_request) Failing after 2m11s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 3s
2026-10-26 11:38:29 +01:00
Arnaud Dartois
23571da9c3
feat(i18n): localize remaining UI and server messages
Heimdall Gitea / Build and tests (pull_request) Failing after 2m10s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-25 05:59:18 +01:00
Arnaud Dartois
c8c84f0e2c
feat(inventory): add metric history dashboards
Heimdall Gitea / Build and tests (pull_request) Failing after 3m28s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-25 02:19:01 +02:00
Arnaud Dartois
acf3a4304c
fix(ci): réduire artifact build + corriger URL YOLO ONNX ( #181 )
2026-08-30 09:45:37 +02:00
Arnaud Dartois
0f47236c08
feat: journal d'audit complet + auto-update agent natif & Docker ( #92 #96 #97 )
2026-08-27 18:56:57 +02:00
Arnaud Dartois
4792b69e46
feat(agent): télémétrie inventaire matériel — CPU/mémoire/disque/GPU/OS/réseau ( Fixes #82 #83 #84 #85 ) ( #137 )
...
## Contexte
Implémentation des tickets #82 , #83 , #84 , #85 — télémétrie inventaire matériel agent. L'objectif est de fournir au central un maximum d'informations sur les machines des agents (CPU, mémoire, disques, GPU, OS, réseau, conteneur) sans SSH.
## Changements
### Nouveaux collecteurs (src/Heimdall.Agent/Services/)
- **CpuInfoProvider** : parse `/proc/cpuinfo` (vendor, modèle, cœurs physiques/logiques, fréquence, flags AVX/AVX2/FMA/AVX512, cache), topologie, détection cgroup CPU (`/sys/fs/cgroup/cpu.max` v2)
- **DiskInventoryProvider** : énumère les montages (`/proc/mounts`), capacité/libre/type SSD/HDD via `/sys/block/*/queue/rotation`
- **GpuInventoryProvider** : nvidia-smi, sysfs DRM, vainfo, rocm-smi avec fallback silencieux, multi-GPU
- **HostInfoProvider** : os-release, uname, `/proc/uptime` (uptime machine ≠ process), températures sysfs
- **ContainerInfoProvider** : détection Docker (/.dockerenv, cgroup), ID conteneur, limites CPU/mémoire
### Refonte SystemMetricsProvider
- Séparation host vs process (RAM machine ≠ RAM conteneur ≠ WorkingSet64)
- Uptime machine (`/proc/uptime`) distinct de l'uptime process
- Mémoire swap
### Entité Agent + Migration
- Champs structurés CPU/mémoire/disque/GPU/OS/réseau (tous nullable, rétrocompatible)
- Migration EF `AddAgentTelemetryInventory`
### Transport heartbeat
- Inventaire au register + refresh périodique (5 min, pas à chaque tick)
- Champs JSON pour listes (disques, GPU, interfaces réseau, températures)
### UI Admin (AgentDetail.razor)
- Sections CPU, Mémoire/Disques, GPU, Machine/Conteneur avec barres de progression et badges
### Tests
- 40+ tests unitaires : providers, handlers, entité Agent
- Total : 999 tests verts (Domain 149, Application 397, Agent 210, Web 243)
## Tickets liés
- Fixes #82 — CPU inventory
- Fixes #83 — Mémoire & disque
- Fixes #84 — GPU inventory
- Fixes #85 — OS, conteneur, réseau
## Résultats des tests
- `dotnet build` : 0 erreur, 0 warning
- Domain.Tests : 149 passed
- Application.Tests : 397 passed
- Agent.Tests : 210 passed
- Web.Tests : 243 passed
- Total : 999 tests ✅
## Checklist
- [x] `dotnet build` vert (TreatWarningsAsErrors)
- [x] Tests unitaires verts
- [x] Migration EF créée
- [x] Champs nullable (rétrocompatible)
- [x] Pas de référence Infrastructure dans les contrôleurs
- [x] Collecteurs avec fallback silencieux (pas de crash sans GPU/Docker/sysfs)
Reviewed-on: https://forgejo.tordais.cc/nonobis/Heimdall/pulls/137
2026-08-20 14:13:06 +02:00
Arnaud Dartois
85bfdac7ee
feat(settings): boutons Tester email/ntfy/IA + clés techniques masquées (partiel #80 )
...
- Endpoints POST api/settings/{email,ntfy,ai}/test (Admin) :
- email : envoi réel via EmailService vers l'expéditeur configuré
- ntfy : SendTestAsync (nouvelle méthode INtfyService, retour HTTP 2xx)
- ai : ping CodeProject.AI/Ollama via AiHealthCheck
- Client API : TestEmailAsync/TestNtfyAsync/TestAiAsync + record TestActionResult
- UI : boutons Tester dans NotificationSettingsSection (ntfy + email) et
AiSettingsSection (moteurs IA) avec résultat inline
- AgentDetail : la clé brute n'est plus affichée (libellé global/surchargé)
- Tests bUnit : 3 nouveaux (POST par endpoint + affichage résultat) — 224 verts
2026-08-12 11:50:47 +02:00
Arnaud Dartois
0136bf33ec
feat(logs): remontée des logs agents vers le central — buffer, API, UI ( Fixes #50 #51 #52 )
...
- Agent : LogBufferService (ring buffer borné, drop-oldest), AgentLoggingProvider
(capture ILogger non-bloquante), LogSanitizer (masque password/token/secret/bearer),
LogUploadService (batch POST /api/agents/{id}/logs, retry, drop si 400)
- Central : entité AgentLogEntry + migration AddAgentLogEntries (index AgentId+TimestampUtc),
SubmitAgentLogsCommand (batch <= 200, entrées invalides ignorées),
GetAgentLogsQuery (pagination, filtres niveau/période/recherche),
endpoints POST + GET /api/agents/{id}/logs
- UI : onglet Logs dans AgentDetail (filtres, pagination, auto-refresh toggle)
- Logs agent enrichis : heartbeat succès (Debug), résolution IP (Debug)
- Tests : LogBufferServiceTests (6), AgentDetailLogsTests (4), handlers AgentLogs (8)
2026-08-11 18:51:52 +02:00
Arnaud Dartois
468b8e72aa
feat(web): formulaires, validation & UX writing — messages métier ( Fixes #39 )
...
- UiErrors : messages métier centralisés (LoadFailed/SaveFailed/DeleteFailed/
OperationFailed) — plus aucun ex.Message brut dans l'UI (48 remplacés sur
19 pages), les détails techniques restent dans les logs.
- UiFormat : formatage centralisé des statuts (Online → En ligne, Offline →
Hors ligne, Disabled → Désactivée…) et types d'événements ; appliqué aux
pages Agents (liste + détail) qui affichaient encore les valeurs brutes.
- catch (Exception ex) devenus inutiles → catch simple (46 nettoyés).
- Boutons = verbes, validation métier déjà en place (Le nom est requis…)
couverte par les tests existants.
- Tests : adaptés au message métier (Register) et au statut traduit
(Agents). 182 tests Web verts.
2026-08-10 23:33:06 +02:00
Arnaud Dartois
319060a997
feat(web): accessibilité transverse WCAG 2.2 ( Fixes #41 )
...
- h1 unique par page : les 18 titres de page (Typo.h4) deviennent h1,
rendant FocusOnNavigate Selector="h1" opérationnel ; les h4 de
sections/stats (Dashboard) sont conservés.
- Skip-link réel dans MainLayout (lien vers #main-content) + id sur le
conteneur principal.
- aria-label sur les 16 icon-buttons sans nom accessible (tooltip ne
suffit pas) : refresh, delete, edit, visibility, snapshot, restore,
download.
- Tests a11y automatisés (A11yPageTests) : un seul h1 par page (Events,
Dashboard, Cameras), aria-label sur tous les icon-buttons, skip-link
présent dans le layout. 172 tests Web verts.
2026-08-10 22:41:49 +02:00
Arnaud Dartois
0b55360ad2
feat(settings): paramètres agent-scoped + configuration agent en cartes visuelles
...
- Flag AgentScoped sur AppSetting (entité + migration AddAgentScopedSetting
+ DTO + commandes Create/Update + validateurs + client Web)
- Écran Configuration : toggle 'Exposé aux agents' à la création
- AgentDetail : n'affiche que les globaux agent-scoped, par catégories en
cartes visuelles avec badge Hérité (global) / Surchargé pour cet agent,
édition inline → crée l'override, bouton restore → retour à la valeur
globale. Tests bUnit (3) : héritage, surcharge, réinitialisation.
- Tests validateur : aliases boolean/number/integer/dropdown
2026-08-10 20:51:57 +02:00
Arnaud Dartois
31f2056d48
feat(agents): add global agents page, reusable components, KPIs, admin-only security
2026-07-19 07:25:27 +00:00
Arnaud Dartois
9113191547
feat(ui): modernize all pages — auto-refresh, skeleton loading, tooltips, filters
2026-07-19 07:12:40 +00:00
Arnaud Dartois
cca6ab6f46
feat(mvp): agent settings UI + migration orchestrator
...
Agent settings UI:
- Add settings section to AgentDetail page showing per-agent overrides
- Add/edit/delete agent settings with confirmation dialogs
- Add settings API methods + DTOs to HeimdallApiClient
- Real-time SignalR notification shown in UI feedback
Migration orchestrator:
- Replace inline db.Database.Migrate() with MigrationHostedService
- Runs migrations in background at startup (non-blocking)
- 60-second timeout with critical logging on failure
- Preserves Testing environment exclusion
- Clear migration progress logging
2026-07-18 19:07:01 +00:00
Arnaud Dartois
8c7ec4d279
feat(ui): pages détail Caméra + Agent
...
- CameraDetail: vue modifiable (nom, RTSP), infos fabricant/modèle/statut
- AgentDetail: infos hostname/version/heartbeat + capacités CPU/GPU/mémoire
- CamerasPage: nom cliquable vers le détail
- AgentsPage: nom cliquable vers le détail
- ApiClient: GetCameraAsync, UpdateCameraAsync, GetAgentAsync
2026-07-17 19:08:17 +00:00