fix(order-status-completed): order status COMPLETED in admin dashboard and orders pages

This commit is contained in:
Deploy
2026-08-26 22:42:06 +02:00
parent 5f6a22f1c5
commit b3e387c684
7 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
# Implementer — ORDER-STATUS-COMPLETED
Added COMPLETED order state to admin dashboard, orders list, and order detail pages with lowercase label "completado".
## Files
- `apps/admin/src/types/index.ts` — added COMPLETED to OrderState union
- `apps/admin/src/app/(dashboard)/page.tsx` — STATE_LABELS + STATE_COLORS for COMPLETED
- `apps/admin/src/app/(dashboard)/orders/page.tsx` — same + added to ORDER_STATES filter
- `apps/admin/src/app/(dashboard)/orders/[id]/page.tsx` — same + ALLOWED_TRANSITIONS + ACTION_LABELS
- `src/modules/admin-stats/api/stats.routes.ts` — revenueToday now includes COMPLETED
## Validation
- `cd project && npm run build`
- `cd project/apps/admin && npm run build`
- `git diff --check`