Categories: tree, pages and admin management #6
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #1
Blocked by: #4
What
Hierarchical category tree of arbitrary depth (glossary: Category, Child Order).
Acceptance criteria
Category(parentId?, title, slug unique among siblings, description as Editor.js JSON?, image?, visibility, childOrder, position, timestamps)/c/<slug-path>listing subcategories and guides; root listing on/Vocabulary:
GLOSSARY.md. Decisions:docs/adr/.Implemented in
1b2eedcondevelopment.Notes for follow-up tickets:
src/categories/categoryTree.tsalready haseffectiveVisibilityandvisibleTo(guests only see effective-public categories, per ADR-0002). #7 should take this over rather than build a second copy.Category.positionand the manual child order only cover subcategories. Guides have to share one position space with them, and "delete only when empty" (deleteCategory) must also count guides. Description (Editor.js JSON) is stored but cannot be edited yet.TOP_LEVEL_CHILD_ORDER(alphabetical) insrc/categories/loadCategoryTree.ts; switch it to the setting.Category.imageexists, but nothing sets it yet.