-
Notifications
You must be signed in to change notification settings - Fork 219
Fix default stockStatusOptions
in tag and attribute blocks
#5590
Conversation
These should be an array of keys, not objects.
Size Change: -2.65 kB (0%) Total Size: 815 kB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality-wise, the PR works as expected.
Not directly related to this PR, but I noticed that we're using two different labels for the same functionality. Do you think it's worth to add this minor fix to this PR or shall I create a separate issue for that?
Stock level
|
Filter by stock status
|
@nielslange I changed that too, want to look again or good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for working on this fix!
* Fix default stockStatusOptions in tag and attribute blocks These should be an array of keys, not objects. * Fix stockStatus definition on PHP side * Swap state to debounce. * Improve presentation of stock filters * Remove state usage for display options * Remove debounce * Consistent panel titles
Sorry, @mikejolley. I missed your comment and @gigitux was too fast with merging. All good, though. Thanks for considering that change. 🙌 |
* Empty commit for release pull request * Update readme.txt with 6.8.0 changelog * initialize_session if it does not yet exist before calling the session class (#5577) * Add testing notes for 6.8.0 * update testing release notes * update testing notes * Fix default `stockStatusOptions` in tag and attribute blocks (#5590) * Fix default stockStatusOptions in tag and attribute blocks These should be an array of keys, not objects. * Fix stockStatus definition on PHP side * Swap state to debounce. * Improve presentation of stock filters * Remove state usage for display options * Remove debounce * Consistent panel titles * Fix global style for Product Summary block, Product Stock Indicator block, and Product Title block (#5595) * Fix global style for Product Summary block, Product Stock Indicator block, and ProductTitle block Fix global style for Product Summary block, Product Stock Indicator block, and ProductTitle block * add feature flag * fix lint errors * fix global style bugs on Product Title block * update testing release notes * update new build with fixes * Restore correct font style when the block is loaded in the editor (#5600) * Restore correct font style when the block is loaded in the editor Restore correct font style when the block is loaded in the editor * fix style on Twenty Twenty theme * update link for download the zip of the new release * update readme.txt * Bumping version strings to new version. Co-authored-by: github-actions <[email protected]> Co-authored-by: Luigi <[email protected]> Co-authored-by: Mike Jolley <[email protected]>
There is an issue with the default value of
stockStatusOptions
in theProducts by Attribute
andProducts by tag
blocks which causes a block error when using the stock filter.We need an array of keys, rather than objects. This PR fixes this.
Additionally, in testing we found some strange issues where preview state did not match selections. This is in part a UI issue but to improve this I've:
Testing
How to test the changes in this Pull Request:
Products by Attribute
blockstock status
control in the inspectorProducts by tag
For the blocks, also check:
cc @gigitux