Skip to content

Small Woo Builder Fixes#2878

Open
abaicus wants to merge 2 commits into
developmentfrom
fix/woo-builder
Open

Small Woo Builder Fixes#2878
abaicus wants to merge 2 commits into
developmentfrom
fix/woo-builder

Conversation

@abaicus

@abaicus abaicus commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Closes Codeinwp/otter-internals#286.

Summary

  • consistently use output buffering for rendering when necessary
  • update the Rating and Stock blocks to hide the placeholder for users not able to edit the products they show on

Screenshots


Test instructions

  • Enable the WooCommerce product builder on a product;
  • Add all the product-related blocks to the page;
  • The stock and rating blocks should not display anything unless the product has ratings OR stock set up OR the user has editing rights for the currently displayed product;
  • All blocks should still work as expected

Checklist before the final review

  • Included E2E or unit tests for the changes in this PR.
  • Visual elements are not affected by independent changes.
  • It is at least compatible with the minimum WordPress version.
  • It loads additional script in frontend only if it is required.
  • Does not impact the Core Web Vitals.
  • In case of deprecation, old blocks are safely migrated.
  • It is usable in Widgets and FSE.
  • Copy/Paste is working if the attributes are modified.
  • PR is following the best practices

…ing and Stock blocks to hide the placeholder for users not able to edit [#286]
@pirate-bot pirate-bot added the pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) label Jun 23, 2026
@pirate-bot

Copy link
Copy Markdown
Contributor

Bundle Size Diff

Package Old Size New Size Diff
Animations 178.27 KB 178.27 KB 0 B (0.00%)
Blocks 1.64 MB 1.64 MB 0 B (0.00%)
CSS 7.87 KB 7.87 KB 0 B (0.00%)
Dashboard 111.06 KB 111.06 KB 0 B (0.00%)
Onboarding 68.14 KB 68.14 KB 0 B (0.00%)
Export Import 4.7 KB 4.7 KB 0 B (0.00%)
Pro 328.43 KB 328.43 KB 0 B (0.00%)

@pirate-bot

pirate-bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Plugin build for 9178fe5 is ready 🛎️!

@pirate-bot

pirate-bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

E2E Tests

Playwright Test Status: See serial and parallel matrix jobs

Performance Results serverResponse: {"q25":407.9,"q50":421.85,"q75":439.3,"cnt":10}, firstPaint: {"q25":515.9,"q50":636.95,"q75":709.1,"cnt":10}, domContentLoaded: {"q25":3403.8,"q50":3443.7,"q75":3465.5,"cnt":10}, loaded: {"q25":3405.8,"q50":3445.9,"q75":3467.7,"cnt":10}, firstContentfulPaint: {"q25":3915.8,"q50":3960.45,"q75":3985.1,"cnt":10}, firstBlock: {"q25":13544.3,"q50":13640.8,"q75":13696.6,"cnt":10}, type: {"q25":23.03,"q50":23.8,"q75":24.96,"cnt":10}, typeWithoutInspector: {"q25":22.43,"q50":24.43,"q75":26.32,"cnt":10}, typeWithTopToolbar: {"q25":32.68,"q50":34.11,"q75":37.9,"cnt":10}, typeContainer: {"q25":14.01,"q50":14.86,"q75":15.39,"cnt":10}, focus: {"q25":118.84,"q50":125.2,"q75":125.62,"cnt":10}, inserterOpen: {"q25":37.75,"q50":38.4,"q75":39.77,"cnt":10}, inserterSearch: {"q25":13.24,"q50":13.86,"q75":14.29,"cnt":10}, inserterHover: {"q25":5.15,"q50":5.33,"q75":5.47,"cnt":20}, loadPatterns: {"q25":1471.7,"q50":1530.37,"q75":1563.2,"cnt":10}, listViewOpen: {"q25":218.93,"q50":230.22,"q75":240.69,"cnt":10}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants