Feature: Native Block Editor Interface#94
Open
fabiankaegy wants to merge 83 commits intofeature/rest-api-endpointfrom
Open
Feature: Native Block Editor Interface#94fabiankaegy wants to merge 83 commits intofeature/rest-api-endpointfrom
fabiankaegy wants to merge 83 commits intofeature/rest-api-endpointfrom
Conversation
4608980 to
621e135
Compare
4 tasks
… Classic Editor usage
Member
|
Hi @fabiankaegy I went ahead and updated the UI to use the new ContentPicker, along with some fixes and improvements for post-to-user relationship support and bi-directional panels in post-to-post relationships. Ready for your review when you can. |
Member
|
@rickalee PR is ready for review. The |
# Conflicts: # package-lock.json
Moving implementation to a hook based logic in `feature/picked-relationship-component`
# Conflicts: # package-lock.json
# Conflicts: # includes/Plugin.php # package-lock.json # package.json
# Conflicts: # tests/unit/bootstrap.php
# Conflicts: # includes/Plugin.php # tests/unit/ContentConnectUnitTestCase.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
This PR is based on top of #95
Description of the Change
This PR adds a WordPress Data API store and Block Editor UI for managing Content Connect relationships directly within the WordPress Block Editor.
WordPress Data API Store (
wp-content-connect):getRelationships(),getRelatedEntities(),getDirtyEntityIds()setRelationships(),setRelatedEntities(),updateRelatedEntities(),markPostAsDirty()React Hooks:
useRelationships()- Hook for accessing and loading relationships for a postuseRelatedEntities()- Hook for accessing, loading, and updating related entities for a specific relationshipBlock Editor UI:
RelationshipsPanel- Plugin that automatically adds relationship panels to the Document Settings sidebarRelationshipManager- Component that integrates with@10up/block-componentsContentPicker for managing related contentenable_ui: trueKey Features:
@10up/block-componentsContentPicker componentThis implementation enables developers to easily build custom blocks and interfaces that interact with Content Connect relationships using standard WordPress Data API patterns.
Closes #45
How to test the Change
Setup:
enable_ui: truesetBlock Editor UI:
enable_ui: trueData Store API (Browser Console):
Changelog Entry
wp-content-connect) for managing Content Connect relationships within the Block Editor.useRelationships()anduseRelatedEntities()for accessing and managing relationships in custom blocks.Credits
Props @fabiankaegy @s3rgiosan
Checklist