Problem
Collections in the admin sidebar are sorted alphabetically by slug. There is no way to group collections (e.g., "Blog", "Products", "Team") -- everything is a flat list in the "Content" group.
Proposed Solution
Add sort_order (INTEGER, nullable) and group (TEXT, nullable) columns to _emdash_collections.
Migration
ALTER TABLE _emdash_collections ADD COLUMN sort_order INTEGER;
ALTER TABLE _emdash_collections ADD COLUMN group TEXT;
Changes
- Update
Collection interface in packages/core/src/schema/types.ts
- Update
CollectionConfig seed type to accept sortOrder and group
- Update
listCollectionsWithFields() to order by sort_order ASC, slug ASC
- Seed apply/create handles
sortOrder and group
- Export-seed includes these fields
Acceptance Criteria
Notes
Depends on: none (foundational)
Blocks: #2
Problem
Collections in the admin sidebar are sorted alphabetically by slug. There is no way to group collections (e.g., "Blog", "Products", "Team") -- everything is a flat list in the "Content" group.
Proposed Solution
Add
sort_order(INTEGER, nullable) andgroup(TEXT, nullable) columns to_emdash_collections.Migration
Changes
Collectioninterface inpackages/core/src/schema/types.tsCollectionConfigseed type to acceptsortOrderandgrouplistCollectionsWithFields()to order bysort_order ASC, slug ASCsortOrderandgroupAcceptance Criteria
Collectiontype includessortOrder?: numberandgroup?: stringlistCollectionsWithFields()orders bysort_order ASC, slug ASCNULLNotes
sort_orderalready exists on_emdash_fields-- follow the same patternDepends on: none (foundational)
Blocks: #2