fix(release): 0.2.8 harden admin proxy, cart stock caps, selfpay and refund timeline

- admin proxy: 25s timeout, body guards, structured failure logs
- cart: addItem enforces stock cap (409 INSUFFICIENT_STOCK), UI clamps qty
- tpv selfpay: hide sidebar/discounts/save-pending, rename button, receipt-settings 400 fix
- pos admin: quick products slot count aligned to 8
- returns: human-readable history message + metadata jsonb (migrations 064-065) + admin fallback formatter
- storefront: product card white background
- product page: remove duplicate stock label under add-to-cart button
This commit is contained in:
Deploy
2026-08-25 23:41:29 +02:00
parent b6adf681d1
commit b6af852b54
29 changed files with 671 additions and 279 deletions

View File

@@ -1,16 +1,21 @@
# Estado Actual
## Ninguna feature activa
## Sesión anterior completada: 2026-08-25
**Última feature cerrada:** `FRONTEND-UI-FIXES2` (ya estaba `done` en backlog)
### Features cerradas
- TPV-FIXES (3/3 bugs) ✅
- TICKET-LOGO ✅
- ORDERS-FIX ✅
Para iniciar una nueva feature:
1. Seleccionar una feature `pending` de `backlog/features.json`
2. Actualizar estado con `python3 scripts/agent_status.py set --feature-id <id> --stage intake --agent leader`
3. Continuar con `harness/workflow.stages.yml`
### Pendientes
- **INVENTORY-OPT**: Inventory optimization (pagination, queries, filters for 10k+ products)
- **SHIPPING-ZONES**: Restrict Balearic and Canary islands, add continental...
---
### Issue pendiente de resolver
- **TPV stock**: Tema de stock con items convertidos a free items necesita revisión más profunda
## Resumen backlog
- Total features: 344
- Features pendientes de iniciar: verificar con `rg '"status": "pending"' backlog/features.json | wc -l`
## Para iniciar próxima sesión
```bash
./scripts/pi_orquestra.sh
```
Seleccionar INVENTORY-OPT o SHIPPING-ZONES del backlog.

View File

@@ -1,152 +1,152 @@
{
"feature_id": "TPV-FIXES",
"stage": "review_gate",
"agent": "reviewer",
"action": "Fixing favicon 404, cashier label, and pos/sales 400 error",
"state": "done",
"feature_id": "POS-RECEIPT-QUICK-FIXES",
"stage": "build",
"agent": "implementer",
"action": "Fix receipt-settings 400 and quick products save",
"state": "running",
"next_agent": null,
"waiting_for": "Seleccionar una feature pending y actualizar este estado",
"updated_at": "2026-08-25T04:47:13Z",
"updated_at": "2026-08-25T21:03:29Z",
"timeline": [
{
"ts": "2026-08-25T04:27:58Z",
"agent": "implementer",
"stage": "build",
"state": "idle",
"message": "Estado actualizado"
},
{
"ts": "2026-08-25T04:28:09Z",
"agent": "implementer",
"stage": "build",
"state": "idle",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:28:15Z",
"ts": "2026-08-25T19:46:39Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Rebuild dist for awaiting payment notification fix"
},
{
"ts": "2026-08-25T04:30:08Z",
"ts": "2026-08-25T19:52:55Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Redeploy local prod stack after awaiting-payment fix"
},
{
"ts": "2026-08-25T04:30:24Z",
"agent": "reviewer",
"stage": "review_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:30:35Z",
"agent": "security",
"stage": "security_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:30:44Z",
"agent": "qa",
"stage": "qa_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:31:04Z",
"agent": "leader",
"stage": "intake",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:31:58Z",
"ts": "2026-08-25T19:53:50Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Fix monolith restart to stop old deployments before starting latest"
},
{
"ts": "2026-08-25T04:35:08Z",
"ts": "2026-08-25T19:59:53Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Fix monolith restart to remove old deployments and run latest version"
},
{
"ts": "2026-08-25T04:35:09Z",
"agent": "reviewer",
"stage": "review_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:35:18Z",
"agent": "security",
"stage": "security_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:35:26Z",
"agent": "qa",
"stage": "qa_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:35:43Z",
"agent": "leader",
"stage": "intake",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:37:19Z",
"ts": "2026-08-25T20:00:40Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Add semantic versioning and conventional commit enforcement to Orquestra"
},
{
"ts": "2026-08-25T04:37:57Z",
"ts": "2026-08-25T20:04:01Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Add semantic versioning and conventional commit enforcement to Orquestra"
},
{
"ts": "2026-08-25T04:37:57Z",
"agent": "reviewer",
"stage": "review_gate",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
},
{
"ts": "2026-08-25T04:45:38Z",
"ts": "2026-08-25T20:04:58Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Add settings about section with service versions and server info"
},
{
"ts": "2026-08-25T04:47:13Z",
"ts": "2026-08-25T20:08:32Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Add settings about section with service versions and server info"
},
{
"ts": "2026-08-25T04:47:13Z",
"agent": "reviewer",
"stage": "review_gate",
"ts": "2026-08-25T20:12:55Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fix admin 500 errors for awaiting-payment and POS cash-close reports"
},
{
"ts": "2026-08-25T20:16:24Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Fixing favicon 404, cashier label, and pos/sales 400 error"
"message": "Fix admin 500 errors for awaiting-payment and POS cash-close reports"
},
{
"ts": "2026-08-25T20:20:00Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fix reporting trend chart height and closures report display"
},
{
"ts": "2026-08-25T20:24:31Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Fix reporting trend chart height and closures report display"
},
{
"ts": "2026-08-25T20:26:16Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Hide TPV self-checkout menu/discounts and fix trend text distortion"
},
{
"ts": "2026-08-25T20:30:04Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Hide TPV self-checkout menu/discounts and fix trend text distortion"
},
{
"ts": "2026-08-25T20:36:53Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Remove duplicate ticket print header and force white print background"
},
{
"ts": "2026-08-25T20:39:16Z",
"agent": "implementer",
"stage": "build",
"state": "done",
"message": "Remove duplicate ticket print header and force white print background"
},
{
"ts": "2026-08-25T20:39:16Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Diagnose PATCH /api/products/[id] 502 Bad Gateway"
},
{
"ts": "2026-08-25T20:50:29Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fix storefront card bg, stock cap, return human readable, PATCH 502"
},
{
"ts": "2026-08-25T20:54:10Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fix storefront card bg, stock cap, return human readable, PATCH 502, selfpay button rename"
},
{
"ts": "2026-08-25T21:03:29Z",
"agent": "implementer",
"stage": "build",
"state": "running",
"message": "Fix receipt-settings 400 and quick products save"
}
]
}