-
Notifications
You must be signed in to change notification settings - Fork 81
Remote Reply: Use Interactivity API #1721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Thse shouldn't be shared
Server-side rendering what we can
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Replace the Remote Reply block’s React-based frontend with the Interactivity API and update its build outputs accordingly.
- Remove the old
index.js
/index.asset.php
assets and editor styles. - Add server‐side
render.php
plusview.asset.php
, and updateblock.json
to use Interactivity API.
Reviewed Changes
Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
build/remote-reply/view.asset.php | Define @wordpress/interactivity dependency |
build/remote-reply/style-view.css | Add new frontend styles for the Interactivity API |
build/remote-reply/style-index.css | Remove legacy editor styles |
build/remote-reply/style-index-rtl.css | Remove legacy editor RTL styles |
build/remote-reply/render.php | Server‐side rendering with wp_interactivity_state |
build/remote-reply/index.js | Remove React-based frontend script |
build/remote-reply/index.asset.php | Remove React dependencies asset file |
build/remote-reply/block.json | Bump version; switch to view.asset , viewScriptModule and API render |
.github/changelog/1721-from-description | Add the changelog entry for this change |
Comments suppressed due to low confidence (2)
build/remote-reply/block.json:11
- The
block.json
references aview.js
module that isn’t present in the build. Add the missingview.js
underbuild/remote-reply/
or adjust the configuration to point to the correct script.
"viewScriptModule": "file:./view.js",
build/remote-reply/block.json:12
- Setting
viewScript
towp-api-fetch
will only enqueue the core API fetch package, not your block’s frontend code. Either reference your actual view script or remove this entry if it’s not needed.
"viewScript": "wp-api-fetch",
…tomattic/wordpress-activitypub into try/reply-block-interactivity
pfefferle
reviewed
May 28, 2025
pfefferle
reviewed
May 28, 2025
pfefferle
reviewed
May 28, 2025
pfefferle
approved these changes
May 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Block] Follow Me
[Block] Reactions
[Block] Remote Reply
aka "Reply on the Fediverse", in the comment list
[Feature] Reactions
[Focus] Editor
Changes to the ActivityPub experience in the block editor
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.
Moves the Remote Reply "block" to using the Interactivity API for front-end rendering. Removes the block's dependency on React in the frontend.
Proposed changes:
.prettierignore
to accept formatting.Other information:
Testing instructions:
Changelog entry
Changelog Entry Details
Significance
Type
Message
"Reply on the Fediverse" now uses the Interactivity API for display on the frontend.