Category Master — Leaf Node Form (Level 2)
By Engineering Team•October 9, 2026•2 min read

What the admin sees
CategoryLeafNodesPage.tsx, rendered inside the drawer when a Level 2 node is being added or edited. The form has:
- A read-only “PARENT SUB-CATEGORY” chip showing the currently-selected sub-category’s name — set automatically from the tree selection, never editable here.
- Name and Slug — same free-text/auto-slug behavior as the other two forms.
- Display Order — a numeric field.
- A tinted info box reading: “Variant attributes are inherited from “{parent sub-category’s name}” and apply automatically to all products assigned to this leaf node.” — there is no Variant Attributes field on this form; a leaf node never defines its own.
What the admin does here
Submitting validates: Name required, Slug required. On success it calls onAdd/onUpdate with nodeLevel: 2, parentId set to the selected sub-category’s ID, mainDisplayCategory: false, variantAttributes: [], and specTemplate: [] — a leaf node carries none of these locally; it relies entirely on its parent sub-category’s variant attributes at read time.
In edit mode, useCategoryLeafNodesController pre-fills name, slug, and displayOrder from the fetched record.
Related Documents
- SR-024 FR-06 — leaf-node field rules and attribute inheritance
- Architecture — Category Master: Three-Level Hierarchy Administration
- Microservices: product-catalog
- Previous: Sub-Category Form (Level 1)