feat(core): add group and sortOrder to collections for admin UI organization#292
feat(core): add group and sortOrder to collections for admin UI organization#292tohaitrieu wants to merge 6 commits intoemdash-cms:mainfrom
Conversation
- Add TipTap table extensions (@tiptap/extension-table, table-row, table-cell, table-header) - Add table to slash commands menu (/table) - Add table button to EditorToolbar - Add TableBubbleMenu for editing tables (add/remove rows/columns, toggle header, delete) - Update prosemirrorToPortableText converter to handle tables - Update portableTextToProsemirror converter to handle tables - Add CSS styles for table editing including dark mode support
…ization - Add group and sortOrder fields to SeedCollection interface - Add group and sortOrder to CreateCollectionInput and UpdateCollectionInput - Add group and sortOrder to Collection type - Update createCollection and updateCollection to store these fields - Update mapCollectionRow to read these fields - Update listCollections to sort by sort_order - Add migration 033_collection_groups for database schema - Update CollectionTable type with new columns This allows plugins to organize their collections into groups (e.g., Trading, LMS, Community) for better admin UI navigation.
🦋 Changeset detectedLatest commit: be552fd The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
The CLA check is failing because @emdashbot[bot] is listed as a committer. Bot accounts cannot sign the CLA. Could a maintainer please configure the CLA check to ignore bot accounts, or manually override this check? |
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
What does this PR do?
Add collection grouping support for better plugin organization in the admin sidebar. Plugins can define
groupandsortOrderin their seed.json to organize collections into logical groups (e.g., "Trading", "LMS", "Community").Discussion: #291
Changes:
group(TEXT) andsort_order(INTEGER) columns to_emdash_collectionsType of change
Checklist
pnpm typecheckpassespnpm --silent lint:json | jq '.diagnostics | length'returns 0pnpm testpasses (or targeted tests for my change)pnpm formathas been run