Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
64ea19b
Fix: Adjust Playwright E2E tests for WP 6.3 (#10516)
dinhtungdu Aug 10, 2023
7df7e87
Product Collection: Use Interactivity API for pagination (#10361)
imanish003 Aug 11, 2023
eb7af52
Store Customization > Add placeholder images for the Alternating Imag…
nefeline Aug 11, 2023
125ea95
Simplify code path and remove todo (#10526)
mikejolley Aug 11, 2023
ba835be
Create wc-all-block-styles chunk with all the styles for classic them…
gigitux Aug 11, 2023
bc6040c
Add the wc-blocks-header-pattern class identifier to header patterns.…
nefeline Aug 11, 2023
ff61af9
Fix the `on sale` badge for product blocks (#10550)
albarin Aug 11, 2023
08b726c
Product Gallery block: Fix incorrect icon color when block is selecte…
thealexandrelara Aug 11, 2023
aaa0af2
Release: 10.8.3 (#10547)
github-actions[bot] Aug 11, 2023
5762553
Merge branch 'release/10.8.0' of https://github.com/woocommerce/wooco…
gigitux Aug 11, 2023
d21ff66
Add the wc-blocks-footer-pattern class identifier to all patterns (#1…
nefeline Aug 14, 2023
4dd92c3
Fix express button display in the Cart block (#10534)
ralucaStan Aug 14, 2023
35483b3
Fix: warning with default archive templates when queryId is missing (…
dinhtungdu Aug 15, 2023
a876944
Convert shipping selection Checkout tests to playwright (#10532)
opr Aug 15, 2023
f3f6c9e
Update patch-initial-checklist.md
nielslange Aug 15, 2023
8ca9369
Update release-initial-checklist.md
nielslange Aug 15, 2023
911056a
Convert product tag control to functional component (#10529)
mikejolley Aug 15, 2023
ebdd71b
Better handling tests with global side effects (#10508)
dinhtungdu Aug 16, 2023
6a497ae
Open links from the Editor in the top frame, not editor iframe (#10515)
kmanijak Aug 16, 2023
5059c57
Add E2E tests for Product Collection with Compatibility Layer (#10540)
kmanijak Aug 16, 2023
0a7ef0a
Product-details: Add margin spacing controls (#10440)
roykho Aug 16, 2023
fcc7f4d
Release: 10.9.0
nielslange Aug 16, 2023
7849de8
Update versions to 11.0.0-dev
nielslange Aug 16, 2023
67299c0
Update WooCommerce Blocks brand assets (#10622)
tjcafferkey Aug 16, 2023
d048e33
fix missing use statment (#10592)
senadir Aug 16, 2023
5dce431
Remove `queryId` parameter from patterns (#10616)
albarin Aug 17, 2023
a6a4aab
Update to PR template (#10549)
tjcafferkey Aug 17, 2023
2154f80
Remove client side navigation from Products beta block (#10636)
imanish003 Aug 17, 2023
dd06afe
Fix "On sale" badge class (#10634)
albarin Aug 17, 2023
d57a1c5
Ensure the My Account text size matches other texts in the footer. (#…
nefeline Aug 17, 2023
421da61
Fix: sync_endpoint_with_page should use a matching slug if it exists …
mikejolley Aug 17, 2023
d4b3ee9
Testimonials Single Pattern > Update the image format and content wid…
nefeline Aug 17, 2023
de5c3e0
Add logic of Upgrade Notice after upgrading Products to Product Colle…
kmanijak Aug 18, 2023
10aa9c5
Product Gallery Large Image: Add E2E test (#10482)
danieldudzic Aug 18, 2023
2b67bd2
Load Interactivity API in `bootstrap.php` (#10657)
gigitux Aug 18, 2023
21ba128
Fix: Made migration migrate block templates in the current theme (#10…
mikejolley Aug 18, 2023
e7daa94
Fix icon color when block is selected in List View (#10652)
thealexandrelara Aug 18, 2023
6ed0eb1
Make View Cart link displayed below the Add to Cart button (#10675)
kmanijak Aug 21, 2023
da822f7
[Store Customization MVP] Create the new patterns dictionary (#10674)
albarin Aug 21, 2023
ac77781
Fix/10530 Inconsistent new install behaviour for templates when using…
wavvves Aug 21, 2023
6eecded
Update README.md
ralucaStan Aug 21, 2023
1d0af20
Product Gallery block: Fix 404 errors occurring on frontend (#10555)
thealexandrelara Aug 21, 2023
1208b42
Update testing notes for 10.9.1 & 10.9.2
imanish003 Aug 22, 2023
aa05de2
Update check-doc-links.yml
hritikchaudhary May 29, 2023
81f3a46
Update check-doc-links.yml
hritikchaudhary May 29, 2023
ee9789c
Update check-doc-links.yml
hritikchaudhary May 29, 2023
2bb7540
Update check-doc-links.yml
hritikchaudhary May 29, 2023
e0fc173
POC: Exclude releases folder from MD link check using “ignorePatterns”
nielslange Jul 12, 2023
8374ecb
Update check-doc-links.yml to use tcort/markdown-link-check
hritikchaudhary Aug 2, 2023
66db588
Update check-doc-links.yml to use existing config
hritikchaudhary Aug 2, 2023
e35b775
reverted check-doc-links-config.json
hritikchaudhary Aug 2, 2023
b5e55c5
fixed broken links
hritikchaudhary Aug 10, 2023
41f2fe4
fixed broken links and generated docs
hritikchaudhary Aug 16, 2023
552f936
updated docs
hritikchaudhary Aug 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/patch-initial-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The release pull request has been created! This checklist is a guide to follow f
- [ ] Run `npm ci`
- [ ] Run `npm run package-plugin:deploy`. This will create a zip of the current branch build locally.
- [ ] Create the testing notes for the release.
- [ ] For each pull request that belongs to the current release, grab the `User Facing Testing` notes from the PR's description.
- [ ] For each pull request that belongs to the current release, grab the `User Facing Testing` notes from the PR's description.
- If a PR has the `Should be tested by the development team exclusively` checkbox checked, create a new section called 'Testing notes for the development team' and copy the `User Facing Testing` notes from the PR to this section.
- If a PR has the `Experimental` checkbox checked, do not include it in the testing instructions.
- If a PR has the `Do not include in the Testing Notes` checkbox checked, as the description suggests, do not include it in the release instructions.
Expand Down Expand Up @@ -66,7 +66,7 @@ Each porter is responsible for testing the PRs that fall under the focus of thei

## After Deploy

- [ ] Port to `trunk` the changes to the changelog, testing steps and required versions that you did in the previous steps. You can do so copy-and-pasting the changes in a new commit directly to `trunk`, or cherry-picking the commits that introduced those changes.
- [ ] Move the changes to the changelog, testing steps and required versions that you did in the previous steps to `trunk`. You can do so copy-and-pasting the changes in a new commit directly to `trunk`, or cherry-picking the commits that introduced those changes.
- [ ] Update the schedules p2 with the shipped date for the release (PdToLP-K-p2).
- [ ] Edit the GitHub milestone of the release you just shipped and add the current date as the due date (this is used to track ship date as well).

Expand Down
72 changes: 32 additions & 40 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,58 @@
<!-- Start by describing the changes made in this Pull Request, and the reason for such changes. -->
<!-- Please do not remove any information from this pull request. Instead, add N/A or leave blank if not applicable -->

<!-- Reference any related issues or PRs here -->
## What

Fixes #

<!-- Don't forget to update the title with something descriptive. -->
<!-- If you can, add the appropriate labels -->
## Why

#### Accessibility
<!-- Describe the reason for your changes. This will help the reviewer and future readers get additional context -->

<!-- If you've changed or added any interactions, check off the appropriate items below. You can delete any that don't apply. Use this space to elaborate on anything if needed. -->

- [ ] I've tested using only a keyboard (no mouse)
- [ ] I've tested using a screen reader
- [ ] All animations respect [`prefers-reduced-motion`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion)
- [ ] All text has [at least a 4.5 color contrast with its background](https://webaim.org/resources/contrastchecker/)

#### Other Checks

- [ ] This PR has either a `[type]` label or a `[skip-changelog]` label.
- [ ] This PR adds/removes a feature flag & I've updated [this doc](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md).
- [ ] This PR adds/removes an experimental interfaces and I've updated [this doc](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md).
- [ ] I tagged two reviewers because this PR makes queries to the database or I think it might have some security impact.

### Screenshots

<!-- If your change has a visual component, add a screenshot here. A "before" screenshot would also be helpful. -->

| Before | After |
| ------ | ----- |
| | |

### Testing

#### Automated Tests
* [ ] Changes in this PR are covered by Automated Tests.
* [ ] Unit tests
* [ ] E2E tests

#### User Facing Testing
## Testing Instructions

<!-- Write these steps from the perspective of a "user" (merchant) familiar with WooCommerce. No need to spell out the steps for common setup scenarios (eg. "Create a product"), but do be specific about the thing being tested. Include screenshots demonstrating expectations where that will be helpful. -->

_Please consider any edge cases this change may have, and also other areas of the product this may impact._

1.
2.
3.

* [ ] Do not include in the Testing Notes <!-- Check this box if this PR can't be tested (ie: it makes changes to tests, coding standards, docblocks, etc.). -->
* [ ] Should be tested by the development team exclusively <!-- Check this box if this PR should be tested by the development team exclusively (ie: it doesn't include user-facing changes or it can't be tested without manually modifying the code). -->

### WooCommerce Visibility
## Screenshots or screencast

<!-- Any screenshots of UI changes will be helpful to include here. Leave blank if not applicable. -->

| Before | After |
| ------ | ----- |
| | |

<!-- Check this [this doc](../docs/blocks/feature-flags-and-experimental-interfaces.md) to see if the change is visible in WC core or not (part of the feature plugin or experimental)-->
## WooCommerce Visibility

<!-- Check this documentation link (../docs/blocks/feature-flags-and-experimental-interfaces.md) to see if the change is visible in WooCommerce core, part of the feature plugin, or experimental. -->
Required:

* [ ] WooCommerce Core
* [ ] Feature plugin
* [ ] Experimental
* [ ] N/A

## Checklist

### Performance Impact
Required:
* [ ] This PR has either a `[type]` label or a `[skip-changelog]` label.
* [ ] This PR is assigned to a milestone.

<!-- Please document any known performance impact (positive or negative) here. If negative, provide some rationale for why this is an okay tradeoff or how this will be addressed. -->
Conditional:
* [ ] This PR has a changelog description (if `[skip-changelog]` label is not present).
* [ ] This PR adds/removes a feature flag & I've updated [this doc](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md).
* [ ] This PR adds/removes an experimental interfaces, and I've updated [this doc](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md).
* [ ] This PR has been accessibility tested.
* [ ] This PR has had any necessary documentation added/updated.

### Changelog
## Changelog
<!-- Provide a brief, descriptive summary of the changes in this PR. Include potential impacts on different parts of the product. Example: "Updated the checkout process to streamline the experience for users and reduce the number of steps." -->

> Add suggested changelog entry here.
2 changes: 1 addition & 1 deletion .github/release-initial-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Each porter is responsible for testing the PRs that fall under the focus of thei

## After Workflow completes

- [ ] Port to `trunk` the changes to the changelog, testing steps and required versions that you did in the previous steps. You can do so copy-and-pasting the changes in a new commit directly to `trunk`, or cherry-picking the commits that introduced those changes.
- [ ] Move the changes to the changelog, testing steps and required versions that you did in the previous steps to `trunk`. You can do so copy-and-pasting the changes in a new commit directly to `trunk`, or cherry-picking the commits that introduced those changes.
- [ ] Run `npm run change-versions` to update the version in `trunk` to the next version of the plugin and include the `dev` suffix. For example, if you released 2.5.0, you should update the version in `trunk` to 2.6.0-dev.
- [ ] Update the schedules p2 with the shipped date for the release (PdToLP-K-p2).
- [ ] Edit the GitHub milestone of the release you just shipped and add the current date as the due date (this is used to track ship date as well).
Expand Down
35 changes: 20 additions & 15 deletions .github/workflows/check-doc-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,23 @@ concurrency:
permissions: {}

jobs:
markdown-link-check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'no'
config-file: '.github/workflows/check-doc-links-config.json'
folder-path: './docs'
file-path: './README.md'
max-depth: 3
base-branch: 'trunk'
markdown_link_check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install markdown-link-check
run: npm install -g markdown-link-check

- name: Run markdown-link-check
run: |
find ./docs -path ./docs/internal-developers/testing/releases -prune -o -name "*.md" -print0 | xargs -0 -n1 markdown-link-check -c .github/workflows/check-doc-links-config.json

1 change: 1 addition & 0 deletions .github/workflows/php-js-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ jobs:
env:
WOOCOMMERCE_BLOCKS_PHASE: 3
run: |
node ./bin/wp-env-with-wp-622.js
npm run wp-env start
npm run wp-env:config && npx cross-env NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js --listTests > ~/.jest-e2e-tests
npx cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config.js cross-env NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js --runInBand --runTestsByPath $( awk 'NR % 5 == ${{ matrix.part }} - 1' < ~/.jest-e2e-tests )
Expand Down
32 changes: 26 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,40 @@ on:
jobs:
PlaywrightE2ETests:

name: Playwright E2E tests
name: Playwright E2E tests - ${{ matrix.config.name }}
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
config: [
{ name: Normal, file: playwright.config.ts, resultPath: test-results },
{ name: SideEffects, file: playwright.side-effects.config.ts, resultPath: test-results-side-effects },
]
steps:

- uses: actions/checkout@v3

- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-modified-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-modified-build-${{ env.cache-name }}-
${{ runner.os }}-modified-build-
${{ runner.os }}-modified-

- name: Setup node version and npm cache
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install Node dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci

- name: Build Assets
Expand All @@ -37,7 +57,8 @@ jobs:
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
restore-keys: |
${{ runner.os }}-composer-

- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand All @@ -52,18 +73,17 @@ jobs:
- name: Install Playwright
run: npx playwright install --with-deps


- name: Load wp-env
run: npm run env:start

- name: Run Playwright tests
run: npm run test:e2e
run: npm run test:e2e -- --config=tests/e2e/${{ matrix.config.file }}

- uses: actions/upload-artifact@v3
if: ${{ failure() }}

with:
name: playwright-report
path: artifacts/test-results
name: playwright-report-${{ matrix.config.name }}
path: artifacts/${{ matrix.config.resultPath }}
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`

Binary file modified .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core": "WordPress/WordPress#6.2.2",
"core": null,
"plugins": [
"https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip",
"https://github.com/WP-API/Basic-Auth/archive/master.zip",
Expand Down
4 changes: 4 additions & 0 deletions assets/css/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

.wc-block-grid__product {
margin: 0 0 $gap-large 0;

.wc-block-grid__product-onsale {
position: absolute;
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
}
}
}
.wc-block-grid__product-onsale {
.wc-block-grid__product-image .wc-block-grid__product-onsale,
.wc-block-grid .wc-block-grid__product-onsale {
@include font-size(small);
padding: em($gap-smallest) em($gap-small);
display: inline-block;
Expand Down
1 change: 1 addition & 0 deletions assets/js/atomic/blocks/product-elements/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
white-space: normal;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
gap: $gap-small;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"version": "1.0.0",
"icon": "info",
"title": "Product Details",
"description": "Display a products description, attributes, and reviews.",
"description": "Display a product's description, attributes, and reviews.",
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"supports": {
"align": true
"align": true,
"spacing": {
"margin": true
}
},
"textdomain": "woo-gutenberg-products-block",
"apiVersion": 2,
Expand Down
2 changes: 2 additions & 0 deletions assets/js/blocks/attribute-filter/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ const Edit = ( {
href={ getAdminLink(
'edit.php?post_type=product&page=product_attributes'
) }
target="_top"
>
{ __( 'Add new attribute', 'woo-gutenberg-products-block' ) +
' ' }
Expand All @@ -361,6 +362,7 @@ const Edit = ( {
className="wc-block-attribute-filter__read_more_button"
isTertiary
href="https://docs.woocommerce.com/document/managing-product-taxonomies/"
target="_blank"
>
{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
</Button>
Expand Down
33 changes: 33 additions & 0 deletions assets/js/blocks/breadcrumbs/icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* External dependencies
*/
import { SVG, Rect } from '@wordpress/primitives';

export const queryPaginationIcon = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Rect
x="4"
y="10.5"
width="6"
height="3"
rx="1.5"
fill="currentColor"
/>
<Rect
x="12"
y="10.5"
width="3"
height="3"
rx="1.5"
fill="currentColor"
/>
<Rect
x="17"
y="10.5"
width="3"
height="3"
rx="1.5"
fill="currentColor"
/>
</SVG>
);
5 changes: 3 additions & 2 deletions assets/js/blocks/breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
*/
import { registerBlockType } from '@wordpress/blocks';
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
import { Icon, queryPagination } from '@wordpress/icons';
import { Icon } from '@wordpress/icons';

/**
* Internal dependencies
*/
import metadata from './block.json';
import edit from './edit';
import { queryPaginationIcon } from './icon';
import './style.scss';

const featurePluginSupport = {
Expand All @@ -32,7 +33,7 @@ registerBlockType( metadata, {
icon: {
src: (
<Icon
icon={ queryPagination }
icon={ queryPaginationIcon }
className="wc-block-editor-components-block-icon"
/>
),
Expand Down
Loading