feat(notif-inventory-alerts): admin bell: add inventory alerts (low stock, out of stock, expired/expiring, low margin)
This commit is contained in:
@@ -8276,6 +8276,24 @@
|
||||
"qa": false
|
||||
},
|
||||
"phase": "pos"
|
||||
},
|
||||
{
|
||||
"id": "NOTIF-INVENTORY-ALERTS",
|
||||
"type": "feature",
|
||||
"title": "Admin bell: add inventory alerts (low stock, out of stock, expired/expiring, low margin)",
|
||||
"description": "Extend admin header bell notification (currently only shows stale orders + awaiting payment) with inventory operational alerts: (1) low stock (configurable threshold, default <5), (2) out of stock, (3) expired and expiring soon (configurable days, default 30), (4) low margin (configurable %, default <30%). Backend: extend /api/backoffice/notifications to include inventory counts reusing the queries from inventory.routes.ts. Frontend: add Inventario tab to OrderNotifications dropdown with iconified items, each linking to /inventory?filter=low_stock|out_of_stock|expiring|low_margin. Counts must match /api/inventory totals. Thresholds read from store_settings (admin configurable). Acceptance: bell badge updates; each alert navigates to filtered inventory; thresholds configurable via admin/settings.",
|
||||
"priority": "high",
|
||||
"risk": "med",
|
||||
"status": "done",
|
||||
"created_at": "2026-08-27",
|
||||
"gates": {
|
||||
"reviewer": true,
|
||||
"security": true,
|
||||
"qa": true,
|
||||
"close": true
|
||||
},
|
||||
"phase": "admin",
|
||||
"completed_at": "2026-08-27T21:26:01Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user