Wire Health Monitor Dashboard to Real API #134

Closed
opened 2026-03-25 11:03:45 +01:00 by kincses · 2 comments
Owner

Mérföldkő: Milestone 15: Admin Dashboard - Full API Integration
Cél: A Health Monitor Dashboard (useHealthMonitor.ts) mock adatok cseréje valós API hívásokra a endpoint felhasználásával.

🔗 Függőségek (Dependencies)

  • Bemenet (Mikre támaszkodik): FastAPI backend endpoint, Admin jogosultságok
  • Kimenet (Mik támaszkodnak rá): Admin Dashboard valós idejű rendszerállapot megjelenítése, riasztások

📝 Elemzés

A jelenleg mock adatokat generál és használ. A backend végpont létezik (-ban ), és adatokat szolgáltat (user distribution, asset count, critical alerts). A frontend kompozable-t át kell írni, hogy:

  1. Valós API hívást végezzen a endpointra
  2. Hibakezelést implementáljon (timeout, auth error, network error)
  3. A válaszformátumot illessze a meglévő interfészhez
  4. A polling mechanizmus továbbra is működjön (30 másodperces interval)
    ============================================================

Acceptance Criteria

  • Must connect to real database endpoints.
  • Must not use mock data.
  • Must fetch system telemetry (user distribution, asset count, critical alerts) directly from PostgreSQL via FastAPI endpoints.
**Mérföldkő:** Milestone 15: Admin Dashboard - Full API Integration **Cél:** A Health Monitor Dashboard (useHealthMonitor.ts) mock adatok cseréje valós API hívásokra a endpoint felhasználásával. ### 🔗 Függőségek (Dependencies) - **Bemenet (Mikre támaszkodik):** FastAPI backend endpoint, Admin jogosultságok - **Kimenet (Mik támaszkodnak rá):** Admin Dashboard valós idejű rendszerállapot megjelenítése, riasztások ### 📝 Elemzés A jelenleg mock adatokat generál és használ. A backend végpont létezik (-ban ), és adatokat szolgáltat (user distribution, asset count, critical alerts). A frontend kompozable-t át kell írni, hogy: 1. Valós API hívást végezzen a endpointra 2. Hibakezelést implementáljon (timeout, auth error, network error) 3. A válaszformátumot illessze a meglévő interfészhez 4. A polling mechanizmus továbbra is működjön (30 másodperces interval) ============================================================ ### ✅ Acceptance Criteria - Must connect to real database endpoints. - Must not use mock data. - Must fetch system telemetry (user distribution, asset count, critical alerts) directly from PostgreSQL via FastAPI endpoints.
kincses added the Status: To DoType: Feature labels 2026-03-25 11:03:45 +01:00
kincses added Status: In Progress and removed Status: To Do labels 2026-03-27 10:32:30 +01:00
kincses started working 2026-03-27 10:32:31 +01:00
Author
Owner

▶️ Munka megkezdve: 2026-03-27 10:32:30

▶️ **Munka megkezdve:** 2026-03-27 10:32:30
kincses added Status: Done and removed Status: In Progress labels 2026-03-27 10:50:40 +01:00
kincses worked for 18 minutes 2026-03-27 10:50:40 +01:00
Author
Owner

Munka befejezve: 2026-03-27 10:50:40

Technikai Összefoglaló:
Health Monitor Dashboard now uses real backend API (/api/v1/admin/health-monitor). Removed mock data fallback, added 30-second auto-refresh polling, specific error handling for 401/403/500, improved accessibility with dark-blue colors, and proper cleanup on unmount. Documentation updated with test log and Frontend UI Status marked as ' 100% Wired to Real API'.

⏱️ A ráfordított időt a Gitea rögzítette.

✅ **Munka befejezve:** 2026-03-27 10:50:40 **Technikai Összefoglaló:** Health Monitor Dashboard now uses real backend API (/api/v1/admin/health-monitor). Removed mock data fallback, added 30-second auto-refresh polling, specific error handling for 401/403/500, improved accessibility with dark-blue colors, and proper cleanup on unmount. Documentation updated with test log and Frontend UI Status marked as '✅ 100% Wired to Real API'. ⏱️ *A ráfordított időt a Gitea rögzítette.*
Sign in to join this conversation.