Skip to content

2.0.0#118

Draft
s3rgiosan wants to merge 371 commits intodevelopfrom
release/1.7.0
Draft

2.0.0#118
s3rgiosan wants to merge 371 commits intodevelopfrom
release/1.7.0

Conversation

@s3rgiosan
Copy link
Copy Markdown
Member

@s3rgiosan s3rgiosan commented Jan 12, 2026

Note

This PR combines the following feature branches:

Description of the Change

This PR introduces REST API endpoints, helper functions, and Block Editor integration for Content Connect, replacing the Vue-based classic editor UI with a React implementation.

New Features:

  • Helper Functions: Five new helper functions for retrieving relationship data (get_post_to_post_relationships_by, get_post_to_user_relationships_by, get_post_relationships_data, get_post_to_post_relationships_data, get_post_to_user_relationships_data)

  • REST API Endpoints:

    • POST /content-connect/v1/search - Search for posts and users
    • GET /content-connect/v2/relationships - List all relationships
    • GET /content-connect/v2/post/{id}/relationships - Get post relationships
    • GET /content-connect/v2/post/{id}/related - Get related entities
    • POST /content-connect/v2/post/{id}/related - Update related entities
    • PUT /content-connect/v2/post/{id}/related - Add related entity
    • DELETE /content-connect/v2/post/{id}/related - Remove related entity
    • Automatic REST API links added to post responses
  • Block Editor Integration:

    • WordPress Data API store (wp-content-connect)
    • React hooks (useRelationships, useRelatedEntities)
    • Automatic relationship panels in Document Settings sidebar
    • Integration with @10up/block-components ContentPicker
    • Customization filter hooks (contentConnect.searchResultFilter, contentConnect.pickedItemFilter, contentConnect.pickedItemPreviewComponent) for customizing UI with context-aware relationship information
  • Classic Editor:

    • Replaced Vue-based UI with React implementation
    • Uses same components as Block Editor for consistency
    • Removed Vue.js dependency

Changelog Entry

  • Added - Helper functions for retrieving relationship data
  • Added - REST API endpoints for managing relationships
  • Added - WordPress Data API store and Block Editor UI integration
  • Added - Filter hooks for customizing Block Editor RelationshipManager UI
  • Changed - Classic editor UI from Vue to React
  • Removed - Vue.js dependency

Credits

Props @s3rgiosan @fabiankaegy

Checklist

…support

# Conflicts:
#	assets/js/components/relationship-manager.tsx
#	assets/js/components/relationships-panel.tsx
#	package-lock.json
…support

# Conflicts:
#	includes/UI/BlockEditor.php
…support

# Conflicts:
#	dist/js/block-editor.asset.php
#	dist/js/block-editor.js
#	includes/UI/BlockEditor.php
…ship-component

# Conflicts:
#	assets/js/components/RelationshipManager/index.tsx
#	assets/js/components/RelationshipsPanel/index.tsx
#	assets/js/index.ts
#	dist/js/wp-content-connect.asset.php
#	dist/js/wp-content-connect.js
# Conflicts:
#	dist/js/block-editor.asset.php
#	dist/js/block-editor.js
#	includes/UI/BlockEditor.php
# Conflicts:
#	assets/js/components/RelationshipManager/index.tsx
#	dist/css/admin-styles.css
#	dist/js/block-editor.asset.php
#	dist/js/block-editor.js
#	dist/js/classic-editor.asset.php
#	dist/js/classic-editor.js
#	includes/UI/BlockEditor.php
Comment thread .github/workflows/test-php.yml Outdated
Comment thread .github/workflows/test-php.yml Outdated
Comment thread .github/workflows/test-php.yml Outdated
@jeffpaul jeffpaul changed the title 1.7.0 2.0.0 Jan 30, 2026
@s3rgiosan
Copy link
Copy Markdown
Member Author

New tag: 2.0.0-beta.2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants