fix(inventory-opt): inventory optimization: pagination, queries, filters for 10k+ products

This commit is contained in:
Deploy
2026-08-26 18:07:49 +02:00
parent 49dfd00406
commit c19626bea3
13 changed files with 1114 additions and 361 deletions

View File

@@ -0,0 +1,29 @@
{
"feature_id": "INVENTORY-OPT",
"agent": "reviewer",
"stage": "review_gate",
"verdict": "APPROVED",
"checks": [
{
"item": "Admin inventory no longer performs N+1 product/variant/stock/price fetches and now reads a single paginated backend overview endpoint",
"ok": true
},
{
"item": "Server-side query supports search by product name, SKU and EAN plus the existing stock/expiry/low-margin filters",
"ok": true
},
{
"item": "Admin UI preserves inline stock/EAN/expiry editing while moving pagination and filtering to the server",
"ok": true
},
{
"item": "Changed files validated by backend typecheck/build, admin build, verify.sh and a real PostgreSQL integration test for the overview endpoint",
"ok": true
}
],
"issues": [],
"notes": [
"The endpoint is variant-based, which matches inventory reality better than the old first-variant-per-product approximation.",
"Admin build still emits unrelated existing Turbopack warnings about dynamic uploads filesystem access; not introduced by this feature."
]
}