Skip to content

feat(core): add group and sortOrder to collections for admin UI organization#292

Open
tohaitrieu wants to merge 6 commits intoemdash-cms:mainfrom
tohaitrieu:feat/collection-groups
Open

feat(core): add group and sortOrder to collections for admin UI organization#292
tohaitrieu wants to merge 6 commits intoemdash-cms:mainfrom
tohaitrieu:feat/collection-groups

Conversation

@tohaitrieu
Copy link
Copy Markdown

What does this PR do?

Add collection grouping support for better plugin organization in the admin sidebar. Plugins can define group and sortOrder in their seed.json to organize collections into logical groups (e.g., "Trading", "LMS", "Community").

Discussion: #291

Changes:

  • Add group (TEXT) and sort_order (INTEGER) columns to _emdash_collections
  • Update SchemaRegistry to handle group/sortOrder in create/update/list operations
  • Update seed types to accept group/sortOrder from plugins
  • Collections sorted by sort_order in listCollections()

Type of change

  • Bug fix
  • Feature (requires approved Discussion)
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

tohaitrieu and others added 6 commits April 4, 2026 12:24
- 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-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 6, 2026

🦋 Changeset detected

Latest 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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
✅ (tohaitrieu)[https://github.com/tohaitrieu]
❌ @emdashbot[bot]
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@tohaitrieu
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@tohaitrieu
Copy link
Copy Markdown
Author

recheck

@tohaitrieu
Copy link
Copy Markdown
Author

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?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant