Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Style Book: old versions of the Filter by Attribute, Stock and Price are displayed #8175

Closed
Aljullu opened this issue Jan 13, 2023 · 1 comment · Fixed by #8309
Closed

Style Book: old versions of the Filter by Attribute, Stock and Price are displayed #8175

Aljullu opened this issue Jan 13, 2023 · 1 comment · Fixed by #8309
Labels
block: filter by attribute Issues related to the Filter by Attribute block. type: bug The issue/PR concerns a confirmed bug.
Milestone

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Jan 13, 2023

To reproduce

  1. With WordPress 6.2 (or a previous version with GB installed) and a block theme like Twenty Twenty-Three enabled.
  2. Go to Appearance > Editor and edit a template.
  3. In the toolbar, select Styles (black and white circle) and then, Open Style Book (eye icon).
  4. Go to the WooCommerce tab.
  5. Notice the Filter by Attribute block displays an old version of the block with the option to Upgrade.

Filter by Attribute block in the Style Book

Expected behavior

The most recent version of Filter by Attribute should be displayed, so there the banner to 'upgrade' the block is not displayed.

@Aljullu Aljullu added type: bug The issue/PR concerns a confirmed bug. block: filter by attribute Issues related to the Filter by Attribute block. labels Jan 13, 2023
@Aljullu Aljullu added this to the 9.6.0 milestone Jan 13, 2023
@nefeline
Copy link
Contributor

By investigating #8178 it was possible to verify that the filter by attribute block is not the only one with this problem: in reality, we have the Attribute, Price and Stock Filters all with the same errors:

Screenshot 2023-01-23 at 02 15 50

Based on the changes introduced on #6978, these filter blocks were converted into parent blocks containing a core/heading block and the actual filter block, but the wrapper is not found when loaded in the context of the Style Book. The isInsideFilterWrapper const is always false while on Style Book, but not in the editor.

Style Book uses the existing BlockPreview component to display a preview of every registered block in an iframe per block.

It is still unclear what would cause such behavior, we will continue the investigation within the next few days and share updates as soon as we have them.

@nefeline nefeline changed the title Style Book: Filter by Attribute block displays an old version of the block Style Book: old versions of the Filter by Attribute, Stock and Price are displayed Jan 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: filter by attribute Issues related to the Filter by Attribute block. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
2 participants