feat(F-122): completed feature

This commit is contained in:
chattie
2026-08-21 15:32:24 +02:00
parent b9610bf546
commit a5538fc8f0
9 changed files with 102 additions and 38 deletions

View File

@@ -0,0 +1,15 @@
# F-122 — Quitar warning de variantes heredadas
## Cambios
- `apps/admin/src/features/products/components/sections/PriceStockSection.tsx`:
- Eliminado `extraVariants` state.
- Eliminado el `setExtraVariants(...)` del useEffect de carga.
- Eliminado el bloque JSX `{extraVariants > 0 && (<p>⚠️ Este producto tiene X variante(s) heredada(s)…</p>)}`.
## Evidencia
- `npx tsc --noEmit` (apps/admin) OK.
- `grep` confirma que no quedan referencias a `extraVariants` o al texto "heredada".
## Notas
- El modelo actual tiene una sola variante por producto. El warning era ruido heredado de cuando el modelo tenía varias.
- Si en el futuro se reintroducen variantes múltiples, el producto editorial se ajusta por separado.

View File

@@ -0,0 +1,13 @@
{
"feature_id": "F-122",
"agent": "leader",
"verdict": "APPROVED",
"summary": "F-122 removes the legacy variant warning from the price/stock section.",
"evidence": [
"reviewer.json APPROVED",
"security.json APPROVED",
"qa.json APPROVED",
"admin tsc clean"
],
"timestamp": "2026-08-21T15:40:00Z"
}

View File

@@ -0,0 +1,16 @@
{
"feature_id": "F-122",
"agent": "qa",
"stage": "qa_gate",
"verdict": "APPROVED",
"reviewed_at": "2026-08-21",
"summary": "Acceptance criteria traced to evidence.",
"acceptance_traceability": [
{ "criterion": "PriceStockSection no longer shows the legacy warning", "evidence": "JSX block removed", "ok": true },
{ "criterion": "extraVariants state removed", "evidence": "grep returns 0 hits", "ok": true },
{ "criterion": "Editor still loads the single variant correctly", "evidence": "items?.[0] logic unchanged; admin tsc clean", "ok": true },
{ "criterion": "Typecheck, tests, verify pass", "evidence": "admin tsc OK; verify.sh OK", "ok": true }
],
"checks": [],
"issues": []
}

View File

@@ -0,0 +1,14 @@
{
"feature_id": "F-122",
"agent": "reviewer",
"stage": "review_gate",
"verdict": "APPROVED",
"reviewed_at": "2026-08-21",
"summary": "Legacy variant warning removed; admin UI is cleaner for single-variant products.",
"checks": [
{ "item": "extraVariants state removed", "ok": true },
{ "item": "JSX warning block removed", "ok": true },
{ "item": "Admin tsc --noEmit clean", "ok": true }
],
"issues": []
}

View File

@@ -0,0 +1,12 @@
{
"feature_id": "F-122",
"agent": "security",
"stage": "security_gate",
"verdict": "APPROVED",
"reviewed_at": "2026-08-21",
"summary": "UI-only removal; no security impact.",
"checks": [
{ "item": "Removed code is dead UI; no data leak", "ok": true }
],
"issues": []
}