Manual child order for guides (#37) #40
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/37-manual-guide-order"
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?
Closes #37
Guides get a position among the guides of their category. They are arranged separately from subcategories, but the category's single child-order switch governs both lists.
Guide.position. The migration numbers existing guides per category alphabetically by title./admin/categories/[id]lists all non-deleted guides, with drafts marked. Up/down buttons (moveGuide) appear only in manual order.ArrangeChildrenis now generic and used for both lists.sortChildrenandpositionOnArrivallive insrc/categories/childOrder.tsand are shared with the category tree andsaveCategory.Tests: unit tests for the ordering and "goes last" rules. New Playwright test: an admin switches a category to manual, moves a guide up, and a guest sees the new order.
Notes
authoring.spec.tsandaccess.spec.tssometimes fails with a server error when the tests run in parallel. This also happens ondevelopmentand is unrelated to this change.🤖 Generated with Claude Code