22 · Business Hub & reports

Owner-facing operational hub and sales/ops report tree — and the important split between main DB live reports and analytics DB services.

/business-hub /reports/sales/* Two reporting paths — reconcile carefully

Business Hub (per-tenant owner ops)

Not Master Admin. Tenant owner/manager operational dashboard.

UIStatus
/business-hub BusinessHubDashboardLive
/business-hub/payment-hubLive
analytics-hub · operations-hub · integration-hub routesSome App placeholders — API may still exist

API /api/business-hub

PathPurpose
GET /statusPlan / feature flags snapshot
GET /analytics-hub/metricsRevenue / transactions style metrics
GET /payment-hub/statusPayment methods live (cash/card/crypto/gift…)
GET /operations-hub/statusOffline queue / isolation health-ish
GET /integration-hub/statusWebhooks / API key status
GET /transaction-hub/overviewSuccess/fail rates
GET /reports-hub/summaryReport summary
GET /people-hub/analyticsStaff/customer counts style

Also aggregates audit visibility for owners (ties to audit taxonomy / analytics DB logs).

Reports UI

PathReport
/reports/sales/summarySales summary
…/items · trends · categories · teamsBreakdowns
…/modifiers · gift-cards · vendorsMore sales cuts
/inventory/reports/*COGS, aging, sell-through, projected profit
Ops reports (API)activity, labor, kitchen — UI may vary

Dashboard home also pulls report/dashboard endpoints.

Reports API (sample)

/api/reports (+ alias /reports) · session + tenant

  • /sales/summary|items|trends|categories|teams|modifiers|gift-cards|vendors
  • /payments/* methods, voids, cash-drawers, …
  • /accounting/* taxes, fees, reconciliation
  • /operations/* activity, labor, kitchen
  • /inventory/* cogs, aging, …

Also: /api/dashboard, /api/pos-analytics, /api/customer-analytics, salesAnalytics services.

Data plane caution

flowchart LR
  MAIN[(tenant main DB
live operational queries)] ANAL[(dev-analytics-slug
audit · analytics services)] R1[reports.sales.controller
often main] R2[salesAnalytics / posAnalytics
analytics connection] MAIN --> R1 ANAL --> R2 R1 -.->|may disagree| R2
Audit finding S8-3 Two reporting paths exist without a fully documented reconciliation story. Side-by-side “today’s sales” on hub vs reports UI can theoretically diverge if analytics is delayed. Verify with real numbers before trusting both screens as identical truth.

Gaps

  • Some Business Hub sub-routes still Placeholder in App.jsx while APIs exist
  • Payment methods report route may still be placeholder UI
  • Virtual terminal placeholder
  • Parallel dashboard route files (NEW/simple/OLD history)

File anchors

ConcernPath
Business hub APIbusiness-hub.routes.js
Hub UIpages/business-hub/*
Reports APIreports.routes.js · controllers/reports.*
Reports UIpages/reports/**
Analytics servicessalesAnalytics · posAnalytics · customerAnalytics
OAO12 Business Analytics · 16 business-center HTML