Gan Eng Chin
7b068bf908
Code refactor for Campaigns card CSS.
2023-02-02 17:52:22 +08:00
Gan Eng Chin
c17f336acc
Code refactor for Campaigns card.
2023-02-02 17:47:42 +08:00
Gan Eng Chin
0abe368962
Display error state in Campaigns card.
2023-02-02 17:17:29 +08:00
Gan Eng Chin
743c0e5085
Set per_page to 100 for getCampaigns.
...
100 is the maximum limit allowed by the API.
We do this because the API does not return total number of rows, so we use 100 to get "all" rows, to support pagination in the UI.
2023-02-02 01:03:15 +08:00
Gan Eng Chin
183fc48132
Show CardFooter and Pagination only when it is needed.
...
This means when total is more than perPage.
2023-02-01 20:29:32 +08:00
Gan Eng Chin
eda6f194b9
Use perPage constant instead of literal 5.
2023-02-01 20:27:07 +08:00
Gan Eng Chin
274ea3dd60
Use Link component in Campaigns.
...
This allows fast client-side navigation.
2023-02-01 20:23:14 +08:00
Gan Eng Chin
29154425cb
Check description before rendering FlexItem.
...
This is to eliminate the unneeded flex gap when there is no description.
2023-02-01 20:17:53 +08:00
Gan Eng Chin
c342cbb98d
Change to color variable in Campaigns CSS.
2023-02-01 20:09:17 +08:00
Gan Eng Chin
cd7b5f2c96
Fetch and display campaigns with wp.data.
2023-02-01 19:02:03 +08:00
Gan Eng Chin
630bd0ab17
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
2023-02-01 00:52:48 +08:00
Gan Eng Chin
f050bb79b5
Rename Channel to RegisteredChannel.
...
This is for better clarity and consistency.
2023-02-01 00:52:35 +08:00
Gan Eng Chin
177fc59dea
Simplify rendering code in MarketingOverviewMultichannel.
2023-02-01 00:29:38 +08:00
Gan Eng Chin
3384ad576d
Remove unused import.
2023-02-01 00:20:04 +08:00
Gan Eng Chin
d69f7f00b7
Fix ids typescript error in Campaigns.
2023-02-01 00:18:53 +08:00
Gan Eng Chin
76102143ff
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
...
Conflicts:
plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-01-31 23:50:03 +08:00
Gan Eng Chin
d59e7e5721
Edit and arrange imports in MarketingOverviewMultichannel.
2023-01-31 23:39:02 +08:00
Gan Eng Chin
449da4e91c
Merge branch 'trunk' into feature/34906-marketing-channels-card
2023-01-29 01:29:31 +08:00
Gan Eng Chin
e700232415
Simplify Channels component.
2023-01-29 01:28:14 +08:00
Joel Thiessen
9be843422d
Fixing issue preventing import productes CES exit page from firing ( #36656 )
2023-01-27 12:14:59 -08:00
Joshua T Flowers
c12ae8033d
Tweak product link description and display ( #36591 )
...
* Tweak product link description and display
* Add changelog entry
* Fix up edit product link modal tests
* Update changelog entry
2023-01-27 10:59:39 -08:00
Gan Eng Chin
15200103cc
Simplify Channels CSS.
2023-01-28 01:16:31 +08:00
Barry Hughes
fffab243c1
Fix the filter "woocommerce_{order_type}_list_table_prepare_items_query_args" ( #36649 )
2023-01-27 09:16:25 -08:00
Gan Eng Chin
0eb318c1f5
Simplify and remove RecommendedChannels and RecommendedChannelsList components.
2023-01-28 01:12:36 +08:00
Joel Thiessen
79c596cbd0
Updating section and field product fills to support multiple slots ( #36592 )
2023-01-27 08:42:51 -08:00
Gan Eng Chin
14511ae4d6
Code refactor with SyncStatus and IssueStatus components.
2023-01-28 00:14:50 +08:00
Paul Sealock
c9b1d5af41
Fix/stable tag 7.3.0 ( #36627 )
...
* Update stable tag to 7.3.0
* changelog
2023-01-28 05:06:23 +13:00
Nathan Silveira
d5e2ae0474
Move clearQueue call to inside an useEffect ( #36626 )
...
* Move clearQueue call to inside an useEffect
That call was causing a React error (Cannot update a component while rendering a different component)
* Move queueForPage declaration to before it's use
2023-01-27 12:33:48 -03:00
barryhughes
1c31040892
Changelog.
2023-01-27 14:12:06 +00:00
Gan Eng Chin
49032b98db
Make data undefined on first load in useRecommendedChannels.
2023-01-27 21:38:38 +08:00
Nathan Silveira
f1981618ad
Update mySQL version in documentation to run PHP unit tests ( #36587 )
...
* Update README.md
Version 5.7.33 is not available for ARM Macs. I tested with version 8.0.32 and the tests work.
* Add changelog
2023-01-27 10:17:39 -03:00
Gan Eng Chin
316aad8b2e
Simplify RegisteredChannelCardBody CSS.
2023-01-27 21:15:40 +08:00
Vedanshu Jain
dead6d7060
Eliminate duplicate HPOS internal meta keys ( #36611 )
2023-01-27 15:12:29 +05:30
Grégory Viguier
c4428bfc6e
Prevented $order_query_args from being overwritten
...
The filter `woocommerce_order_list_table_prepare_items_query_args` was useless because its result was not used by the next filter.
2023-01-27 10:30:47 +01:00
Gan Eng Chin
0061e34a00
Code refactor on marketing components ( #36540 )
2023-01-27 16:00:35 +08:00
Sam Seay
341541964c
Update action dependencies to remove set-output and save-state warnings ( #36549 )
2023-01-27 20:26:54 +13:00
github-actions[bot]
18c0fe965e
Release: Remove 7.4 change files ( #36565 )
...
Delete changelog files from 7.4 release
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-01-26 16:48:25 -06:00
github-actions[bot]
8c459a7ab7
Prep trunk for 7.5 cycle ( #36566 )
...
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-01-26 16:48:14 -06:00
Matt Sherman
43a42eac27
Include CSS for experimental tree control ( #36517 )
...
* Add @wordpress/base-styles as dependency to @woocommerce/components
* Import experimental tree control styles
* Calc padding-left for tree item in CSS instead of JS
* Force resolution of 7.0.2 react and install base styles.
* Update lock file
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2023-01-26 14:45:14 -05:00
Luigi Teschio
18f609eade
Bump WooCommerce blocks package to 9.4.2 ( #36624 )
...
* bump WooCommerce blocks package to 9.4.1
* bump WooCommerce blocks package to 9.4.2
2023-01-26 18:57:43 +01:00
Gan Eng Chin
c2aad26473
Simplify CardHeaderTitle CSS.
...
- Use `@include font-size ( 20 )` to generate relative size in rem.
- Use unitless number value for line-height; this is the preferred way according to MDN.
- `font-weight` and `letter-spacing` are not needed.
The UI looks the same before and after this change.
2023-01-27 01:26:37 +08:00
Joshua T Flowers
dfe2780e6a
Add default value for backorders ( #36607 )
...
* Add default value for backorders
* Add changelog entry
2023-01-26 09:20:10 -08:00
Nathan Silveira
b7fd3d9e76
Move registerFill call to inside an useEffect ( #36623 )
...
That call was causing a React error (Cannot update a component while rendering a different component)
2023-01-26 13:59:52 -03:00
Willington Vega
7ef4fef53a
Fix dynamic property creation warning in `class-woocommerce.php` ( #36545 )
...
Declares $api as a public property to the WooCommerce class in order to avoid a deprecation warning that will eventually be an error in upcoming PHP versions.
2023-01-25 17:25:27 -08:00
Nathan Silveira
a274057a6e
Create PHP helper functions for adding new tabs ( #36583 )
...
* Update documentation on how to add a new field through FormFactory
* Add method to add_tab through FormFactory
* Update ProductForm definition and add Tabs
* Add changelog
* Add test to add_tab and get_tabs methods
* Add changelog for @woocommerce/data
* Add tabs to reducer actions and initial state
* Remove unused function
* Fix unit test
* Increment Tabs TypeScript definition
* Add required fields to Tab class and refactor to reduce lines of code
* Change from filter to action in doc example
* Update method documentation
* Add required fields to test
* Change productform_field test
* Fix form-factory unit test
* Update wrong comment
2023-01-25 18:21:41 -03:00
Ron Rennick
bf5adf19d2
add changelog
2023-01-25 16:23:01 -04:00
Ron Rennick
e2e28fed0b
reduce merged internal meta keys to unique list
2023-01-25 16:17:46 -04:00
Barry Hughes
a531f83b6d
[HPOS] Add HPOS support for the reserved stock query ( #36535 )
2023-01-24 18:29:18 -08:00
Corey McKrill
5d59e534da
ReserveStock: Switch to OrderUtil for detecting HPOS usage
2023-01-24 16:02:46 -08:00
louwie17
bcdf2518e6
Refactor product tabs and add product tab slot fills ( #36551 )
2023-01-24 15:37:21 -08:00