Automattic / wc-calypso-bridge

20 stars 4 forks source link

Fix the "Orders" menu position when using HPOS #1330

Closed xristos3490 closed 1 year ago

xristos3490 commented 1 year ago

Specification

This pull request aims to fix the Orders menu item in HPOS by repositioning the menu, highlighting it correctly, and re-adding the familiar bubble with the number of orders needing processing.

Closes #1326 , closes #1325

Validation

  1. Visit a WX site.
  2. Navigate to Settings > WooCommerce > Advanced > Features and ensure that HPOS is enabled; if not, enable it.
  3. Refresh the page and notice the "WooCommerce > Orders" menu item (along with a top-level "Orders" menu that points to the CPT.)
  4. Apply this patch.
  5. Notice that the "Orders" menu item appears on the top level.
  6. Navigate to "Orders > Orders" and "Orders > Add New" to ensure that the menu highlighting works as expected.
github-actions[bot] commented 1 year ago

Size Change: 0 B

Total Size: 196 kB

ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./build/53.js` | 1.05 kB | | `./build/index.css` | 883 B | | `./build/index.js` | 121 kB | | `./build/marketing.js` | 58 kB | | `./build/payment-gateway-suggestions.css` | 1.25 kB | | `./build/payment-gateway-suggestions.js` | 6.45 kB | | `./build/plugins.js` | 3.92 kB | | `./build/style-index.css` | 2 kB | | `./build/style-marketing.css` | 805 B |

compressed-size-action