Manual child order for guides #37
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba#37
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
Problem
docs/project-description.mdsays categories and guides are sorted alphabetically or — switchable per category — manually (GLOSSARY: Child Order). Today only subcategories follow a category's child order:Guidehas noposition, andloadCategoryGuides(src/guides/loadGuide.ts) always orders by title. #6 handed this to #8, but it was not picked up.Decisions (grilling session)
/admin/categories/[id], with the same up/down buttons as subcategories.Acceptance criteria
Guide.position, counting among the guides of its category; the migration numbers existing guides per category alphabetically by titleposition(title as tie-breaker) in manual ordersrc/categories/childOrder.ts)Implemented in #40 (feature/37-manual-guide-order). Guides get a position within their category, the admin category page arranges them in manual order, and new, recategorised and restored guides go last. Covered by unit tests and a Playwright test.