Skip to content

Release 2.0.0 - #51

Merged
firestar300 merged 35 commits into
mainfrom
release/2.0.0
Sep 28, 2026
Merged

firestar300 merged 35 commits into
mainfrom
release/2.0.0

Conversation

@firestar300

@firestar300 firestar300 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Release 2.0.0


Note

Medium Risk
Major saved markup and editor behavior changes affect existing content validation and frontend tab semantics, though deprecated migrations and new E2E/PHPUnit coverage mitigate regressions.

Overview
2.0.0 is a major release that refreshes the tabs block editor/frontend behavior, bumps the minimum WordPress version to 6.4, and adds full automated test coverage in CI.

Block & accessibility: Saved markup moves role="tablist" to the nav <ul>, completes tab/panel ARIA (aria-selected, tabindex, active/hidden classes), and migrates the old parent title/aria-label into nav settings via deprecated save handlers. Shared Add/Remove tab tooling (TabsAddRemoveControls) syncs nav + panel pairs, fixes active index on delete, and adds a nav appender. Tab icons drop @beapi/icons in favor of configurable inner icon blocks (core/icon first) via PHP filter blockparty_tabs_allowed_icon_blocks and editor inline settings; a single icon per tab is enforced with templateLock="insert".

PHP & compatibility: KSES allowlists expand so saved tab attributes are not stripped for limited-capability users. A webpack react-jsx-runtime polyfill registers on WP < 6.6 so editor scripts load. GetSynchedID becomes a hook to avoid updates during render.

Tooling & release: PHPUnit, Jest, and Playwright suites run in new GitHub Actions workflows with isolated .wp-env.test.json (port 8889). Release checks move to tests/bin/check-release-version.sh (tag + version file consistency). Psalm is removed; bump scripts live under tests/bin/.

Reviewed by Cursor Bugbot for commit 4e3a19f. Bugbot is set up for automated code reviews on this repo. Configure here.

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

Stale Bugbot comment from a previous run.

Comment thread src/blockparty-tabs-panel-item/save.js
Comment thread src/blockparty-tabs-nav-item/getAllowedIconBlocks.js

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

Stale Bugbot comment from a previous run.

Comment thread src/blockparty-tabs-nav-item/save.js
firestar300 and others added 5 commits September 25, 2026 10:53
Add wp-env test setup, PHPUnit integration tests, Jest unit tests for
tabs behavior, Playwright editor and frontend specs, and GitHub workflows.
Extract TabsAutomatic for testability, drop Psalm, and stop versioning composer.lock.
Co-authored-by: Cursor <cursoragent@cursor.com>
Ship a react-jsx-runtime polyfill via webpack and assert its registration in PHPUnit. Detect iframed vs legacy editor canvas in Playwright so tabs blocks are found on WP 6.2 and newer cores.
test: add automated PHP, JS, and E2E suites with CI

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

Stale Bugbot comment from a previous run.

Comment thread src/blockparty-tabs-nav-item/getAllowedIconBlocks.js Outdated
Comment thread src/blockparty-tabs-nav/edit.js
Update the default allowed icon blocks to include `blockparty/icon` and `beapi/icon-block` alongside `core/icon`.

This improves backward compatibility for WordPress 6.2–6.8 installations using legacy icon plugins, reducing the need for custom filters. `core/icon` is preferred when available (WP 7.0+). The `blockparty_tabs_allowed_icon_blocks` filter now primarily replaces the default list.
This updates the minimum required WordPress version from 6.2 to 6.4.

This allows the block to leverage the `directInsert` feature on InnerBlocks, which improves block editor functionality. All related documentation, CI configurations, and test suites have been updated to reflect this new baseline.

@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 using default effort 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 4e3a19f. Configure here.

Comment thread src/blockparty-tabs-panel-item/block.json
@firestar300
firestar300 merged commit a367178 into main Sep 28, 2026
20 of 22 checks passed
@firestar300
firestar300 deleted the release/2.0.0 branch September 28, 2026 11:47
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.

3 participants