Commit Graph

4732 Commits

Author SHA1 Message Date
Sam Seay 4d4d4ec49d Skip a test that is currently broken till we can find the cause. (https://github.com/woocommerce/woocommerce-admin/pull/6469) 2021-03-01 15:37:59 +13:00
Paul Sealock 101df3b019 Add Dependency Extraction Webpack Plugin (https://github.com/woocommerce/woocommerce-admin/pull/5762)
* Add woo flavored DEWP

* clean up webpack config

* clean

* marketing coupons

* onboarding scripts

* nav scripts

* better imports of deps

* add asset files to bundle

* under git rebase conflict error

* try order

* Add wp_set_script_translations to the scripting loop

* changelog
2021-03-01 12:48:52 +13:00
Joel Thiessen 66a5c3f42b Checking if navigation is in the process of being enabled while initializing (https://github.com/woocommerce/woocommerce-admin/pull/6462) 2021-02-26 15:12:45 -08:00
Adrian Duffell 2714ea04b1 Deprecate Onboarding::has_woocommerce_support (https://github.com/woocommerce/woocommerce-admin/pull/6401)
* Deprecate Onboarding::has_woocommerce_support

* Add changelog entry

* Add testing instructions

* Update testing instructions

* Fix typo
2021-02-26 18:11:17 +08:00
Adrian Duffell 151f6d127f Update broken links in help panel (https://github.com/woocommerce/woocommerce-admin/pull/6455)
* Update broken link anchors to online support

* Add changelog entry

* Move changelog entry to Unreleased
2021-02-26 14:12:47 +08:00
Adrian Duffell 63435dfa71 Bump Version to 2.2.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6417)
* Bump to version 2.2.0-dev

* Update changelog with 2.1.0 heading

* Revert "Bump to version 2.2.0-dev"

This reverts commit cc7d4b95ea3ccae140a5366cdd521ac8f35a3100.

* Bump to version 2.2.0-dev

This was performed using `npm run bump-version`

* Move recent changelog entries out of 2.1.0
2021-02-26 11:48:52 +08:00
louwie17 41585794eb Fix the onTransitionEnd callback (https://github.com/woocommerce/woocommerce-admin/pull/6432)
* Fix the onTransitionEnd callback

* Add refocus logic if container opened closed quickly and added tests
2021-02-25 08:56:00 -04:00
Bec Scott f5718e9b95 Correct the Klarna slug (https://github.com/woocommerce/woocommerce-admin/pull/6440)
* Correct the Klarna slug

* Test instructions and release note

* Update testing suggestions with @adrianduffel's suggestion

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-02-25 16:15:57 +10:00
renovate[bot] 1a67c4098b Update dependency @woocommerce/csv-export to v1.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/6438)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-25 16:38:02 +13:00
renovate[bot] e7994f549e Update dependency @woocommerce/number to v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/6439)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-25 16:37:41 +13:00
Sam Seay 42ed577632 Improve changelog linting automation (https://github.com/woocommerce/woocommerce-admin/pull/6443)
Don't run on renovate PRs and skip when an escape hatch is provided in PR description.
2021-02-25 13:19:04 +13:00
Joshua T Flowers d5bed6a878 Add navigation screen unit tests (https://github.com/woocommerce/woocommerce-admin/pull/6421) 2021-02-24 10:45:41 -05:00
Viktor Szépe 79957c1014 Refactor autoloader to remove global variable (https://github.com/woocommerce/woocommerce-admin/pull/6412)
* Remove 1 global from main file

* Add changelog to readme
2021-02-24 11:50:57 +08:00
renovate[bot] c9e7ad7dcf Update dependency @testing-library/react to v11.2.5 (https://github.com/woocommerce/woocommerce-admin/pull/6434)
* Update dependency @testing-library/react to v11.2.5
* Move the react testing library to dev deps in CES package.
2021-02-24 15:08:42 +13:00
renovate[bot] c794b745f0 Update dependency @testing-library/user-event to v12.7.3 (https://github.com/woocommerce/woocommerce-admin/pull/6436)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 15:08:01 +13:00
renovate[bot] 2a1565eb72 Update dependency lint-staged to v10.5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6437)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 15:07:39 +13:00
Sam Seay 7e4a2a6dc8 Add a changelog lint check and auto-labelling to PRs (https://github.com/woocommerce/woocommerce-admin/pull/6414) 2021-02-24 14:47:06 +13:00
renovate[bot] d66becd674 Update actions/setup-node action to v2.1.5 (https://github.com/woocommerce/woocommerce-admin/pull/6433)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 14:38:12 +13:00
Sam Seay 27989ec4f2 Update client and packages builds to use corejs 3 and latest wp babel preset (https://github.com/woocommerce/woocommerce-admin/pull/6411) 2021-02-24 14:24:22 +13:00
Hsing-Yu Flowers b1257c5b22 Move the shipping input and text 1px lower (https://github.com/woocommerce/woocommerce-admin/pull/6408)
* Move the shipping input and text 1px lower

* Add changelog

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2021-02-24 09:14:53 +08:00
louwie17 6e8106e93a Update/6324 test instructions (https://github.com/woocommerce/woocommerce-admin/pull/6422)
* Updated test instructions for email notes

* Fix formatting

* Correctly nest list instructions
2021-02-23 11:34:12 -04:00
Rasmy Nguyen c9e7b53d46 Add tracks event for WooCommerce Payments install via tasklist and inbox note (https://github.com/woocommerce/woocommerce-admin/pull/6285)
This adds a tracks event fired after WooCommerce Payments is installed
via the tasklist or inbox note.
2021-02-23 19:56:20 +09:00
Paul Sealock 5c2402e6f3 Navigation: Reset submenu before making Flyout (https://github.com/woocommerce/woocommerce-admin/pull/6396)
* reset flyout before adding things

* instructions and changelog
2021-02-23 13:09:59 +13:00
Adrian Duffell da1afbc669 Update testing instructions for 2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/6410) 2021-02-23 07:18:48 +08:00
Adrian Duffell 122418436b Add missing changelog entries for 2.1 release (https://github.com/woocommerce/woocommerce-admin/pull/6403) 2021-02-23 06:55:35 +08:00
Joshua T Flowers a8757648a1 Refactor menu item mapping and sorting (https://github.com/woocommerce/woocommerce-admin/pull/6382)
* Separate primary and secondary menu components

* Simplify category mapping

* Map categories and items simultaneously to improve performance

* Sort added menu items

* Pre-sort menu items

* Create single mapped sorting on server-side

* Fix incorrect menu ID references

* Update tests

* Move methods to utils file

* Add in permissions check in client nav

* Fix server-side capability check

* Fix duplicate expectation and test name

* Add testing instructions
2021-02-22 13:54:27 -05:00
Joshua T Flowers 8e9c60b0b0 Add navigation intro modal (https://github.com/woocommerce/woocommerce-admin/pull/6367)
* Add initial intro modal

* Hide modal on dismissal

* Add modal styling

* Add modal page content

* Update styles to match Figma designs

* Replace video with gifs

* Check if user is opted in to satisfy gdpr concerns

* Add testing instructions and changelog notes

* Handle PR feedback

* Handle responsiveness

* Dismiss modal when welcome modal is shown simultaneously

* Update shared modal option constants
2021-02-22 13:40:44 -05:00
Hsing-Yu Flowers de61194cc0 Apply responsive header style to all pages (https://github.com/woocommerce/woocommerce-admin/pull/6292) 2021-02-22 13:08:43 +08:00
Hsing-Yu Flowers aa0f825548 Hide modal tooltip until upstream bugs are fixed (https://github.com/woocommerce/woocommerce-admin/pull/6142)
* Hide tooltip in welcome modal

* Add todo comment

* Apply fix tooltips to all modals
2021-02-22 11:37:11 +08:00
Ilyas Foo 168b1a17b1 Add CES track settings tab on updating settings (https://github.com/woocommerce/woocommerce-admin/pull/6368)
* Add settings_area prop to CES settings track

* Update readme and testing instructions

* Update comments

* Add test

* Fix testing instructions
2021-02-22 10:09:45 +08:00
David Levin f485ebf3de Update single column home screen width to 680px (https://github.com/woocommerce/woocommerce-admin/pull/6297) 2021-02-22 09:10:39 +08:00
Hsing-Yu Flowers 0085340078 Update overflow visible on card media (https://github.com/woocommerce/woocommerce-admin/pull/6375)
* Update overflow visible on card media

* Remove overflow visible

* Update recommended ribbon as Card component child
2021-02-22 09:05:13 +08:00
Elizabeth Pizzuti 38bc814409 Order and styles updates to nav footer (https://github.com/woocommerce/woocommerce-admin/pull/6373)
* nav-footer-styles

* nav-footer-styles
2021-02-22 09:04:14 +08:00
Fernando 7d53737a12 Email notes now are turned off by default (https://github.com/woocommerce/woocommerce-admin/pull/6324)
* Email notes now are turned off by default

This commit turns off the email notes by default

* Added readme.txt

* Added testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-19 12:32:06 -03:00
Fernando 6d7f6dcbd6 Removed @woocommerce/components/card from OBW (https://github.com/woocommerce/woocommerce-admin/pull/6374)
* Removed @woocommerce/components/card from OBW

This commit removes the "@woocommerce/components/card" from the step "Business Details" in the OBW.

* Added readme.txt line

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-19 11:20:16 -03:00
Joshua T Flowers 9c5aa6d318 Move capability checks to client (https://github.com/woocommerce/woocommerce-admin/pull/6365)
* Move user data store folder

* Add user capability check hook

* Don't limit script loading by user capability

* Convert ActivityPanel to functional component

* Update ActivityPanel to use useSelect

* Check that a user can manage woocommerce for the store setup tab

* Add capabilities to pages

* Add testing instructions
2021-02-19 08:57:17 -05:00
Joshua T Flowers 851dac281c Add filter to allow the wp toolbar in navigation (https://github.com/woocommerce/woocommerce-admin/pull/6371)
* Add class to determine styling for disabled wp toolbar

* Use disabled toolbar class in onboarding setup wizard

* Add changelog and readme notes for filter
2021-02-19 08:20:32 -05:00
Bec Scott e47ee020a8 Add missing testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/6378) 2021-02-19 13:10:56 +08:00
Paul Sealock 993e236ce0 Update Minimum version in docs and test configs (https://github.com/woocommerce/woocommerce-admin/pull/6342)
* update min version in docs and tests

* update woocommerce-admin.php

* update docker versions

* one more 5.3

* Docker image: back to min versions

* fix main file's min PHP to 7.0, same as Woo Core and readme.txt

* docs/readme

* get_dependency_errors
2021-02-19 11:22:56 +13:00
louwie17 58503834f7 Enqueue beta features scripts on enqueue_scripts action instead of filter (https://github.com/woocommerce/woocommerce-admin/pull/6358)
* Change filter callback to enqueue_scripts action to safely enqueue scripts

* Add changelog

* Only load beta modal JS on advanced features settings tab
2021-02-18 16:38:58 -04:00
Paul Sealock 3483f1930e Navigation: Add test to container component (https://github.com/woocommerce/woocommerce-admin/pull/6344)
* getCategoriesMap

* getMenuItemsByCategory

* changelog
2021-02-18 13:06:28 -05:00
Joshua T Flowers 8371325ba6 Fix empty nav menu (https://github.com/woocommerce/woocommerce-admin/pull/6366) 2021-02-18 12:27:04 -05:00
Paul Sealock 589283f652 Override wpbody styles when nav present (https://github.com/woocommerce/woocommerce-admin/pull/6354)
* Override wpbody styles when nav present

* Use negative margin only when toolbar exists

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-02-18 10:02:30 -05:00
Hsing-Yu Flowers 00676f12b5 Check if tax was successfully added before displaying notice (https://github.com/woocommerce/woocommerce-admin/pull/6229)
* Check if tax was successfully added before notice

* Handle PR feedback

* Handle PR feedback-2

* Fix rebase
2021-02-18 12:27:32 +08:00
Hsing-Yu Flowers 2ae0168705 Update timing of InboxPanel state changes for the unread indicator (https://github.com/woocommerce/woocommerce-admin/pull/6246) 2021-02-18 11:45:43 +08:00
Adrian Duffell 82d0f04451 Refactor test:php npm script with a post hook (https://github.com/woocommerce/woocommerce-admin/pull/6356)
Fixes a bug where paramaters could not be passed to the phpunit command
2021-02-18 09:06:54 +08:00
Jorge A. Torres f8d96f1b50 Set `is_deleted` from the database when instantiating a `Note` (https://github.com/woocommerce/woocommerce-admin/pull/6322) 2021-02-18 13:37:34 +13:00
Paul Sealock c9c843a1fb turn off settings by default (https://github.com/woocommerce/woocommerce-admin/pull/6348) 2021-02-18 12:19:39 +13:00
Sam Seay 5354e4e856 Remove googlefonts/material icons. Migrate to @wordpress/icons and gridicons (https://github.com/woocommerce/woocommerce-admin/pull/6343) 2021-02-18 11:54:02 +13:00
Joshua T Flowers bf3ed5ad87 Add the favorites tooltip to the navigation (https://github.com/woocommerce/woocommerce-admin/pull/6312)
* Add tooltip to plugin category titles

* Add useAnchor

* Hide tooltips if previously shown

* Refactor tooltip and favorite button to separate components

* Check if favorites resolved before showing button

* Update favorites tooltip option name

* Handle rebase changes

* Don't show tooltip when nav is folded
2021-02-17 09:29:28 -05:00
Bec Scott d32d88d43c Remove CES actions for adding and editing a product and editing an order (https://github.com/woocommerce/woocommerce-admin/pull/6355)
* Remove CES survey for editing a product

* Remove CES survey for adding a product

* Remove CES survey for editing an order

* Add testing instructions

* add to release notes
2021-02-17 20:37:10 +10:00
Tomek Wytrębowicz dc20f0baf0 Fix Markdown formatting in page-controller.md (https://github.com/woocommerce/woocommerce-admin/pull/6347) 2021-02-17 14:07:54 +13:00
Sam Seay 4649817d9e Implement the PayU payment task and fix a bug (https://github.com/woocommerce/woocommerce-admin/pull/6332)
Fixes woocommerce/woocommerce-admin#6172

This adds the PayU plugin as a payment task option. Based on the requirements, we've opted for this just to be a simple task that installs the plugin and lets the user configure the plugin later via it's settings screen.
2021-02-17 10:08:35 +13:00
Hsing-Yu Flowers 1fc78d93c9 Refactor panel with withFocusOutside (https://github.com/woocommerce/woocommerce-admin/pull/6233)
* Refactor panel with withFocusOutside

* Remove react-click-outside dependency

* Handle PR feedback

* Handle PR feedback-2
2021-02-16 15:01:11 -05:00
Joshua T Flowers 452494a4fe Move favorited menu items to primary menu (https://github.com/woocommerce/woocommerce-admin/pull/6290)
* Update menu ID when favoriting an item

* Allow favorites to be included alongside the primary menu items

* Add categories to favorites menu server-side

* Don't reset menu state when active item is the same

* Make sure favorites are finished resolving before showing
2021-02-16 11:12:25 -05:00
Joshua T Flowers 8629318f46 Use box sizing and padding to fix nav and admin menu styling (https://github.com/woocommerce/woocommerce-admin/pull/6335)
* Use box sizing and padding to fix nav and admin menu styling

* Move wpbody fixes to reset

* Move default header padding to reset
2021-02-16 10:57:56 -05:00
Bruno Ribarić 65f859a5e5 Update inline documentation for navigation Screen class (https://github.com/woocommerce/woocommerce-admin/pull/6173) 2021-02-16 14:10:18 +08:00
Joshua T Flowers a93a5def94 Remove categories without menu items (https://github.com/woocommerce/woocommerce-admin/pull/6329)
* Hide menu categories with no items

* Remove capabilities on categories

* Remove remaining references to category capabilities
2021-02-15 16:33:51 -05:00
Timmy Crawford ebd9b5bb8e Add all feature labels to stalebot exclusion list. (https://github.com/woocommerce/woocommerce-admin/pull/6318) 2021-02-15 11:53:50 -08:00
renovate[bot] 85292b6b19 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6338)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-15 18:17:12 +13:00
Bec Scott e7c533e51b Shell script to release a tagged version to wordpress.org (https://github.com/woocommerce/woocommerce-admin/pull/5236)
* Shell script to release a tagged version to wordpress.org

* Fix prompt URL

* Add step to tag the release
2021-02-15 11:12:33 +10:00
Paul Sealock 07c4404f16 add settings and bump version (https://github.com/woocommerce/woocommerce-admin/pull/6331) 2021-02-15 10:44:46 +13:00
Joshua T Flowers 2780129bad Redirect core settings pages when settings feature is enabled (https://github.com/woocommerce/woocommerce-admin/pull/6091) 2021-02-12 16:58:26 -05:00
Joshua T Flowers 80f5532543 Fix navigation priority settings conflict (https://github.com/woocommerce/woocommerce-admin/pull/6336)
* Remove the late addition of the core items for the navigation

* Add fallbacks in case the nav is not detected server-side

* Check if ref is set before resizing
2021-02-12 16:42:04 -05:00
Joshua T Flowers d4d0eb8870 Add settings client pages and plumbing (https://github.com/woocommerce/woocommerce-admin/pull/6092)
* Move wc-admin-settings folder

* Add the settings container

* Add settings client
2021-02-12 14:32:42 -05:00
Joshua T Flowers 4bbf3c3dc0 Try: Add the settings feature and pages (https://github.com/woocommerce/woocommerce-admin/pull/6089)
* Add settings pages

* Replace the original settings page in the wp menu

* Add the settings feature toggle

* Get core items at later priority to allow registering all settings
2021-02-12 13:46:29 -05:00
Joshua T Flowers 683f8adf33 Add favoriting extensions client UI (https://github.com/woocommerce/woocommerce-admin/pull/6287)
* Add category title component

* Add category title styling

* Record tracks event when toggling favorite

* Fix aria labels

* Fix colors for favorite button

* Use CategoryTitle for secondary nav menu
2021-02-12 11:51:02 -05:00
Joshua T Flowers baaaf39bf0 Try: Refactor head and body heights (https://github.com/woocommerce/woocommerce-admin/pull/6247)
* Move navigation to WC header

* Remove wp toolbar class

* Set body margin on header change

* Fix up layout margins

* Remove excess padding on mobile

* Fix navigation preload styles and embed

* Fix preloading space due to adminbar missing

* Remove embed padding on wrap

* Fix body display for wpadmin menu

* Fix up wpadminbar reset padding

* Remove body padding on full screen layouts

* Fix mobile admin bar height on full screen

* Clean up body margin on unmount

* Center the activity panel (https://github.com/woocommerce/woocommerce-admin/pull/6289)

* Center the activity panel

* Handle PR feedback

* Fix up secondary nav group style changes

* Remove screen reader style changes

* Debounce resize event

* Make responsive button selector more specific

Co-authored-by: Hsing-Yu Flowers <hsingyuc.7@gmail.com>
2021-02-12 11:32:26 -05:00
Paul Sealock d8304f6a25 bump min WP version to 5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6330) 2021-02-12 15:31:44 +13:00
Timmy Crawford 5957a9ab9f Build: Update Jetpack Autoloader dependency. (https://github.com/woocommerce/woocommerce-admin/pull/6325) 2021-02-12 13:23:19 +13:00
Joshua T Flowers 6f596a2dfc Fix removal of core settings pages (https://github.com/woocommerce/woocommerce-admin/pull/6328)
* Hide submenu items instead of removing

* Update priorities for menu item migration
2021-02-12 13:20:39 +13:00
Bec Scott 1ada698dfb Bump versions (https://github.com/woocommerce/woocommerce-admin/pull/6321) 2021-02-12 06:49:48 +13:00
Sam Seay ad1fc4fa1e Fix a bug where the incorrect index was set for alerts. (https://github.com/woocommerce/woocommerce-admin/pull/6320) 2021-02-11 09:34:54 -04:00
Paul Sealock 49eeaaf771 Navigation: Migrate methods to `admin_menu` hook (https://github.com/woocommerce/woocommerce-admin/pull/6319)
* change admin_head to admin_menu

* Update comment to better document why priority is being set on admin_menu

* Add conditional check for 5.1

* save

* working?

* fixup

* migrate flyout creation

* add comment

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-02-11 16:41:10 +10:00
Matt Sherman b978362a7c Move admin menu manipulation from admin_head to admin_menu (https://github.com/woocommerce/woocommerce-admin/pull/6310)
* change admin_head to admin_menu

* Update comment to better document why priority is being set on admin_menu

* Add conditional check for 5.1

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-02-11 16:35:42 +10:00
Elizabeth Pizzuti bc5c6a700b Updated copy in task lists (https://github.com/woocommerce/woocommerce-admin/pull/6298) 2021-02-11 12:57:51 +13:00
Hsing-Yu Flowers d61cb9faf3 Change `siteUrl` to `homeUrl` on navigation site title (https://github.com/woocommerce/woocommerce-admin/pull/6240)
* Get home url

* Change siteUrl to homeUrl
2021-02-11 11:03:47 +13:00
renovate[bot] 8c9235096c Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/6013)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2021-02-11 10:52:39 +13:00
louwie17 ea0c6d704e Update highlight tooltip to make use of anchor logic (https://github.com/woocommerce/woocommerce-admin/pull/6309)
* Update highlight tooltip to make use of anchor logic

* Add changelog

* Make sure the extra parent is removed as well

* Small refactor to update anchor rect later on, incase items are still rendering
2021-02-10 16:28:33 -04:00
Joshua T Flowers cb03659dbd Add navigation favorites data store (https://github.com/woocommerce/woocommerce-admin/pull/6275)
* Add favorites data methods

* Add reducer tests

* Refactor actions to be more event based

* Add favorites resolver

* Fix requesting property for addFavorite

* Fix up misnamed types and missing yields

* Update nav data store to work with REST endpoints

* Remove errant addFavoriteSuccess call
2021-02-10 15:26:11 -05:00
louwie17 8bc7863c71 Show management links when main task list is hidden (https://github.com/woocommerce/woocommerce-admin/pull/6291)
* Show management links when main task list is hidden, and add test

* Add changelog
2021-02-10 13:30:29 +10:00
renovate[bot] 0a3d5404bb chore(deps): update dependency @automattic/color-studio to v2.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/6301)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:47:03 +13:00
renovate[bot] d9a382c528 chore(deps): update dependency @octokit/graphql to v4.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/6302)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:46:34 +13:00
renovate[bot] 6a137b7bf1 chore(deps): update dependency @storybook/addon-console to v1.2.3 (https://github.com/woocommerce/woocommerce-admin/pull/6303)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:46:13 +13:00
renovate[bot] 3288126a82 chore(deps): update dependency @testing-library/user-event to v12.6.3 (https://github.com/woocommerce/woocommerce-admin/pull/6304)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:45:55 +13:00
renovate[bot] 0b4ffe1def chore(deps): update dependency autoprefixer to v10.2.4 (https://github.com/woocommerce/woocommerce-admin/pull/6305)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:45:39 +13:00
Joel Thiessen fda46f9920 Adding Navigation Favorites REST API Endpoints (https://github.com/woocommerce/woocommerce-admin/pull/6282) 2021-02-09 18:35:47 -08:00
Darren Ethier 4cd14f5137 Fixes for @woocommerce/dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/6295)
* switch block-settings alias to settings and fix mapped external

* don’t force compilation of externals to `this` scope.

* update various meta data in package related files (changelog etc)

* update starter pack

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-02-10 12:55:38 +13:00
Moon 84089c42fc Add a new note with a link to the downloadable product doc (https://github.com/woocommerce/woocommerce-admin/pull/6277) 2021-02-09 12:33:04 -08:00
Sam Seay 3ccf825e16 Adjust the timing of the Marketing.php note to 5 days. (https://github.com/woocommerce/woocommerce-admin/pull/6083) 2021-02-10 08:56:13 +13:00
louwie17 3d330bcee3 Fix the react state update error on homescreen (https://github.com/woocommerce/woocommerce-admin/pull/6286)
* Fix the react state update error on homescreen

* Fix note store dependency

* Update package lock file

* Add tests, and revert package-lock

* Add transient notices tests, and address PR feedback
2021-02-09 11:19:43 -04:00
louwie17 255457c394 Make sure that industry is defined before running some method (https://github.com/woocommerce/woocommerce-admin/pull/6281) 2021-02-09 08:37:27 -04:00
Paul Sealock 12e9cbe8c8 migrate_core_child_items: be sure to return (https://github.com/woocommerce/woocommerce-admin/pull/6294) 2021-02-09 17:26:06 +13:00
Paul Sealock 5871e9e9d2 Dependency Extraction Webpack Plugin: bump version to 1.2 (https://github.com/woocommerce/woocommerce-admin/pull/6268)
* bump DEWP to 1.2

* reference PR number
2021-02-09 15:20:54 +13:00
Paul Sealock 078b4efa3c Navigation: Add temp override to fix Gutenberg item CSS (https://github.com/woocommerce/woocommerce-admin/pull/6254)
* override Nav item styles

* use hex colors
2021-02-09 14:39:03 +13:00
renovate[bot] 92b27523c5 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6284)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-09 13:57:52 +13:00
renovate[bot] 999549da3c Update dependency core-js to v3.8.3 (https://github.com/woocommerce/woocommerce-admin/pull/6105)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-09 13:56:20 +13:00
Adrian Duffell b690b37910 Add WordPress version selection to Docker PHP test suite (https://github.com/woocommerce/woocommerce-admin/pull/6245)
* Add WordPress version selection to Docker PHP test suite

* Remove guard for old WordPress version

It was producing an error message when valid versions like “5.3” are selected:

bin/install-wp-tests.sh: line 22: [: 5.3: integer expression expected

I removed it since disallowing older versions doesn't really add any value now.

* Bump image version to trigger rebuild

* Fix existing WordPress version not being replaced

The install-wp-tests.sh script does not install WordPress if a previous installation is detected.

To enable WP version switching, the ENTRYPOINT removes previous files to ensure the installation starts from a clean state.

* Partially revert abd8ab80dc7ef6b57316636d467b511a07d0c5d3

The typo fix was accidentally included in this commit.

* Fix installation routine running every time

A typo was causing the installation routine to run on each use.
2021-02-09 06:33:01 +08:00
Joshua T Flowers e27d5127b8 Separate secondary items into separate menu in navigation (https://github.com/woocommerce/woocommerce-admin/pull/6253)
* Convert navigation to grid

* Include back button in primary menu

* Update secondary menu keys

* Use array instead of fragment to avoid unique key
2021-02-08 15:41:08 -05:00
Joel Thiessen c6851f9082 Adding Favorites API Class to Navigation Feature (https://github.com/woocommerce/woocommerce-admin/pull/6270) 2021-02-08 09:22:26 -08:00
louwie17 e7c0d0b8b1 Add paypal commerce obw integration (https://github.com/woocommerce/woocommerce-admin/pull/6261)
* Initial paypal plugin name replacement

* Add necessary fields for the Paypal plugin

* Updated payment methods info to use new options key

* Add most of the OBW paypal integration

* Some old code cleanup

* Get ready for the dynamic onboarding addition.

* Update paypal onboarding, adding script after plugin enabled

* Revert some old changes

* Check if plugin is enabled correctly

* Allow for manual input as a fallback

* Fix unit tests and alter the config updates

* Update plugin to use latest rest endpoint instead :)

* Add comment

* Fix some naming from PR feedback

* Made use of the payment gateway info from tasks/status, and show 500 error message

* Add support for the status and set credential endpoints

* Set the enabled value in ppcp-settings as well

* Added fall back for the 'get-status' method

* Fix issue where I was overwriting the options :/

* Small fix for when updating items manually

* Add changelog

* Remove old tests

* Add testing instructions
2021-02-06 09:41:26 +10:00
Hsing-Yu Flowers db0552e714 Change from MenuGroup to label (https://github.com/woocommerce/woocommerce-admin/pull/6090)
* Change from MenuGroup to label

* Remove icon

* Remove icon folder

* Update input style

* Remove list message

* Run test snapshots

* Add single knob

* Add changelog

* Change to wrap list with ul

* Run snapshots test

* Add styling on li

* Move renderList outside of li to prevent nesting

* snapshots test
2021-02-05 13:24:34 -03:00
renovate[bot] d7e81ffac8 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6236)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-05 10:14:47 -03:00
Sam Seay 6847c44869 Add the Mollie payment provider setup task (https://github.com/woocommerce/woocommerce-admin/pull/6257)
* Whitelist the mollie plugin and ensure it does not crash on activation.

* Improve error messages for failed plugin installs.

* Add the payment provider screen for the Mollie payment provider.

* Revert change to try/catch activation, its not needed.

* Move the whitelist of mollie to Onboarding.php.

* Add api fetch to dep list of components, update the node setup workflow on gh actions.

* Pass indsutry to the klarna tests to avoid a crash.

* Add some tests for the mollie payment method.

* Remove redundant change to handler.

* Add a changelog entry for the feature.

* fix name of option

* Add testing instructions

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-02-05 13:41:55 +10:00
Joshua T Flowers eabcb877c4 Skip extensions in navigation flyout menu (https://github.com/woocommerce/woocommerce-admin/pull/6278)
* Skip extensions in navigation flyout menu

* Check if menuId is set
2021-02-04 21:04:16 -05:00
Bec Scott 50304d683c Add/testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/6256)
* Add testing instructions

* test instructions for woocommerce/woocommerce-admin#5868

* test instructions for woocommerce/woocommerce-admin#6086

* testing instructions for woocommerce/woocommerce-admin#6094

* testing instructions for woocommerce/woocommerce-admin#5892

* testing instructions for woocommerce/woocommerce-admin#6122

* drop trailing line

* Add test instructions instruction to pull request template
2021-02-05 09:34:18 +10:00
louwie17 656eea0706 Skip intermittent failing test (https://github.com/woocommerce/woocommerce-admin/pull/6273) 2021-02-04 17:56:07 -04:00
Fernando 601c177b19 Onboarding - Fixed "Business Details" error (https://github.com/woocommerce/woocommerce-admin/pull/6271)
* Added initial value to `savedValues`

This commit adds an initial value to `savedValues` in the "Business Details" step in the OBW

* Added readme.txt line

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-04 16:40:58 -03:00
Joshua T Flowers 816b68eb83 Add WooCommerce flyout menu (https://github.com/woocommerce/woocommerce-admin/pull/6165)
* Unhide the submenu

* Add method to get items by category

* Add flyout menu items

* Sort items by menu ID

* Allow marketplace in flyout menu

* Remove unused styles on non-wc pages
2021-02-04 11:20:35 -05:00
Fernando 6ed6d278d1 Added line to readme.txt (https://github.com/woocommerce/woocommerce-admin/pull/6259)
This commit adds the extended task list refactor to the unreleased list in readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-04 09:59:46 -03:00
Ilyas Foo e44835aa41 Refactor WCA plugin version check to run on 'woocommerce_init' hook (https://github.com/woocommerce/woocommerce-admin/pull/6217) 2021-02-04 17:24:05 +08:00
Paul Sealock 88d72c88cd Dependency Extraction Webpack Plugin: Add Woo Blocks packages (https://github.com/woocommerce/woocommerce-admin/pull/6228)
* Hard code package names and alias block-settings

* instructions

* update readme

* block to blocks

* plural blocks

* just wcSettings, not wc.wcSettings
2021-02-04 17:43:24 +13:00
Joshua T Flowers ed2b597ef3 Add settings menu items on non-settings pages (https://github.com/woocommerce/woocommerce-admin/pull/6238) 2021-02-03 16:10:54 -05:00
Fernando 3ffc2c32ec Fixed the Add First Product email note checks (https://github.com/woocommerce/woocommerce-admin/pull/6260)
* Added extra filters to note

This commit adds extra filters to email note.

* Fixed note image and css

This commit fixes a few things related to the note image, css and some checks

* Fixed css and note image replaced

* Added readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-03 17:15:43 -03:00
Hsing-Yu Flowers 600c91a2cc Check current user's install plugin capability before rendering (https://github.com/woocommerce/woocommerce-admin/pull/6167)
* Use get_userdata instead REST API

* Check current user's install plugin capability before rendering

* Retrieve user data via the REST API
2021-02-03 14:19:15 -03:00
Hsing-Yu Flowers 13da8d5601 Fix overlapping mobile app banner and WooCommerce button (https://github.com/woocommerce/woocommerce-admin/pull/6198) 2021-02-03 20:46:19 +08:00
Joel Thiessen 68f06ccde8 Fixing certain screenreaders (NVDA) not recognizing chart data points correctly, and saying "blank" (https://github.com/woocommerce/woocommerce-admin/pull/6227) 2021-02-02 15:27:23 -08:00
Joel Thiessen 2e3f23f653 Fix 'sort by undefined' issue with screen readers in reports table (https://github.com/woocommerce/woocommerce-admin/pull/6232) 2021-02-02 15:02:57 -08:00
Joel Thiessen bb446c8543 Adding text content to new navigation toggle & chart period select for screen-reader visibility (https://github.com/woocommerce/woocommerce-admin/pull/6224) 2021-02-01 16:43:37 -08:00
John Coy 58a2cd036e Fix typo in README (https://github.com/woocommerce/woocommerce-admin/pull/6183)
Corrected WordPress spelling.
2021-02-02 08:25:14 +08:00
Joel Thiessen 969af77ced Changing heading on report tables to use semantic header tag (https://github.com/woocommerce/woocommerce-admin/pull/6234) 2021-02-01 13:59:21 -08:00
Joel Thiessen 752821c00e Fixed keyboard landmark menu items cut off when new navigation enabled (https://github.com/woocommerce/woocommerce-admin/pull/6225) 2021-02-01 13:26:34 -08:00
Joel Thiessen cd9b2f8715 Adding checkbox role to chart legend component to make it compatible with screen readers (https://github.com/woocommerce/woocommerce-admin/pull/6226) 2021-02-01 13:26:00 -08:00
Adrian Duffell d94a9551d2 Add WooCommerce version selection to Docker PHP test suite (https://github.com/woocommerce/woocommerce-admin/pull/6119)
* Add WooCommerce version selection

The WC_VERSION environment variable is added to the docker-compose config. If the variable is not set on the shell, it defaults to the minimum supported version (4.5.0)

The ENTRYPOINT is changed to automatically re-install the test suite when the version number is changed.

* Add documentation

* Add versioning to force image rebuild
2021-02-01 12:26:27 +08:00
Sam Seay 242bdb475d Migrate the Travis unit test suite to Github actions (https://github.com/woocommerce/woocommerce-admin/pull/6164)
Add a matrix of tests against WP and WC versions and migrate the lint and js test to separate jobs.
2021-02-01 15:24:11 +13:00
louwie17 467e54fded Update product template icon and copy (https://github.com/woocommerce/woocommerce-admin/pull/6177)
* Update product template task copy and icon, updated wordpress/icons

* Fix tests

* Fix css lint errors

* Make use of the re-usable Pill component from Woo
2021-01-29 17:23:02 -04:00
Fernando 1f368b73f8 Fixed panels check (https://github.com/woocommerce/woocommerce-admin/pull/6220)
This commit fixes the home screen panels check

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-29 11:23:02 -03:00
Fernando bc1f0699c2 Replaced method `woocommerce_get_page_id` with `wc_get_page_id` (https://github.com/woocommerce/woocommerce-admin/pull/6222)
This commit replaces method `woocommerce_get_page_id` with `wc_get_page_id` in Loader.php

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-29 09:44:38 -03:00
louwie17 d2ca866b26 Remove old debug code for connecting to Calypso / WordPress.com in help section (https://github.com/woocommerce/woocommerce-admin/pull/6097)
* Remove Calypso / WordPress.com help section, only shown in WP_Debug

* Add changelog

* Remove unused calypso tests actions
2021-01-28 13:32:06 -04:00
louwie17 78d62c858d Move inbox panel to left column, to increase user interaction (https://github.com/woocommerce/woocommerce-admin/pull/6122)
* Move inbox panel to left column, to increase user interaction

* Add changelog

* Fix and add test

* Remove old loading banner-block

* Remove unused css

* Fix test with new props
2021-01-28 09:33:36 -04:00
Hsing-Yu Flowers dda06be0bf Change siteUrl to shopUrl (https://github.com/woocommerce/woocommerce-admin/pull/6200)
* Add shop url

* Change siteUrl to shopUrl
2021-01-28 16:47:57 +10:00
Bruno Ribarić 5e5848bcd8 Remove redundant if statement in PHP Test Suite (https://github.com/woocommerce/woocommerce-admin/pull/6169) 2021-01-28 13:29:38 +08:00
Moon e02429dff3 Skip failing tests in WP 5.3 and 5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6209)
* Skip failing tests in WP 5.3 and 5.4

* Add a reason for the skipping
2021-01-27 20:02:35 -08:00
Ilyas Foo e65dabdcb6 Add unit test for CES package (https://github.com/woocommerce/woocommerce-admin/pull/6196) 2021-01-28 11:35:38 +08:00
renovate[bot] 418bca7eaa Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6170)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-28 14:52:28 +13:00
Moon ef20b35826 Normalize installed WC Admin version when comparing. (https://github.com/woocommerce/woocommerce-admin/pull/6205) 2021-01-27 15:58:06 -08:00
Fernando 7bf63fae05 Hide Inventory and Reviews panels if store setup task list is visible (https://github.com/woocommerce/woocommerce-admin/pull/6182)
* Fixed reviews and inventory panels visibility

This commit fixes the reviews and inventory panels visibility when setup task list is enabled

* Fixed tests

* Fixed control and small refactor

* Fixed useSelect

* Fixed multiple useSelect

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-27 18:40:27 -03:00
Hsing-Yu Flowers fc41022dd4 Return empty object if not in locale info (https://github.com/woocommerce/woocommerce-admin/pull/6188) 2021-01-28 09:38:46 +13:00
renovate[bot] 20b9b60dd2 Update dependency @woocommerce/e2e-environment to v0.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/6193)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-28 08:42:58 +13:00
Fernando 2ab28c977f Extended task list refactor (https://github.com/woocommerce/woocommerce-admin/pull/6081)
* Fixed hiding core task list

This commit fixes the hiding of the core task list

* Added tests

* Added fix to readme.txt

* Fixed readme.txt

* Added new test

* Hooks were fixed

* Refactored task lists handling

This commit refactors a few things related to the task lists handling

* Added tests

* Fixed task lists handling

* Fixed tests

* Renamed 'taskListHidden' to 'taskListsHidden'

* Added taskListsHidden util

* Fix completed tasks tracking infinite loop

This commit fixes the completed tasks tracking infinite loop (for multiple extended tasks)

* Refactored update check

* Hide task list if there aren't any visible tasks

* Fixed comment

* Fixed typo

* Renamed example method

* Fixed example extension

* Added tab to the extension example

* Fixed extended task list enabling option

* Added more tests

* Added PHP tests

* Fixed some comments

* Removed utils.js file

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-27 15:40:02 -03:00
louwie17 4ad9c07d51 Add wait for mysql script to php unit entrypoint (https://github.com/woocommerce/woocommerce-admin/pull/6185)
* Add wait for mysql script to php unit entrypoint, also removing containers after run is finished.

* Add changelog
2021-01-27 14:35:12 -04:00
louwie17 b0126c36bf Delete all products before running tests (https://github.com/woocommerce/woocommerce-admin/pull/6178)
* Delete all products before running tests

* Delete products in tear down instead

* Only remove the color attribute, as other attitributes are necessary in other tests

* Make assertion more lenient, and remove all products deletion

* Fix lint errors

* Changed to check if imported is at-least 2 items
2021-01-27 13:57:58 -04:00
Renovate Bot c0d6ec7bfd Update dependency @testing-library/user-event to v12.6.2 2021-01-27 06:00:51 +00:00
Renovate Bot 982b2b9893 Pin dependency eslint-plugin-import to 2.22.1 2021-01-27 03:27:52 +00:00
Renovate Bot 5aea80061f Update dependency @octokit/graphql to v4.5.9 2021-01-27 02:03:02 +00:00
Paul Sealock 84222b568b Navigation: Change default location and add Product category items (https://github.com/woocommerce/woocommerce-admin/pull/6179)
* add product submenu items

* better check

* extesnions section

* use add_plugin_item

* htmlspecialchars_decode better

* Manually add product_brand taxonomy

* Determine if migrated items are a taxonomy or post_type. If they are, register them.

* add in_array check to register post types and taxonomies

* register a taxonomy or post_type, but not both
2021-01-27 13:05:55 +13:00
Sam Seay 053db8512c Turn on stalebot. (https://github.com/woocommerce/woocommerce-admin/pull/6154) 2021-01-27 00:01:14 +13:00
Darren Ethier 4210b6f0a8 Update @wordpress/eslint-plugin dependency to latest version. (https://github.com/woocommerce/woocommerce-admin/pull/5856)
* update @wordpress/eslint-plugin dependency to latest version

* local prettier config isn’t needed anymore because of fix in upstream package

* add jsdoc config to use typescript format for jsdocs

* update changelog

* update packages and include .prettierrc.js back in for code editor support of prettier

* add docs

* minor prettier fix in test file

* Convert all new eslint rules throwing errors to warnings temporarily to be handled in separate prs

* updated changelog

* fix package-lock.json

* prettier auto-fixes

* add prettier dependency at root

* sigh prettier is being finicky

* version bump

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-26 13:24:28 +13:00
louwie17 74b3eccbc9 Add option to create product by template (https://github.com/woocommerce/woocommerce-admin/pull/5892)
* Initial product template modal

* Add custom product template for the new-post route

* Add test, and code for making use of the insert_post action

* Added ProductTemplates Datastore to create template with REST api

* Add back variation method, deleted by accident

* Move product from template endpoint to OnboardingTasks class

* Fix lint errors

* Added tracks and template hooks

* Rename product create permission check function, for less confusion

* Remove duplicate recommended option

* Fix stylelint errors

* PHP tests for the product_from_template endpoint

* Fix onboarding php unit tests

* Write tests for client product template options

* Refactored list component, to use it as a radio control list

* Fix lint errors

* REmove assertion as it fails on the ci

* Add changelog

* Updating tests to make sure all product attribute taxonomies are removed

* Add more specific assertions for importing sample products test

* Update the sample products test

* Deconstruct item object, from PR suggestion

* Fix PHP errors, by updating the createProductFromTemplate call
2021-01-25 12:52:42 -04:00
manjeet-wisetr 3a792f66d9 Update FilterPicker Component README.md (https://github.com/woocommerce/woocommerce-admin/pull/5928) 2021-01-25 11:21:57 -05:00