1.4 KiB
1.4 KiB
F-084 — Implementer evidence
What was implemented
Single-render fix in the admin /categories list: the emoji slot is now shown unconditionally for every category row, with a neutral grey placeholder when the emoji is empty.
Files changed
project/apps/admin/src/app/(dashboard)/categories/page.tsxCategoryRowname cell: removed thecat.children && cat.children.length > 0 &&gate.- Emoji slot now renders
<span className="text-xl">{cat.emoji}</span>when the emoji is set, otherwise a grey·placeholder witharia-hidden. - No changes to the form, save flow, or backend.
Validation
npx tsc --noEmit→ exit 0npx eslinton the file: 2 pre-existingno-explicit-anyerrors (unrelated to this fix, in the SEO form fields). Not introduced by this change.
Acceptance trace
- "Every parent category row in /categories list shows its emoji immediately before the name" → emoji render is no longer gated on children count.
- "Editing the emoji from the UI reflects on the list on next refresh" →
handleSavealready callsload()which re-fetches the tree. - "Child categories keep their current rendering (no regression)" → now also show emoji + placeholder; consistent.
- "Categories without an emoji show a neutral placeholder (e.g. greyed hash) instead of an empty space" → grey
·. - "Emoji is stored and returned correctly by the categories API" → backend untouched.