diff --git a/ROADMAP.md b/ROADMAP.md index d5d1e0f8..c04a3c97 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -106,7 +106,7 @@ |:-:|-----|:------:|-------|:------:|-------| | 9 | Retail POS Workflow | `DONE` | Backend + Frontend | Phase 2 / W5-6 | Scan, stock, return/exchange | | 10 | Spa Backend Domain Logic | `DONE` | Backend | Phase 2 / W5-6 | Appointments, therapist scheduling | -| 11 | EOD Reports + Daily Close | `TODO` | Frontend Blazor | Phase 1 / W4 | order-service queries | +| 11 | EOD Reports + Daily Close | `DONE` | Frontend Blazor | Phase 1 / W4 | order-service queries | | 12 | FnB Engine Test Coverage | `DONE` | QA Engineer | Phase 1 / W3 | 96 tests (57 domain + 39 handler) | | 13 | Cafe Workflow Completion | `DONE` | Backend + Frontend | Phase 2 / W5-6 | Loyalty stamps, barista queue | | 14 | Critical Path Unit Tests (inventory, payment, events) | `DONE` | QA Engineer | Phase 1 / W4 | Deduction, payment callback, domain event handlers | @@ -120,7 +120,7 @@ | 17 | Ads Platform | `TODO` | Phase 3 | 5 ads services | | 18 | Mobile iOS v1 | `TODO` | Phase 3 | app-client-base-swift | | 19 | Mobile MAUI v1 | `TODO` | Phase 3 | app-client-base-net | -| 20 | Observability Stack | `TODO` | Phase 2 | Prometheus + Grafana + Loki | +| 20 | Observability Stack | `DONE` | Phase 2 | Prometheus + Grafana + Loki + Promtail | --- @@ -159,8 +159,8 @@ | EOD reports + daily close workflow | Senior Frontend | `DONE` | order-service | | Full regression testing | QA | `TODO` | All P0 done | | Staging K8s deployment | DevOps | `DONE` | 16 manifests + CI/CD | -| Grafana monitoring dashboards | DevOps | `TODO` | Observability stack | -| Production deploy checklist | DevOps + CTO | `TODO` | Staging verified | +| Grafana monitoring dashboards | DevOps | `DONE` | Observability stack | +| Production deploy checklist | DevOps + CTO | `DONE` | Staging verified | | Load testing (100 concurrent users) | QA + DevOps | `TODO` | Staging live | ### Phase 2: Multi-Vertical Expansion (Week 5-8) @@ -174,18 +174,18 @@ | Spa domain logic (appointments, therapists) | Senior Backend | `DONE` | booking-service | | Retail POS workflow (scan, stock, returns) | Senior Backend | `DONE` | catalog, inventory | | Cafe-specific (loyalty stamps, barista queue) | Senior Backend | `DONE` | membership | -| Vertical-specific UI refinement | Senior Frontend | `IN-PROGRESS` | Backend done | +| Vertical-specific UI refinement | Senior Frontend | `DONE` | Backend done | | Multi-branch management features | Senior Backend | `TODO` | merchant-service | #### Week 7-8: Advanced Features | Task | Agent | Status | Depends On | |------|-------|:------:|:----------:| -| Advanced reports (revenue, staff perf) | Backend + Frontend | `TODO` | order-service | -| Customer-facing menu (QR code) | Frontend | `TODO` | catalog-service | +| Advanced reports (revenue, staff perf) | Backend + Frontend | `DONE` | order-service | +| Customer-facing menu (QR code) | Frontend | `DONE` | catalog-service | | Mobile-responsive POS layout | Frontend | `TODO` | — | -| E2E tests per vertical (Playwright) | QA | `TODO` | Verticals done | -| Observability stack activation | DevOps | `TODO` | — | +| E2E tests per vertical (Playwright) | QA | `DONE` | Verticals done | +| Observability stack activation | DevOps | `DONE` | — | | Production deployment (Karaoke + Restaurant) | DevOps + CTO | `TODO` | Phase 1 stable | ### Phase 3: Growth Features (Week 9-12) @@ -216,6 +216,30 @@ ## VI. Recently Completed +### 2026-03-06 (Phase 2 W7-8 — Production Readiness) + +| Task | Agent | Details | +|------|-------|---------| +| Revenue Analytics Query | Backend | GetRevenueAnalyticsQuery (Dapper): daily/weekly/monthly trends, payment breakdown, top products, hourly chart | +| Staff Performance Query | Backend | GetStaffPerformanceQuery (Dapper): orders handled, completion rate, avg processing time per staff | +| Analytics Validators | QA | FluentValidation with runtime date check (Must vs LessThanOrEqualTo fix) | +| BFF Reports Proxy | Frontend | ReportsController: revenue-analytics + staff-performance endpoints | +| Public QR Menu | Frontend | PublicMenuController (no auth): /api/public/shops/{id} + /menu, PosDataService public methods | +| E2E Playwright Tests | QA | 8 spec files (auth, admin, karaoke, restaurant, cafe, retail, spa, reports), ~39 test cases | +| Prometheus Alert Rules | DevOps | 7 alerts: ServiceDown, HighErrorRate, HighLatency, DB pool, disk, memory, Redis, RabbitMQ | +| Grafana Dashboard | DevOps | 10-panel overview: HTTP metrics, infra health, business KPIs, .NET memory | + +### 2026-03-06 (Observability & Production Readiness) + +| Task | Agent | Details | +|------|-------|---------| +| Grafana Overview Dashboard | DevOps | 10-panel dashboard: service health (8 services), request rate, p50/p95/p99 latency, 4xx/5xx errors, SignalR connections, DB pool, Redis hit/miss, order metrics, .NET memory | +| Prometheus Scrape Config | DevOps | 11 scrape targets (8 core services + Traefik + Redis + RabbitMQ), 15s interval, service/tier labels | +| Prometheus Alert Rules | DevOps | 7 alerts: ServiceDown (1m), HighErrorRate (>5% 5xx), HighLatencyP95 (>2s), DB pool exhausted (>90%), disk (>85%), memory (>80%), Redis memory, RabbitMQ backlog | +| Grafana Dashboard Provisioning | DevOps | dashboard-provider.yml for auto-loading dashboards from file | +| Production Deployment Checklist | DevOps + CTO | 80+ checklist items: pre-deploy, infra, per-service, monitoring, security, rollback, post-deploy verification, sign-off | +| Docker Compose Observability | DevOps | Uncommented + enhanced Prometheus (v2.51.0), Grafana (v10.3.1), added Loki (v2.9.4), Promtail (v2.9.4) with healthchecks and volume mounts | + ### 2026-03-06 (Phase 1 Sprint) | Task | Agent | Details |