From 9bdcc8e20ee493592afe0db387b4449c460ca21f Mon Sep 17 00:00:00 2001 From: chattie Date: Wed, 19 Aug 2026 19:05:27 +0200 Subject: [PATCH] docs: update history and current after F-071 close --- work/current.md | 2 +- work/history.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/work/current.md b/work/current.md index 469fb22..fd853ab 100644 --- a/work/current.md +++ b/work/current.md @@ -2,7 +2,7 @@ ## Feature activa: F-071 — Editable emoji and color for categories -Backlog: 139 features (138 done, 1 in_progress). Últimas features cerradas: **F-069** — Shipping method descriptions editable in admin, **F-070** — Show product attributes on frontend product detail page. +Backlog: 139 features (139 done). Últimas features cerradas: **F-069** — Shipping method descriptions editable in admin, **F-070** — Show product attributes on frontend product detail page, **F-071** — Editable emoji and color for categories. ### Problema Las categorías usan maps hardcoded de emoji/color en el frontend (CategoriesGrid, categories/page) que no se pueden personalizar desde el admin. Además, las nuevas categorías parent muestran 📁 en lugar de su emoji identificativo. diff --git a/work/history.md b/work/history.md index 5e318cc..7693eaf 100644 --- a/work/history.md +++ b/work/history.md @@ -333,3 +333,11 @@ - Tests: `npx tsc --noEmit` exit 0, `npx eslint` en 4 archivos exit 0, `./scripts/verify.sh` exit 0. - Artefactos: work/artifacts/F-070/. +## 2026-08-19 — F-071 Editable emoji and color for categories — DONE + +- Gates: reviewer APPROVED, security APPROVED, qa APPROVED, leader-close APPROVED, verify.sh exit 0 +- Entregable: se añaden campos `emoji` y `color` a las categorías end-to-end. Migración 030 (`emoji VARCHAR(10)`, `color TEXT`, ambos nullable); backend domain/repository/routes actualizados; frontend CategoriesGrid y categories/page.tsx usan emoji/color almacenados con fallback a maps hardcoded; admin formulario con inputs de emoji+color y CategoryRow usa `cat.emoji ?? 📁`; storefront pagina de categoría muestra el emoji. Backend rebuildado y reiniciado; PATCH /categories/:id con emoji+color verificado → HTTP 200. +- Seguridad: 2 columnas nullable sin migración de datos; validación zod (emoji max 10, color max 200); color se renderiza como className (sin dangerouslySetInnerHTML). +- Tests: typecheck green en backend/frontend/admin/storefront; eslint exit 0; verify.sh exit 0. +- Artefactos: work/artifacts/F-071/. +