From cd9746a40447b7a7e3cc4228145ffbaffbc3028b Mon Sep 17 00:00:00 2001 From: diallolatoile Date: Tue, 2 Dec 2025 13:31:50 +0000 Subject: [PATCH] feat: add DCB Reporting Dashboard - Comprehensive analytics system with real-time charts and API health monitoring --- .../components/dcb-reporting-dashboard.html | 311 ++-- .../components/dcb-reporting-dashboard.ts | 1437 +++++++++++------ .../models/dcb-reporting.models.ts | 28 +- .../services/dcb-reporting.service.ts | 400 +++-- 4 files changed, 1420 insertions(+), 756 deletions(-) diff --git a/src/app/modules/dcb-dashboard/components/dcb-reporting-dashboard.html b/src/app/modules/dcb-dashboard/components/dcb-reporting-dashboard.html index 4bdc5ce..3889907 100644 --- a/src/app/modules/dcb-dashboard/components/dcb-reporting-dashboard.html +++ b/src/app/modules/dcb-dashboard/components/dcb-reporting-dashboard.html @@ -5,7 +5,7 @@

- Dashboard Reporting DCB + Dashboard FinTech Reporting

Surveillance en temps réel des transactions et abonnements

@@ -57,29 +57,24 @@ - @@ -278,75 +273,132 @@ - -
+ +
- +
- - Évolution du Revenue + + {{ getChartTitle(dataSelection.metric) }}
-

Courbe des revenus par période

+

Visualisation en temps réel

- -
-
+
-

Chargement des données...

+

Chargement du graphique...

-

Aucune donnée disponible

+
-
- +
- +
- +
-
- - Performance -
+
+
+ + Comparaison Hebdo/Mens +
+ Dernières 8 périodes +
+
+
+
+ + Données de comparaison indisponibles +
+
+ +
+
+
+
+ + +
+
+
+
+
+ + Performance Globale +
+ +
-
+
- +

{{ stats.successRate | number:'1.0-0' }}% @@ -356,73 +408,115 @@

-
-
-
+
+
+
- {{ formatNumber(dailyTransactions?.items?.[0]?.successCount || 0) }}
Réussies
-
-
- - {{ formatNumber(dailyTransactions?.items?.[0]?.failedCount || 0) }} +
+
+
+ {{ formatNumber(dailyTransactions?.items?.[0]?.failedCount || 0) }} +
+ Échouées +
+
+
+
+
+ {{ formatNumber(dailyTransactions?.items?.[0]?.pendingCount || 0) }} +
+ En attente
- Échouées
+
+
+
+
- -
-
-
-
-
- - Santé du système -
- -
+ +
+
+
+
+
+
+ + Santé des APIs DCB +
+

Statut en temps réel des services backend

+
+
+
+
+ + {{ overallHealth.message }}
+
+ +
+
+
+
+
+
+
-
-
-
-
-
- {{ service.service }} -
-
- - {{ service.responseTime }}ms - - - {{ service.status }} - -
-
+
+
+
{{ service.service }}
+ {{ service.url }} +
+
+ + {{ service.status }} + + + {{ service.statusCode }} +
-
- - - Dernière vérification: {{ formatTimeAgo(systemHealth[0]?.lastChecked) }} +
+
+ + + {{ formatTimeAgo(service.checkedAt) }} + +
+
+ + {{ service.responseTime }} + +
+
+
+ + + {{ service.error }}
+
+ + + Vérification automatique toutes les 5 minutes + +
@@ -456,28 +550,23 @@ - + - - + +
Date/HeurePériode MontantStatutTauxTransactionsSuccès
{{ item.period }}
- {{ formatNumber(item.count) }} transactions + {{ item.merchantPartnerId ? 'Merchant ' + item.merchantPartnerId : 'Tous' }}
{{ formatCurrency(item.totalAmount) }}
- - {{ item.successCount || 0 }} ✓ - - - {{ item.failedCount || 0 }} ✗ - +
{{ formatNumber(item.count) }}
@@ -499,7 +588,7 @@
- Affichage des {{ (dailyTransactions?.items?.slice(0, 5) || []).length }} dernières périodes + {{ (dailyTransactions?.items?.length || 0) }} périodes au total Voir tout
@@ -564,7 +653,7 @@
- Dernière vérification: {{ lastUpdated | date:'HH:mm:ss' }} + Dernière vérification: {{ formatTimeAgo(alerts[0]?.timestamp) || 'Jamais' }}