Release 1.0.0 - #2
Merged
Merged
Conversation
This commit transforms the initial block scaffold into a robust feature. It introduces server-side rendering for the post sharing block, allowing for dynamic content and improved performance. Key changes include: - Refactoring block rendering logic into dedicated PHP classes (`BlockRenderer`, `ResponsiveDisplay`). - Adding comprehensive block attributes for customizing button labels, icon visibility, and icon positioning. - Implementing responsive display settings, enabling conditional visibility of copy and share buttons based on viewport. - Integrating front-end JavaScript for clipboard copy functionality and leveraging the native Web Share API for sharing post URLs. - Enhancing development tooling with new Composer autoload rules, updated plugin metadata, and i18n scripts. - Updating dependencies and removing the old `package-lock.json` to reflect the new structure. This significantly enhances the block's functionality, customizability, and overall user experience.
Throw when execCommand('copy') fails so users do not see a false success state, and show feedback when canShare rejects the share payload.
Co-authored-by: Cursor <cursoragent@cursor.com>
Feature/building sharer button block
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4d25a1e. Configure here.
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.

Release 1.0.0
Note
Medium Risk
Introduces new server-side block output and front-end clipboard/Web Share behavior on published posts; scope is a standard Gutenberg plugin with escaping and i18n, not security-critical infrastructure.
Overview
Release 1.0.0 turns the Create Block scaffold into a Be API–branded Post Sharing plugin: namespaced bootstrap in
blockparty-post-sharing.php, PSR-4 autoload forincludes/, and block registration with aBlockRendererdynamicrender_callbackplusResponsiveDisplayfor per-viewport copy/share visibility (filterable breakpoint, inline CSS onenqueue_block_assets).Adds server-rendered copy/share UI (permalink/title in
data-*, accessible status region) aligned with editor attributes (labels, icons,displaySettings). i18n is wired viaload_plugin_textdomain,wp_set_script_translations, POT/PO/JSON, including French. Docs and distribution: newREADME.md, WordPress Playground blueprint retargeted from the modal demo to a post withblockparty/post-sharing-button,.gitignorenow ignorescomposer.lock, and Composer dev tooling versions are bumped.The Playground blueprint no longer installs the modal mu-plugin or demo page; it installs this repo at tag
1.0.0and seeds a demo post instead.Reviewed by Cursor Bugbot for commit 4d25a1e. Bugbot is set up for automated code reviews on this repo. Configure here.