Skip to content

Release 1.0.0 - #2

Merged
firestar300 merged 6 commits into
mainfrom
develop
Jun 19, 2026
Merged

Release 1.0.0#2
firestar300 merged 6 commits into
mainfrom
develop

Conversation

@firestar300

@firestar300 firestar300 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

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 for includes/, and block registration with a BlockRenderer dynamic render_callback plus ResponsiveDisplay for per-viewport copy/share visibility (filterable breakpoint, inline CSS on enqueue_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 via load_plugin_textdomain, wp_set_script_translations, POT/PO/JSON, including French. Docs and distribution: new README.md, WordPress Playground blueprint retargeted from the modal demo to a post with blockparty/post-sharing-button, .gitignore now ignores composer.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.0 and 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.

firestar300 and others added 6 commits June 19, 2026 15:15
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread blockparty-post-sharing.php
@firestar300
firestar300 merged commit f47a4e7 into main Jun 19, 2026
4 checks passed
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.

1 participant