Files
pos/ROADMAP.md
jason 91e1a1ffbf Milestone 3: catalog sync, batch transactions, and reports
- GET /api/v1/catalog/sync?since= — delta sync for Android offline-first
- POST /api/v1/transactions/batch — idempotency-keyed batch upload (207 Multi-Status),
  validates product ownership, skips duplicates silently
- GET /api/v1/transactions + /reports/summary — paginated list and aggregated
  revenue/tax/top-product reporting with date range filters
- ReportsPage: stat cards, payment method breakdown, top-10 products, transaction table
- Reports added to sidebar nav and router

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 06:51:27 -05:00

2.1 KiB

ROADMAP.md

Milestone 1 — Foundation

  • Node/TypeScript API skeleton with Express
  • Health check endpoint (GET /api/v1/health)
  • JWT auth: login, refresh, logout, /me
  • Prisma schema: vendors, users, roles, products, categories, taxes, transactions
  • SQLite for local dev; Postgres for production
  • React admin SPA (Vite + TypeScript)
  • Login page + protected routing
  • Dashboard shell with auth context
  • Multi-stage Dockerfile; docker-compose with Postgres
  • Seed script with demo data

Milestone 2 — Core Data & Admin

  • Full CRUD: vendors, users, categories, products, taxes
  • RBAC enforcement on all routes (owner / manager / cashier)
  • Vendor settings page in admin UI
  • User management UI (add, edit, delete, assign role)
  • Catalog management UI (products, categories, taxes — tabbed)
  • Input validation with Zod on all endpoints
  • Pagination on list endpoints

Milestone 3 — Android & Offline Sync (server-side)

  • GET /api/v1/catalog/sync?since=<ISO> — delta sync for products, categories, taxes
  • POST /api/v1/transactions/batch — idempotency-keyed batch upload (207 Multi-Status)
  • GET /api/v1/transactions — paginated list with date/status/payment filters
  • GET /api/v1/transactions/reports/summary — revenue, tax, top products, payment breakdown
  • Reports page: stat cards, payment method breakdown, top products, transaction table
  • Android Kotlin app: MVVM, Room, offline-first flows (separate deliverable)
  • Background sync worker (Android)
  • Conflict resolution: server-authoritative for payments (enforced via idempotency)

Milestone 4 — Payments & Hardening

  • Payment abstraction layer (cash + card stub; provider-agnostic)
  • Shift/daily summary endpoint and UI
  • Receipt generation (print / email hooks)
  • Advanced reporting: sales by product, tax summaries
  • Telemetry and structured logging
  • Production Docker hardening (non-root user, health checks, secrets)
  • CI/CD pipeline skeleton