Arnaud Dartois
23ead64795
docs: update implementation.md with current MVP status
...
- Mark ✅ /⏳ for all 23 phases based on actual implementation
- Add stats: 83 files, 34 tests, 13 pages, 30+ endpoints
- Clearly separate done vs v2/v3 (hardware-dependent)
- Document stack choices (no MediatR at MVP)
2026-07-17 19:45:40 +00:00
Arnaud Dartois
1bd6de1d48
docs: detail fonctionnel des etapes 2 a 7 avec scenarios concrets
...
Chaque phase des Etapes 2 a 7 a maintenant des scenarios de test detailles, des exemples requetes/reponses HTTP, et des sections 'Fonctionnel a la fin de cette phase' comme pour l'Etape 1. Ajout de schemas JSON pour chaque endpoint, scenarios utilisateur complets (detection avec dedup, live video, notifications, retention, mobile).
2026-07-16 20:14:06 +00:00
Arnaud Dartois
150275a47a
docs: detail chaque phase de l'etape 1 avec scenarios fonctionnels concrets
...
Chaque phase de l'Étape 1 (MVP Multi-Site) a désormais une section '✅ Fonctionnel à la fin de cette phase' qui décrit EXACTEMENT ce qui marche, avec des exemples de requêtes/réponses HTTP et le scénario de bout en bout.
2026-07-16 20:07:40 +00:00
Arnaud Dartois
eb59ffd4f6
refactor: split implementation in 2 stages — MVP multi-site then business features
...
Étape 1 (Phases 1-12) : Foundation + API multi-site (Sites, Agents, Auth) + Agent Docker avec heartbeat. Pas de caméra, pas d'IA, pas de vidéo. L'objectif est d'avoir N sites avec N agents enregistrés, heartbeats, status Online, le tout via API.
Étape 2 (Phases 13-25) : on ajoute le métier par-dessus — caméras, vidéo, IA, notifications, UI, mobile.
2026-07-16 20:05:19 +00:00
Arnaud Dartois
098a05aceb
fix: move mobile app to last phase (Phase 23)
...
L'application Kotlin est réalisée en dernier, après le Production Hardening.
2026-07-16 20:01:52 +00:00
Arnaud Dartois
9fff2ec917
fix: mobile stack Kotlin (not Avalonia), agents Docker-only
...
Corrections après feedback utilisateur : stack mobile = Kotlin + Jetpack Compose (Android natif, WebRTC natif), Agents installés exclusivement via Docker (pas de binaire standalone).
2026-07-16 20:00:48 +00:00
Arnaud Dartois
5c8df8127b
docs: master specification v2.0 consolidating 9 fragmented docs
...
Complete specification rewrite after deep review by 5 expert agents (council, security, db, ai, perf). Fixes 36 critical issues including: stationary object dedup (4-level), motion gate, Avalonia mobile stack, API+Web fusion, HMACSHA256 auth, partitioned Events table, Hangfire queue isolation.
2026-07-16 19:59:21 +00:00
Arnaud Dartois
6138795771
feat: switch mobile app from Avalonia UI to Kotlin + Jetpack Compose
...
- Complete rewrite of mobile-app.md: Kotlin 2.1+, Jetpack Compose 1.7+
- Clean Architecture: data/domain/presentation layers
- Ktor 3.0 HTTP client (replaces Kiota, Kotlin-native)
- WebRTC natif Android (SurfaceViewRenderer + PeerConnection)
- SignalR client Java Microsoft (compatible Kotlin)
- Hilt DI, Room cache, DataStore preferences, Coil images
- Firebase Cloud Messaging push notifications
- MVVM with StateFlow + collectAsStateWithLifecycle
- Compose Navigation (NavHost, sealed Screen routes)
- Tests: JUnit 5 + MockK + Turbine (Flow) + Compose UI Test
- CI/CD Gradle with lint + detekt + unit tests + APK signing
- GitHub Actions workflow dedicated to mobile
- Update implementation.md Phase 21 with new stack
- Update README.md references
2026-07-16 19:52:01 +00:00
Arnaud Dartois
32240da193
docs: add CodeProject.AI reference doc with full API, modules, perf
...
- Create docs/codeproject-ai.md with:
- All 17 modules listed (Object Detection YOLOv5/v8, ALPR, Face, Scene...)
- API endpoints with request/response examples
- Pipeline flow diagram Heimdall → CodeProject.AI
- Per-camera DetectionProfile filtering before API calls
- Docker config with GPU passthrough and env vars
- Performance benchmarks (GPU vs CPU vs RPi4)
- Custom detection models (ipcam-general, ipcam-animal...)
- Mesh multi-instance architecture
- Update implementation.md Phase 12 with CodeProject.AI deep link
- Add CodeProject.AI to README.md navigation
2026-07-16 19:43:34 +00:00
Arnaud Dartois
5073592cdb
feat: per-camera detection profiles (person/vehicle/face/LPR per camera)
...
- Add CameraDetectionProfile model with per-camera toggles
(DetectPerson, DetectVehicle, FaceRecognition, LicensePlateRecognition...)
- Add default profiles: Indoor, Outdoor, Stairwell, Parking
- Agent only runs YOLO classes matching enabled detection types
- Central skips face rec/LPR when disabled per camera
- Add detection-profile endpoints to Camera API
- UI: per-camera checkbox grid + profile presets
- Add ONVIF camera credentials (per-camera + per-site defaults)
- Add SharpOnvifClient + OnvifDiscovery NuGet references
- Add Imou camera protocol details: RTSP URLs, known issues,
firmware blocking, activation procedure
2026-07-16 19:40:50 +00:00
Arnaud Dartois
2e6dcc6968
fix: login par email/MDP + 2FA, API Keys réservées aux Agents
...
- ui-pages.md : retirer écran 'Clé API' du login, ajouter champ 2FA (TOTP)
- auth-roles.md : ajouter 2FA optionnel, User.TwoFactorEnabled,
API Keys = Agents uniquement, header clarifié
- implementation.md Phase 6 : +2FA endpoints, API Keys scope Agents
- signalr-usage.md : clarifier JWT pour humains, API Key pour Agents
2026-07-16 19:38:06 +00:00
Arnaud Dartois
ed0e941617
docs: fix implementation phases alignment (14-23), complete missing phases
...
- Fix detailed phase numbering to match summary (was 5 phases off)
- Add Phase 14 (SignalR Hubs), 16 (Hangfire Agent InMemory),
17 (Notifications), 21 (Mobile Android) — were missing in details
- Add Phase 15 (Hangfire Central) with NuGet, config, dashboard
- Each phase now has: Objectif, Tests, Libraries, code snippets
- All phases reference dedicated doc files for deep dives
- Summary and details now perfectly aligned (23/23)
2026-07-16 19:35:53 +00:00
Arnaud Dartois
3adb44449e
docs: restructure with README index, trim specs.md, replace Refit with Kiota
...
- Create docs/README.md as central navigation index with quick links
- Rewrite specs.md from 1473 to 253 lines — remove all content now
duplicated in dedicated files, keep only unique content (vision,
architecture, domain model, features, Docker, quality)
- Replace Refit with Kiota (Microsoft) in mobile-app.md:
- Kiota generates API client from OpenAPI spec
- IAuthenticationProvider for JWT
- CI/CD regeneration step
- Comparison table Kiota vs Refit
- All NuGet deps updated
2026-07-16 19:33:11 +00:00
Arnaud Dartois
2428e0ec2a
docs: add mobile app, auth roles, notifications, hangfire, signalr specs
...
- Add mobile-app.md: Android Avalonia UI app spec with 6 pages, WebRTC
via WebView bridge, SignalR real-time, offline cache, push notifications
- Add auth-roles.md: 2 user types (Admin + User), site-scoped permissions,
policy-based authorization, UI visibility per role
- Add notifications.md: Email SMTP (FluentEmail), Gotify push, Scriban
Markdown templates i18n editable from UI, per-user config
- Add hangfire-usage.md: Central PostgreSQL jobs (retention, cleanup,
digests) + Agent InMemory jobs (heartbeat, camera health, GPU watchdog)
- Add signalr-usage.md: 5 hubs (events, streaming, monitoring, notifications,
admin) with full hub code, group management, Agent SignalR connection
- Update implementation.md: 23 phases with mobile app (phase 21)
- Update specs.md: reference all new documentation files
2026-07-16 19:29:07 +00:00
Arnaud Dartois
32ba481da1
docs: restructure documentation with UI pages, fix implementation order
...
- Create docs/ui-pages.md with detailed descriptions of all 8 UI pages
(Login, Dashboard, Sites, Cameras, Persons, Events, Admin, Alerts)
including MudBlazor components, states, and tests per page
- Rewrite implementation.md with correct dependency order:
Auth → Sites → Agent Registration → ONVIF → Cameras → FFmpeg →
AI → Storage → Hangfire → Blazor (basic) → WebRTC → Live Video LAST
- Add Agent bootstrap flow with token registration
- Add two-tier AI pipeline (CPU pre-detect on Agent, GPU on Central)
- Add IMU camera protocol specifics and ONVIF network limitations
- Add GPU passthrough Docker documentation
- Add Blazor Server + WebRTC JS Interop pattern
- Add MinIO/S3 centralized storage model with bandwidth impact analysis
- Add SFU (MediaMTX) for multi-user WebRTC scenarios
2026-07-16 19:21:14 +00:00
Arnaud Dartois
bfb3e06bc1
feat: initialize .NET 10 Clean Architecture solution
...
Create Heimdall solution with 17 projects following Clean
Architecture for a maintainable and loosely coupled codebase.
src/ (9 projects):
- Domain, Domain.Primitives, Contracts (core layer, no deps)
- Application (ref. Domain) — CQRS/MediatR ready
- Infrastructure (ref. Application + Domain) — EF Core
PostgreSQL ready
- Api, Web (Blazor), Agent, Workers (hosts, ref. Application +
Infrastructure)
tests/ (8 projects):
- xUnit + Shouldly + NSubstitute + bUnit (Web.Tests)
- One test project per source project (Domain -> IntegrationTests)
Config: Directory.Build.props (Nullable, ImplicitUsings,
TreatWarningsAsErrors)
2026-07-16 19:09:28 +00:00
Arnaud Dartois
0680f832a5
docs: initial spec
2026-07-16 20:19:11 +02:00