{
  "id": 3849384,
  "title": "Real‑Time KPI Dashboard, Priority‑Action Strip & Docker Healthcheck Fix in a Vite‑React / NestJS Monorepo",
  "url": "https://urgent.news/2026/08/28/real-time-kpi-dashboard-priority-action-strip-docker-healthcheck-fix",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-28T00:11:07.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zaerohell/real-time-kpi-dashboard-priority-action-strip-docker-healthcheck-fix-in-a-vite-react-nestjs-42lf"
  },
  "original_language": "en",
  "account": "Here is my rewrite of the original story in my own words:\n\nThe source described a series of technical improvements made to a Vite‑React / NestJS monorepo that includes both a web front‑end and an API back‑end. The key points were:\n\n1. A flaky Docker healthcheck was causing CI builds to fail because the healthcheck endpoint was resolving to IPv6 (::1) while the NestJS API only listened on IPv4 (0.0.0.0). The fix was to use the service name \"api\" in the Docker compose file's healthcheck instead of localhost.\n\n2. Product owners requested a real‑time KPI dashboard for condos showing income and expense data. This required a new backend endpoint. The implementation was a simple GET /complex/kpis endpoint in the NestJS `ComplexController` that fetched income and expense figures from a financial service and returned them as a small JSON payload.\n\n3. The front‑end needed a \"Next Action\" strip that showed the next priority task for the logged‑in user. This required a shared endpoint in the NestJS `PriorityActionsController`. A dummy data set of actions was added to demonstrate the pattern, even though in a real app the actions would be fetched from a service.\n\nAll three changes were implemented in the source repository and involved updating the Docker compose file, the NestJS controllers and modules, and adapting the front‑end components. The result was tighter dev‑ops monitoring, instant role‑aware insights in the UI, and a working set of backend endpoints to support both the new KPI feature and the priority actions strip.",
  "summary": "Real‑Time KPI Dashboard, Priority‑Action Strip & Docker Healthcheck Fix in a Vite‑React / NestJS Monorepo TL;DR: I fixed a flaky Docker healthcheck that was resolving localhost to IPv6, added a new KPI endpoint for condos, and built a “Próxima acción” strip that pulls priority actions from a shared NestJS controller. The changes tighten our dev‑ops monitoring and give the UI instant, role‑aware…",
  "key_points": [
    "Docker healthcheck fixed to use service name 'api' instead of localhost",
    "Real-time KPI dashboard added with GET /complex/kpis endpoint",
    "Front-end Next Action strip implemented with priority actions endpoint"
  ],
  "editors_take": "These technical improvements enhance the monorepo's functionality, enabling real-time KPI tracking, priority task management, and stable CI builds, ultimately supporting a more informed and efficient user experience.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}