Commit Graph

6919 Commits

Author SHA1 Message Date
Ilyas Foo 6be7c4b5e3 Lint again 2023-08-14 13:42:00 +08:00
Ilyas Foo 4a04d19b60 Lint 2023-08-14 13:23:45 +08:00
Ilyas Foo f95fdd83c9 Remove unused attribute 2023-08-14 12:03:07 +08:00
Ilyas Foo a585555d92 Use try catch to handle error, better flux flow to handle next step 2023-08-14 11:45:56 +08:00
Ilyas Foo dc2c4e7c48 Merge remote-tracking branch 'origin/trunk' into tweak/loading-indicator-tax-task-store-location 2023-08-14 10:16:11 +08:00
louwie17 71e8b699db
Convert simple to variable product and auto add variations (#39673)
* Auto create variations and move product to variable when adding variation options

* Delete unused components

* Add tour to variation options

* Remove unneeded options

* Add changelog

* Fix types

* Fix lint errors

* Fix broken tests

* FIlter out option tags when not included in attributes

* Don't invalidate variations data when no new variations are created
2023-08-11 11:15:05 -03:00
And Finally 0d2e2b6c06 Squashed commit of the following:
commit d7c6924301976338100aad564e4f9d2b8ef40bb3
Author: And Finally <andfinally@users.noreply.github.com>
Date:   Thu Aug 10 11:52:46 2023 +0100

    Addressing feedback.
    Removed unneeded internal dependencies comment.

commit 216e3061787923e070878c1491098fb984f53f47
Author: And Finally <andfinally@users.noreply.github.com>
Date:   Thu Aug 10 11:51:45 2023 +0100

    Addressing feedback.
    Sanitizing `comments` input before we send it to Tracks.
    Whitespace.

commit 817bcb78a47e9cb5c60167d979dca404d581cc9c
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 16:37:04 2023 +0100

    Made selected-item style more like existing ones (background color)

commit 57af273b02dfd3039f3db48b620c5842cf7eab3c
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 16:25:14 2023 +0100

    Namespaced more translatable strings

commit ef293ad45db9511199a61bda9cf1f94709558dd1
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 16:21:35 2023 +0100

    Moved <TextareaControl> out of <p> (prevents DOM "<div> in <p>" warning)

commit efc4a5993358726e89e1728b29245340b62dab9c
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 16:18:57 2023 +0100

    Linter appeasement

commit c7efaf798e49ddfe3fd3deab8f07da083c4c236f
Merge: 8b3ff1c86b 2a8d47cd6a
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 15:47:29 2023 +0100

    Merge branch 'feature/marketplace' into add/wccom-17602-marketplace-feedback-component

commit 8b3ff1c86b550574d768a31b2e3b4868a444f6c8
Author: Dan Q <dan@danq.me>
Date:   Wed Aug 9 15:20:20 2023 +0100

    Update plugins/woocommerce-admin/client/marketplace/components/likert-scale/likert-scale.scss

    Co-authored-by: Kyle Nel <22053773+kdevnel@users.noreply.github.com>

commit 4be3827474e10a99b8f15f479ff7df17e74cab63
Merge: 19e3aa1324 789fdf36a0
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 15:19:12 2023 +0100

    Merge branch 'add/wccom-17602-marketplace-feedback-component' of https://github.com/woocommerce/woocommerce into add/wccom-17602-marketplace-feedback-component

commit 19e3aa13249a885f563ee3265fe6b4f224201f4e
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 15:18:58 2023 +0100

    Remove unused TextControl

commit 789fdf36a06f8244cc293bbbb4fbd5cb0d6c7eb4
Author: Dan Q <dan@danq.me>
Date:   Wed Aug 9 15:16:09 2023 +0100

    Update plugins/woocommerce-admin/client/marketplace/components/likert-scale/likert-scale.tsx

    Co-authored-by: And Finally <andfinally@users.noreply.github.com>

commit d8db9a460f4626b316fad2a60dc947d3c232205d
Author: Dan Q <dan@danq.me>
Date:   Wed Aug 9 15:15:25 2023 +0100

    Update plugins/woocommerce-admin/client/marketplace/components/feedback-modal/feedback-modal.tsx

    Co-authored-by: And Finally <andfinally@users.noreply.github.com>

commit 6f0ab9a65c6ec4c13b2af3530393f793952fa93e
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 15:08:10 2023 +0100

    Switched pencil icon

commit 5bea666730f1bb5cd9479affad5701b68007ea9f
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 14:36:32 2023 +0100

    Ensured snackbar appears at bottom (thanks @andfinally for the analysis!)

commit b49a19f08d9db4eed592c54ddf79fcf9b9e35d13
Merge: 0076c28677 172234b5a9
Author: Dan Q <danq@automattic.com>
Date:   Wed Aug 9 13:59:18 2023 +0100

    Merge branch 'feature/marketplace' into add/wccom-17602-marketplace-feedback-component

commit 0076c2867778ec157ba60aa6259d3768a0f3bb3d
Author: Dan Q <dan@danq.me>
Date:   Tue Aug 8 07:59:42 2023 +0100

    Update plugins/woocommerce-admin/client/marketplace/components/feedback-modal/feedback-modal.tsx

commit 05f1606dc74050de2170d870954c106c83f9dac9
Author: Dan Q <dan@danq.me>
Date:   Tue Aug 8 07:58:36 2023 +0100

    Fixed merge

commit b73a324c5a9db056724b2085aa6055f433841823
Merge: df92adfa14 a807040208
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 8 07:56:33 2023 +0100

    Merge branch 'feature/marketplace' into add/wccom-17602-marketplace-feedback-component

commit df92adfa14c0c9c80f10cc240214dd65f498d7f3
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 10:53:17 2023 +0100

    i18n: make "Additional thoughts" translatable

commit b0433556b00283892233bf3729b579a9bf71074d
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 10:36:41 2023 +0100

    Add feedback modal to content

commit deae2e682437b30728f0b1e3394e3ae02a879228
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 10:33:43 2023 +0100

    Validation/validation feedback on likert scales

commit 50aadeef4d87e952e5578299cc303339304ee3e5
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 09:27:48 2023 +0100

    Remove unused props

commit 928a62df4cadb81d8017bb7e65e162ee93110a26
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 09:27:15 2023 +0100

    Don't ask for feedback if dismissed earlier today

commit 9a8b896f934ea91ee2e3f938c30376192cc0d4d8
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 09:16:18 2023 +0100

    Enable suppression by multiple dismissal or by submission

commit 521181a38f138de1255222987a1cc313c537d825
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 09:01:26 2023 +0100

    Add a max date

    This is important because we don't want to ask for feedback on a "new" marketplace forever, and we can't necessarily rely on being able to remove the dialog in a future version of WooCommerce (because some users might never upgrade beyond this version).

commit 0f36d364f40a09de14ef3b585fb8f9387d9db370
Author: Dan Q <danq@automattic.com>
Date:   Mon Aug 7 08:47:04 2023 +0100

    Removed email field

commit b83ca81aeacb3a20a2733659fab0fc531eb8fabb
Author: Dan Q <danq@automattic.com>
Date:   Fri Aug 4 12:18:54 2023 +0100

    CES push from feedback form

commit e5b6e5b570a78b9d4485b5a0f1005522a619e793
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 16:33:55 2023 +0100

    Hook up events. Fix a11y (keyboard navigation).

commit b679495180993efddde134d0a1270e41223f5211
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 15:49:24 2023 +0100

    Initial icon in snackbar

commit b702be9b8c28376220a0b79243dbf49e5648359c
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 15:23:16 2023 +0100

    Use a snackbar notice to open the feedback modal

commit 06736e4a3c2f302b048873764331d5f3b4fa0e29
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 14:25:35 2023 +0100

    Feedback modal design matching

commit 7c3a969a502b0efda01f3e33ff8dea00d493547b
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 13:40:35 2023 +0100

    Basic layout of Likert scales on feedback component

commit 3c3f0e0e72402db784aaf281365c252c3204de9b
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 13:25:15 2023 +0100

    Tidier order of likert items

commit 8176e8820be4acc269b59617df0799816ed6944a
Author: Dan Q <danq@automattic.com>
Date:   Tue Aug 1 13:21:52 2023 +0100

    Initial skeleton for WooCommerce Marketplace/Extensions feedback component

commit 62a4bfa0ec
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Thu Jul 27 15:47:54 2023 +0300

    👌 Use admin theme color for select2

commit 26811772c9
Author: Nathan Silveira <nsschneider1@gmail.com>
Date:   Fri Jul 28 14:40:18 2023 -0300

    [ Product Block Editor ] Create Variation options block (#39256)

    * Add support for variable products

    * Add 'hello world' block to variations tab

    * Add product-section block to template

    * Add AttributeControl component to screen

    * Add changelog

    * Change labels

    * Make a copy of AttributeControl to VariationOptionsControl to allow the fields to evolve separately in future

    * Fix tests

    * Add changelog to woocommerce

    * Fix alert error

    * Remove copied control and start adapting attribute control to handle both scenarios

    * Add -field to block name

    * Revert "Add -field to block name"

    This reverts commit 50e1ee66e27ffb2df22ea7f6a4f78d1577a273f5.

    * Revert "Revert "Add -field to block name""

    This reverts commit eee0441c6532f9fa8cf8383d9699fd503dd054ae.

    * Extract more labels

    * Hide drag handle in variation options

commit 575bbae7b9
Author: Nathan Silveira <nsschneider1@gmail.com>
Date:   Fri Jul 28 14:05:03 2023 -0300

    [Product Block Editor] Add require password block field (#39464)

    * Add post password to API

    * Add changelog

    * Fix phpcs issue

    * Remove post_password from tests

    * Add additional property to test

    * Increment number of properties in product schema

    * Update the post when post_password changes

    * Start adding password block

    * Add css and import it

    * Refactor attributes and erase password when checkbox is unchecked

    * Add changelogs

    * Remove unused imports

    * Rename 'fields' to 'field'

    * Refactor CSS

    * Remove example object

commit bb390b12d0
Author: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Date:   Thu Jul 27 15:18:10 2023 -0700

    Update template version

commit 87ae3d1d7d
Author: github-actions <github-actions@github.com>
Date:   Thu Jul 20 19:12:38 2023 +0000

    Add changefile(s) from automation for the following project(s): woocommerce

commit 9c7c58cb0b
Author: Chris McNeill <82999806+csmcneill@users.noreply.github.com>
Date:   Thu Jul 20 13:53:07 2023 -0500

    Removes the "for your state" string from the checkout page if there are no current payment methods available.

commit d4893c4706
Author: Paul Sealock <psealock@gmail.com>
Date:   Fri Jul 28 11:10:29 2023 +1200

    Monorepo Utils: Fix no merge base in changefile script (#39467)

    * when checking out remote branch, ensure git history is there to find common ancestor for git diff

    * remove unshallow

commit 144e873393
Author: Leif Singer <leif@automattic.com>
Date:   Thu Jul 27 22:29:59 2023 +0200

    Optimize system status tests (#39363)

commit fccc62d91a
Author: Nathan Silveira <nsschneider1@gmail.com>
Date:   Thu Jul 27 13:02:36 2023 -0300

    [Product Block Editor] Add post_password parameter to the Woo product REST api (#39438)

    * Add post password to API

    * Add changelog

    * Fix phpcs issue

    * Remove post_password from tests

    * Add additional property to test

    * Increment number of properties in product schema

    * Update the post when post_password changes

commit cb787aba19
Author: Leif Singer <leif@automattic.com>
Date:   Thu Jul 27 14:06:55 2023 +0200

    Shard unit test runs (#39362)

commit d7e5703b07
Author: Jorge Torres <jorge.torres@automattic.com>
Date:   Tue Jul 25 11:25:49 2023 -0300

    Add changelog

commit 8cf45dc8c1
Author: Jorge Torres <jorge.torres@automattic.com>
Date:   Tue Jul 25 11:25:29 2023 -0300

    Include postcode in Vietnam address format

commit 527701f53d
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 18 10:55:32 2023 +0300

    Update count color, use admin theme

commit 35c1592d8b
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Fri Jul 14 15:10:29 2023 +0300

    Update helper css to use admin theme color

commit bf95490ade
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Fri Jul 14 14:06:54 2023 +0300

    Changelog

commit eb7b83b496
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Fri Jul 14 13:52:50 2023 +0300

    Hover on orders view icon, use admin theme color

commit 378d005230
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Fri Jul 14 13:51:49 2023 +0300

    Store alerts update - use admin theme colors

commit 603cbd3f5d
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Fri Jul 14 13:50:02 2023 +0300

    Components empty content icon color

commit 3c9e4606cd
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Wed Jul 12 16:34:49 2023 +0300

    Finally, that's the changelog :)

commit 8f4003806a
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Wed Jul 12 16:16:28 2023 +0300

    Changelog

commit 016ae26651
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Wed Jul 12 15:43:45 2023 +0300

    Changelog (again)

commit df07d17e2b
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Wed Jul 12 15:24:18 2023 +0300

    Changelog

commit 30f43803d2
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Wed Jul 12 15:09:15 2023 +0300

    Remove styles from buttons, as theme colors.css is taking care of them

commit 5497cefced
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Wed Jul 12 15:01:36 2023 +0300

    Applied review comments

commit 57d4f685fd
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 19:43:05 2023 +0300

    Remove hardcoded text color wherever variable background color is used

commit ea19b23e54
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 19:21:37 2023 +0300

    Fix activation css to use wp-admin-theme-color

commit dbffd6b5c9
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 19:04:49 2023 +0300

    Use new branding colors in activation and wc setup

commit 68a83a0d46
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 17:45:39 2023 +0300

    Shipping methods empty state follow theme colors (and minor improvements)

commit 366ee82397
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:43:39 2023 +0300

    Use page-title-action instead of deprecated add-new-h2

commit f62221c0da
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:43:09 2023 +0300

    Untested extensions modal uses theme colors

commit 4bd8f6b874
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:41:10 2023 +0300

    Auth page uses Woo colors, according to branding

commit e637035574
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:40:41 2023 +0300

    Importer/Exporter use admin theme color

commit 6a76fd7954
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:38:18 2023 +0300

    Breadcrump up link use admin theme color

commit 1b67a7fe7c
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:37:15 2023 +0300

    Email status use admin theme color

commit 3b69ad144d
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:35:20 2023 +0300

    Input toggles use admin theme color

commit b9cd91c20c
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:34:56 2023 +0300

    WooCommerce message use admin theme color

commit 5c1dfade05
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:34:24 2023 +0300

    Blankstate buttons follow theme colors

commit 20d9981b71
Author: Panos (Panagiotis) Synetos <2484390+PanosSynetos@users.noreply.github.com>
Date:   Tue Jul 11 16:24:57 2023 +0300

    Change default WooCommerce color

commit 16d295d303
Author: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Date:   Tue Jul 25 11:07:52 2023 -0700

    Use the LegacyProxy to invoke get_plugins, remove CodeHacking usage

commit 5c0d161d87
Author: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Date:   Fri Jun 23 15:27:55 2023 -0700

    Add changelog file

commit 28e4ce95ef
Author: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Date:   Fri Jun 23 15:23:42 2023 -0700

    WC Tracker: Add unit test for plugin feature compat data

    In #38849 a change was made that allowed the class mocking necessary
    for this test to happen in a way that wouldn't interfere with other
    unit tests.

    Fixes #38720

commit f479625708
Author: Sam Seay <samueljseay@gmail.com>
Date:   Wed Jul 26 12:54:45 2023 +0800

    WooCommerce Docs: Fix a bug where passing full file urls made ids unstable. (#39357)

    Fix a bug where passing full file urls made ids unstable.

commit ce79211c93
Author: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
Date:   Tue Jul 25 18:00:03 2023 +0530

    Support inserting NULL values for strict DB mode (#39396)

    * Support inserting NULL values for strict DB mode

    * Set default date for placeholder order to support strict MySQL.

    * Add unit test to verify strict mode also works.

    * Make HPOS behavior of modified date consistent with WP_Post.

    In HPOS we were leaving modified date to be empty, while WP_Post set it to the created date if modified date is null.

commit b1cb905464
Author: Paul Sealock <psealock@gmail.com>
Date:   Tue Jul 25 15:29:43 2023 +1200

    WooCommerce Docs: Handle multiple category posts (#39352)

commit ddf9a7741a
Author: Paul Sealock <psealock@gmail.com>
Date:   Tue Jul 25 10:03:01 2023 +1200

    Monrepo Utils code-freeze: Update version bump to modify release branches (#39243)

commit 91a0fbafa9
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Mon Jul 24 14:21:47 2023 -0500

    Delete changelog files based on PR 39327 (#39388)

    Delete changelog files for 39327

    Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>

commit 8ae03a55de
Author: Moon <moon.kyong@automattic.com>
Date:   Tue Jul 25 04:13:13 2023 +0900

    Update/39325 typo in core profiler data sharing copy (#39327)

    * Fix grammar in data-sharing agreement copy

    * Add changelog

    * Put ,

    * Add brackets

    * Move learn more link inside the bracket

    * Update test snapshot

    * Fix grammar

    * Update test snapshot

commit 41d052b9e5
Author: RJ <27843274+rjchow@users.noreply.github.com>
Date:   Mon Jul 24 20:34:38 2023 +0800

    dev: core profiler pages storybook (#39046)

    * dev: core profiler pages storybook

    * changed css path to pre-build zip path

commit c119d8f7e3
Author: Rodel Calasagsag <rodel.calasagsag@automattic.com>
Date:   Thu Jul 20 09:30:43 2023 +0800

    Add changelog

commit 598adeb93e
Author: Rodel Calasagsag <rodel.calasagsag@automattic.com>
Date:   Wed Jul 19 18:56:39 2023 +0800

    Fix flakiness

commit 8f14d89310
Author: Jon Lane <jon.lane@automattic.com>
Date:   Fri Jul 21 13:22:07 2023 -0700

    Skip tax rates test if CI

commit b7913a7165
Author: Jon Lane <jon.lane@automattic.com>
Date:   Thu Jul 20 15:50:50 2023 -0700

    Changelog

commit 4c3ef8e623
Author: Jon Lane <jon.lane@automattic.com>
Date:   Thu Jul 20 15:49:02 2023 -0700

    Skip failing tests

commit c3e76523ec
Author: Jon Lane <jon.lane@automattic.com>
Date:   Thu Jul 20 14:28:40 2023 -0700

    Update config to use API URL

commit 149c969ba8
Author: Jon Lane <jon.lane@automattic.com>
Date:   Thu Jul 20 14:26:59 2023 -0700

    Update API URL in workflow and run all API tests

commit be992dca02
Author: Jon Lane <jon.lane@automattic.com>
Date:   Thu Jul 20 14:22:04 2023 -0700

    Run global setup

commit 00f55c3a13
Author: Jon Lane <jon.lane@automattic.com>
Date:   Thu Jul 20 14:20:36 2023 -0700

    Perform a site reset if running on CI

commit b128f07af2
Author: Sam Seay <samueljseay@gmail.com>
Date:   Sat Jul 22 12:22:55 2023 +0800

    WooCommerce Docs: Add support for more core block conversion (#39244)

    * WIP extend support for frontmatter in manifests.

    * Change some of the prop names in the frontmatter support, add tests.

    * WIP support new frontmatter in plugin.

    * Improve category processing.

    * restructure the docs to have a nested category with no index.

    * Add WP test stubs to dev.

    * Add tests for the ManifestProcessor.

    * Add param docs to function

    * Store post meta on posts when they are updated or created. Add supporting tests.

    * WIP supporting more core block types.

    * Fix bugs in conversion.

    * Adjust conversion for issues with tables, blockquotes, code.

    * Resolve pnpm lock conflicts

    * Return manifest to state in trunk.

    * Return pnpm lock to trunk state.

    * Update fixture for new md content.

commit 0243bfdc42
Merge: 19ba93ca52 34e490f267
Author: And Finally <andfinally@users.noreply.github.com>
Date:   Wed Jul 26 14:03:25 2023 +0100

    Add new top admin bar to marketplace (#39145)

commit 34e490f267
Author: And Finally <andfinally@users.noreply.github.com>
Date:   Wed Jul 26 12:31:59 2023 +0100

     Tidying history for https://github.com/woocommerce/woocommerce/pull/39145. Copied changes from `add/wccom-17419-marketplace-top-admin-bar`.

    Deleting unused import.

    Addressing CSS linter errors.

commit 19ba93ca52
Merge: 30e23d22d5 28cb1008eb
Author: Kyle Nel <22053773+kdevnel@users.noreply.github.com>
Date:   Wed Jul 26 12:52:39 2023 +0200

    Setup marketplace React skeleton layout (#39382)

commit 28cb1008eb
Author: Kyle Nel <22053773+kdevnel@users.noreply.github.com>
Date:   Tue Jul 4 14:08:50 2023 +0200

    Add skeleton and cherry-picked commits

    - Reset layout to allow full width
    - Added Footer & IconWithText components

    Add temporary placeholder components

    All components here are temporary and can be removed/replaced when their relevant PR is ready.

    Add marketplace footer component

    The component is added using a SlotFill to use the existing WC Admin footer and utilise full width correctly.

    Setup initial content area layout

    Update tab styles

    Setup styling to match latest design

    Finalise footer, wide layout, and tidy styles

    - Applies the wide layout from latest MVP design
    - Applies the correct footer links to titles
    - Some general style tidying

    Organise styles and setup variables

    Swap to using CSS Grid for layouts

    Update breakpoints

    Restructure style naming and update to core styles

    Add translation in some places

    In-app marketplace search component. Cleaned up the commit history of this branch. Copied changes from these commits:

    e9828422706176817e511778980005222aa36cc5
    9ca2ae351c97fcd27ecd77a1464c2a9ca16de040
    e47815705f3854bf50ff48d7975b7cf2f541614b
    976811c458e67ae7fa107c8bf8554fdc3e809d85
    46eafdf49fe39c12dee77d6ce0885bdeda527dea

    Deleted unused import.

commit 30e23d22d5
Author: And Finally <andfinally@users.noreply.github.com>
Date:   Thu Jul 20 17:00:22 2023 +0100

    Changed `Tabs` to use `useQuery` instead of `getQuery`, so the browser back button will work.
    Changed submenu item name back to `Extensions`, and keeping it in the current order within the WooCommerce menu.
    Changed `path` value to `extensions`.

commit a2b878e8e7
Author: And Finally <andfinally@users.noreply.github.com>
Date:   Thu Jul 20 14:53:06 2023 +0100

    First commit. This contains the changes from `update/react-marketplace`, reviewed in https://github.com/woocommerce/woocommerce/pull/38885.

Addressing linter errors.
2023-08-10 14:53:46 +01:00
Kyle Nel c1f24735ca
Remove marketplace tour temporarily (#39618)
* Tour: reconfigure to work with new layout

- Started Reconfiguring the existing tour to work with the new layout and components.
- Updated step content based on design
- Implemented PR feedback
- Removed task list for MVP

# Conflicts:
#	plugins/woocommerce-admin/client/marketplace/components/tabs/tabs.tsx
2023-08-10 14:10:08 +02:00
RJ 106e15f74a
fix: core-profiler intro opt in page tracks ordering (#39508) 2023-08-10 14:25:44 +08:00
And Finally 2a8d47cd6a
Ensure My Subscriptions page is still accessible when new marketplace is enabled (#39569) 2023-08-09 15:19:41 +01:00
And Finally 56176ab008 If `marketplace` feature is enabled, adds `admin_menu` action to add the `wc-addons` page to the WooCommerce menu without showing it as a submenu item. This is a temporary measure, so we can continue to use the PHP version of the My Subscriptions page. Changes link on My Subscriptions page to point to the extensions tab of the new marketplace. Adds tab for My Subscriptions to marketplace header. 2023-08-09 12:39:55 +01:00
And Finally 172234b5a9
Create search loading state component for Marketplace (#39607) 2023-08-09 11:52:18 +01:00
And Finally b56654867a Changes from `add/marketplace-product-card-component` after rebasing on feature branch. 2023-08-08 15:29:08 +01:00
Ilyas Foo 12ccae642f Lint and changelog 2023-08-08 18:22:09 +08:00
Ilyas Foo 2a21fb9c6e Add loading indicator when submitting location 2023-08-08 16:42:43 +08:00
raicem bb84e90ef4 Marketplace: Add category selector 2023-08-08 09:56:02 +03:00
Kyle Nel 4fc7fba118
Apply suggestions from code review
Co-authored-by: And Finally <andfinally@users.noreply.github.com>
2023-08-08 08:35:28 +02:00
Sam Seay e8c3808527
Upgrade TypeScript to v5.1 (#39531) 2023-08-08 16:35:31 +12:00
Alefe Souza 428feb58a7
Update WCPay banners for WooPay (#39596)
* Update WCPay banners for WooPay

* Fix unit tests

* Always checks for WooPay eligibility

* Use existing method to determine WooPay eligibility

* Create is_woopay_eligible method
2023-08-07 19:17:59 -07:00
Kyle Nel ebf292492a
Loader: Add search loader component
- Rebased on feature branch 7th August 2023
2023-08-07 15:20:31 +02:00
Kyle Nel a807040208 Add/user menu component (#39383)
User Menu: Create component and add to header

- Create initial component design
- We may need to return to implement the helper connection URLs once those are in place.
- Some PHPCS errors still exist - this is to be expected for now.

# Conflicts:
#	plugins/woocommerce-admin/client/marketplace/stylesheets/_variables.scss

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
Co-authored-by: raicem <unalancem@gmail.com>
2023-08-07 12:34:05 +01:00
And Finally 55b2bb33ac Integrating search component into in-app marketplace header.
- Changed classNames in `Search` component.
- Moved styles from `header.scss` to `search.scss`.
- Deleted `HeaderSearch` and `HeaderSearchButton` components, no longer needed.
- Removed wrapper element around search form.
- Corrected marketplace API address in `Search` component.
- Using state to remember search term, instead of getting value of search input.
- Added condition to clear search input if Escape is pressed while it's focused.
- Not running search if search term is falsy.
- Changed label of "Extensions" tab to "Browse" – we'll do this for the moment, as we have repetition with the page title `Extensions`.
2023-08-07 12:34:05 +01:00
And Finally b48e52652d Tidying history for https://github.com/woocommerce/woocommerce/pull/39145. Copied changes from `add/wccom-17419-marketplace-top-admin-bar`.
Deleting unused import.

Addressing CSS linter errors.
2023-08-07 12:34:05 +01:00
Kyle Nel bd72b2cd08 Add skeleton and cherry-picked commits
- Reset layout to allow full width
- Added Footer & IconWithText components

Add temporary placeholder components

All components here are temporary and can be removed/replaced when their relevant PR is ready.

Add marketplace footer component

The component is added using a SlotFill to use the existing WC Admin footer and utilise full width correctly.

Setup initial content area layout

Update tab styles

Setup styling to match latest design

Finalise footer, wide layout, and tidy styles

- Applies the wide layout from latest MVP design
- Applies the correct footer links to titles
- Some general style tidying

Organise styles and setup variables

Swap to using CSS Grid for layouts

Update breakpoints

Restructure style naming and update to core styles

Add translation in some places

In-app marketplace search component. Cleaned up the commit history of this branch. Copied changes from these commits:

e9828422706176817e511778980005222aa36cc5
9ca2ae351c97fcd27ecd77a1464c2a9ca16de040
e47815705f3854bf50ff48d7975b7cf2f541614b
976811c458e67ae7fa107c8bf8554fdc3e809d85
46eafdf49fe39c12dee77d6ce0885bdeda527dea

Deleted unused import.
2023-08-07 12:34:05 +01:00
And Finally 05a608399a Changed `Tabs` to use `useQuery` instead of `getQuery`, so the browser back button will work.
Changed submenu item name back to `Extensions`, and keeping it in the current order within the WooCommerce menu.
Changed `path` value to `extensions`.
2023-08-07 12:34:05 +01:00
And Finally b3723f7a7d First commit. This contains the changes from `update/react-marketplace`, reviewed in https://github.com/woocommerce/woocommerce/pull/38885. 2023-08-07 12:34:05 +01:00
Chris Runnells 017be8b7e5
Replace 'end' CSS props with 'flex-end' when using 'display: flex' (#39419) 2023-08-04 11:12:05 -10:00
Moon 3c07a03943
Update/79113 incorrect subheading style and copy on wc core profiler (#39526)
* Use -webkit-font-smoothing: antialiased for core profiler subheadings

* Remove subheading letter-spacing
2023-08-03 11:26:52 -07:00
louwie17 c8b2305dcd
Revert "Update product experiment name (#39210)" (#39523)
* Revert "Update product experiment name (#39210)"

This reverts commit c547326135.

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-02 08:59:29 -03:00
Moon 53593061cf
Use the same checkbox styles on the platform selector (#39469)
* Use the same checkbox style

* Add changelog

* Update plugins/woocommerce-admin/client/core-profiler/components/multiple-selector/multiple-selector.scss

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Fix CSS lint issues

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-08-01 17:18:38 -07:00
Tomek Wytrębowicz e9042633eb
Remove non-existing method from TaskList docs. (#39454) 2023-08-01 14:49:52 +02:00
RJ 94e4682f01
add: feature flag for customize your store task (#39397)
* add: feature flag for customize your store task

* toggled core-profiler feature flag to true in dev mode
2023-08-01 20:28:39 +08:00
Chris Lilitsas b8c0e273bc
Update the admin's menu remaining tasks bubble CSS class and loosen the query selector for handling the runtime update (#39273)
* Modify dom structure, add a specific class and alter the querySelector

* Select all bubbles instead of only the first one

* Add changelog

* Cleanup

* Cleanup
2023-08-01 13:02:09 +03:00
Moon 46d83e3861
Redirect to Jetpack connect page on plugins page skip (#39109)
* Redirect users to Jetpack Auth when the users deselect all plugins, but Jetpack is already installed

* Add changelog
2023-07-31 09:07:10 -07:00
Moon c810960bff
Align checkbox, logo, and title on the plugins page (core profiler) (#39394)
* Reset checkbox position

* Center align chekbox, logo, and the title

* Add changelog

* Remove use of classnames -- no longer needed

* Fix CSS lint issues
2023-07-31 09:06:50 -07:00
Yashita Mittal e4bec8e378
Update task list items to show spinner on selection (#39270)
* Update task list to show a spinner on item click

There is an issue of a noticeable delay when clicking on product task list items, which leaves users waiting without any indication of the loading status.
To enhance the user experience, add a loading spinner that provides visual feedback during the transition to the next page.

Co-authored-by: yashita.mittal <yashita.mittal@a8c.com>
2023-07-31 18:42:09 +08:00
Tomek Wytrębowicz 463d91c16c Remove non-existing method from TaskList docs. 2023-07-27 15:46:56 +02:00
Panos (Panagiotis Synetos) 4ec75f7b26
Fix hardcoded admin colors, use admin theme colors (#39182) 2023-07-26 14:43:05 +03:00
Chris Runnells a80aaaa0e0 Replace 'end' CSS props with 'flex-end' which has broader browser support 2023-07-24 12:37:41 -10:00
Moon b8a8d48474
Update/39325 typo in core profiler data sharing copy (#39327)
* Fix grammar in data-sharing agreement copy

* Add changelog

* Put ,

* Add brackets

* Move learn more link inside the bracket

* Update test snapshot

* Fix grammar

* Update test snapshot
2023-07-24 12:13:13 -07:00
RJ 615393be39
dev: core profiler pages storybook (#39046)
* dev: core profiler pages storybook

* changed css path to pre-build zip path
2023-07-24 20:34:38 +08:00
Panos (Panagiotis) Synetos 155420f79c
Merge branch 'trunk' into fix/admin-colors-use-theme 2023-07-21 12:12:06 +03:00
Maikel David Pérez Gómez 6f8559dada
Unable to "turn off the new product form" from within the editor (#39317)
* Fix turn off the new block experience when tracking is turned off

* Add changelog file
2023-07-19 12:22:38 -04:00
Panos (Panagiotis) Synetos ea1d08c72a
Merge branch 'trunk' into fix/admin-colors-use-theme 2023-07-19 15:21:30 +03:00
Sam Seay 4a2fd63b99
Use syncpack customTypes to keep pnpm and node in sync. Update pnpm to 8.6.7 (#39245) 2023-07-18 14:27:18 +12:00
RJ 66cee083d4
add: removed avalara task list item (#39238)
* add: removed avalara task list item
2023-07-17 11:32:51 +08:00
Shendy f631a5ed20
Allow registered React-powered page to specify 'parent path' (#39116)
* Allow registered React-powered page to specify 'parent path', so the right menu item can be highlighted.

* Fix linting issue.

* Changelog.

* Add changefile(s) from automation for the following project(s): woocommerce

* Changelog.

* Add changefile(s) from automation for the following project(s): woocommerce

* Changelog.

* Update plugins/woocommerce/changelog/add-override-menu-item-highlight

Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com>

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
2023-07-16 15:23:33 -04:00
Panos (Panagiotis) Synetos 81f0f7879d
Store alerts update - use admin theme colors 2023-07-14 13:51:49 +03:00
Oleksandr Aratovskyi aeaaac9505
Change WooCommerce Payments to WooPayments across the WC Core (#39188)
* Change WooCommerce Payments to WooPayments across the WC Core

* Change WooCommerce Payments to WooPayments across the WC Core

* Add more changelogs

* Add changelog for data package

* Change banner image and task description

* Fix lint error

* Change one more banner image

* Fix to the banner image

* Roll back changelog.txt and fix one condition for backwards compatibility

* Fix in changelog.txt

* Small fix in changelog.txt
2023-07-13 12:58:17 +03:00
Joel Thiessen b7e7d66de8
Adding basic Woo AI settings screen (#38920) 2023-07-12 17:12:03 -07:00
Maikel David Pérez Gómez f6b4cb6e71
Introduce the add and edit view Tracks events in the new form (#39186)
* Add tracking events for product add and edit pages

* Add changelog file
2023-07-12 16:01:06 -04:00
louwie17 c547326135
Update product experiment name (#39210)
* Update product experiment name

* Add changelog
2023-07-12 16:30:04 -03:00
Maikel David Pérez Gómez 96c0c5bd74
On-/offboarding copy updates (#39055)
* Change the modal's description test in the first step of the product block editor tour

* Change the modal's description text in the first step of the product block editor guide

* Change the modal's description text in the second step of the product block editor guide

* Change the modal's title and description text in the third step of the product block editor guide

* Change the modal's description text in the four step of the product block editor guide

* Enhance the Options menu of the product block editor

* Add slide up animation and translucent background to the feedback bottom bar

* Change de CES's modal heading text in the product block editor

* Change the notice message after the feedback is being sent from the CES Modals

* Enhance leave feedback modal checkbox labels

* Change leave feedback modal submit button text

* Show success notice after submit the leave feedback modal

* Add changelog files

* Change the illustration in the first step of the feature tour

* Change the modal's title and description text in the first step of the product block editor tour for old users

* Change the modal's title and description text in the first step of the product block editor guide for old users

* Change the modal's title and description text in the third step of the product block editor guide for old users

* Fix unit tests

* Change the customer effort score changelog description

* Change footer forward button to primary and backward button to tertiary in the tour guide modal
2023-07-10 14:51:55 -04:00
Moon 68ff03063a
Core profiler -- fix the gap at the top on iPad and iPad Mini (#39108)
* Fix unexpected gap on iPad and iPad Mini

* Fix css lint
2023-07-07 10:51:48 -07:00
Gan Eng Chin 990af1f534
Rename "Install plugin" button text to "Install extension". 2023-07-06 23:50:56 +08:00
Nathan Silveira 408ceaa8f7
Fix undismissable store alert when using language localization (#38967)
* Fix error while dismissing the last alert when there's multiple

* Copy action id to localized action

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix lint issue

* Improve implementation and add test

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-07-04 16:54:13 -03:00
Fernando Marichal 00d8e65cf0
Fix grey background when menu collapsed (#38941)
* Fix styles

* Add changelog

* Fix 'adminmenuback' z-index

* Fix header and footer

* Fix header

* Fix lint

* Fix footer

* Fix form background color
2023-07-04 14:59:33 -03:00
Gan Eng Chin ed5737ba87
Call marketing extension recommendations API version 1.3 and support Klaviyo in "Installed extensions" card in Marketing page (#38974) 2023-07-04 17:27:02 +08:00
Chi-Hsuan Huang 3a402a1235
Replace button text "Proceed" with "Continue" to be more consistent (#38961)
* Replace "Proceed" with "Continue" to be more consistent

* Add changelog

* Update button label for WCPay setup step in task list
2023-07-04 11:36:28 +08:00
Moon 7bbffd3284
Update CSS styles for core profiler headers (#39059)
* Remove letter-spacing and use 500 for font-weight

* Add changelog

* Style updates for the header

* Set letter-spacing to normal
* Use 500 for font-weight
* Remove max-width

* Add changelog
2023-07-03 10:54:48 -07:00
Moon 87393e0ef1
Update CSS styles for core profiler headers (#39042)
* Remove letter-spacing and use 500 for font-weight

* Add changelog
2023-06-29 20:16:44 -07:00
Sam Seay 957fb2b07e
Update pnpm to 8.6.5 (#38990) 2023-06-29 16:51:29 +12:00
Nathan Silveira 89129cc62a
Revert "Always show pricing group fields, disable if not available for a product type (#38531)" (#38964)
* Revert "Always show pricing group fields, disable if not available for a product type (#38531)"

This reverts commit 18f2de2bc4.

* Add changelog and fix lint issues

* Remove call to removed function
2023-06-27 12:50:02 -03:00
Gan Eng Chin 9d473adeb7
Make Klaviyo icon shows up in installed extensions card. 2023-06-27 23:36:44 +08:00
Ahmed 2e5b6d1d1d
Add support for 6 new countries in WCPay (#38109)
* Add new countries in isWCPaySupported

* Add new countries in get_wcpay_countries

* Add new countries in default free extension 'woocommerce-payments'

* changelog

* fox linting issue

* Remove support for Czech Republic, Sweden, Hungary

* Revert "Remove support for Czech Republic, Sweden, Hungary"

This reverts commit 0a8309f664.
2023-06-27 18:35:28 +08:00
Moon ac1b5f0b14
Restore plugins selection when there is an error (#38922)
Restore plugins selection when there is installatio error
2023-06-26 17:31:16 -07:00
Moon acfd7dc53f
Prefetch Jetpack connection and auth info (#38929)
* prefetch Jetpack connection and auth info when Jetpack is selected

* Add changelog

* Use pre-exisiting hasJetpackSelected cond
2023-06-26 17:30:46 -07:00
Chi-Hsuan Huang 5fb8183682
Fix Core Profiler UI issues (#38872)
* Fix overlapping button position when the height is less than 667px (iphone SE)

* Fix misaligned check icon on mobile

* Prevent the menu from closing when clicking on a selected item

* Add changelog

* Fix lint

---------

Co-authored-by: moon <moon.kyong@automattic.com>
2023-06-22 20:54:14 -07:00
Moon 30ea01c047
Refresh onboarding profile values on the Homescreen (#38861)
* Use window.location.href for redirection to refresh the page to get the latest onboarding profile values

* Add changelog

* Remove unused import
2023-06-21 22:40:42 -07:00
Joshua T Flowers 6bbc4dad1a
Add missing tracks events to product editor (#38728)
* Only record product update on already published products

* Add source into published product tracks event

* Add missing tracks options to product update event

* Track tab clicks in the editor

* Add source to tab clicks

* Record tracks on preview click

* Add events for media gallery, description, and attributes

* Add tracks events to more menu

* Replace new_product_page with source

* Add changelog entry

* Fix lint errors

* Add tracks for About the Editor menu item

* Add onClick event to AboutTheEditor menu item

* Use dropdown option event for classic editor menu click
2023-06-21 09:38:04 -07:00
Gan Eng Chin f31eca2ec5
Marketing: Do not show "Create a campaign" button if there are no campaign types (#38825) 2023-06-21 19:43:35 +08:00
Gan Eng Chin 04294c4ec8
Simplify code to display buttons in IntroductionBanner. 2023-06-21 18:53:45 +08:00
Ismael Martín Alabarce d31b7866af
Add missing spacing in WCPay welcome incentive page cards (#38819)
* Add missing card spacing for the WCPay welcome incentive cards

* Add changelog entry
2023-06-20 11:12:44 -05:00
Gan Eng Chin 617b51c91d
Add and fix tests for Campaigns component. 2023-06-20 23:03:56 +08:00
Gan Eng Chin c6a5e8ba41
Do not show "Add channels" button when create campaign button is not shown. 2023-06-20 22:13:24 +08:00
Gan Eng Chin 2b477fb93f
Show create campaign button in campaigns card when there are campaign types. 2023-06-20 21:05:27 +08:00
Gan Eng Chin 81c34086fe
Display create campaign button when there are campaign types. 2023-06-20 20:54:45 +08:00
Chi-Hsuan Huang 9509ae8136
Fix help panel links (#38817)
* Fix links under "Help" panel on Home screen

* Add changelog
2023-06-20 18:11:44 +08:00
Vlad Olaru 4fffdf5703
Fix lint issue 2023-06-19 18:50:12 +03:00
Vlad Olaru 2a88ed10b1
Encode URL param to be safe 2023-06-19 18:14:42 +03:00
Vlad Olaru a76d979962
Include incentive ID in connect URL 2023-06-19 18:05:45 +03:00
Ismael Martín Alabarce 1ae97495de
Update WooPayments welcome page incentive logic (#38797)
* Update orders status query to ensure it exclude trash.

* Add incentive ID to every track event

on the welcome incentive page.

* Remove unnecessary SCSS after #38775 fix

* Add changelog entry

* Replace tos_url with tc_url for accurate naming

* Fix phpcs errors

---------

Co-authored-by: Vlad Olaru <vlad@pixelgrade.com>
2023-06-19 15:23:33 +02:00
Vlad Olaru 5e1b6a71f4
Replace tos_url with tc_url for accurate naming 2023-06-19 14:32:57 +03:00
Ismael Martín Alabarce 9b0e5dc89a Remove unnecessary SCSS after #38775 fix 2023-06-19 13:05:01 +02:00
Ismael Martín Alabarce 4afd148e0e Add incentive ID to every track event
on the welcome incentive page.
2023-06-19 13:04:14 +02:00
Moon bc827cf16b
Update/38743 loading changes in core profiler (#38750)
* Skip teh plugin page when all the plugins are activated

* Fix the if statement so that stageIndex becomes 2 when progress is over 60

* Add a 2nd loader stage for the skipped guided setup

* Add changelog

* Lint fix -- css

* fix: banished core profiler page spinners

* addressed pr comments

* update jest snapshot

---------

Co-authored-by: rjchow <me@rjchow.com>
2023-06-19 13:33:28 +08:00
Moon cea0bc143c
Decode HTML entities from store name (#38791)
* Decode store name with HTML entities

* Add changelog
2023-06-18 21:58:16 -07:00
Moon 00e4e94c89
Change select option hover color on core profiler pages (#38724)
* Use theme color for the option hover

* Add Changelog

* Remvoe absolute position -- can't predict correct value for bottom

* Fix css lint error

* Fix button width

* Use gray-0 for dropdown item hover color

* Fix border style for Give your store a name field

* Fix hover color for the platform options

* Remove light color on hover

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-19 11:03:55 +08:00
Ilyas Foo b490e56a40
Various UI fixes in Core profiler steps (#38759)
* Fix font heading font style and adjust main component max width to match design

* Remove redundant #FunWooFact

* Reset button font color to follow admin theme

* Fix Installed label vertical alignment

* Changelog

* Remove permanent borders from consent checkbox, lint fix

* Remove box shadow on checkboxes in plugins page

* Standardize checkbox styling across core profiler

* Fix heading font styling

* Lint

* More lint

* Update snapshot
2023-06-17 13:14:13 +08:00
Ilyas Foo 71a039852f
Fix payment gateway suggestions display logic (#38658)
* add: updated payment gateways for 2023 Q3

* Update payment gateway suggestions display logic, better comments and variable names, added core onboarding profiler option to support offline venue, added IN to paypal visibility rule

* Lint

* Update for better WCPay logic

* Remove accidental imports

* Added return object comment

* More lint

* Changelog

---------

Co-authored-by: rjchow <me@rjchow.com>
2023-06-16 23:46:37 +08:00
Ismael Martín Alabarce 9a49ff72da
Update WCPay welcome page incentives (#38689)
* Initial refactor of components

Move out from index every UI component to make it easier to maintain.

* Initial implementation of new design

Some minor adjustments are missing, and I've added a few TODOs to complete later.

* Add changelog entry

* Finish design update

* Compress menu icon

* Add user's first name to heading copy

* Fetch and cache eligible incentive from WCPay API

Sharing its properties under `window.WcSettings.admin`

* Filter `allowed_promo_notes`

To be able to add those form WCPay API request

* Update JS side to use the new shared incentive details

* Ensure we cache requests even if there are no eligible incentives

* Fix a typo in WCPayBanner

* Move incentive preloaded data from wcSettings

to a new window variable which will be only loaded on WCPay welcome page.

* Simplify `has_wcpay` check

* Render sanitized HTML from incentive description

* Update get incentive logic to also cache non success responses

* Add incentive ID to page view track

* Add changelog entry for the onboarding package

* Update used options names

and add them to `get_default_option_permissions

* Differentiate every dismissed incentive

Reuse WCPay welcome page logic for notes display conditions

* Use tos_url instead of tos_link to match response

* Fix incentives endpoint request payload

* Back to preload incentive on admin shared settings

* Move promo notes filter to where it's used

to avoid any possible race conditions.

* Replace every occurrence of `WooCommerce Payments` with `WooPayments`

* Prevent modal large padding-bottom

* Prevent another global style override on modal

* Fix TS error coming from trunk merge

* Fix wrong style property

* Further restrict WCPay incentives to plugin not active and countries supported

* Adjust the meaning of has_wcpay

* Wait for dismiss option update before redirect

to prevent the side menu entry to be visible after redirecting back to WC admin.

* Enforce TOS asterix at the end of incentive description

* Remove underscore from priavate instance var.

* Fix ESLint error

* Fix SCSS linting issues

* Refine `has_wcpay` and `has_orders`

* Enforce consistent WooPayments branding

* Enforce stricter i18n calls with escape

* Update page title to match new branding

* docs: Enforce branding in code docs also

* Remove method that is unreliable to be used outside of onboarding

* Remove unused constant

* Missing new line

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Vlad Olaru <vlad@pixelgrade.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-16 16:32:58 +02:00
Ilyas Foo 0a50173976
Fix infinite redirect from homescreen to core profiler (#38768)
* Fix infinite redirect using useEffect to remove unintentional rerendering

* Changelog
2023-06-16 20:28:25 +08:00
Ilyas Foo 1e72bb0401
Allow `plugins_page_skipped` parameter in Onboarding API endpoint (#38764)
* Append plugins_page_skipped parameter to onboarding API

* Changelog

* Rename property to is_plugins_page_skipped and fixed tests

* Changelog

* Fix lint
2023-06-16 18:06:58 +08:00
Moon 1a42094e5e
Fix Jetpack redirection issue when the auth endpoint returns an invalid url (#38760)
* Return full response from getJetpackAuth

* Add success and errors

* Redirect to Home in case of an error from getJetpackAuth endpoint

* Add changelog

* Use redirectToJetpackAuthPage

* Replace window.location.href with navigateTo

* Fix type issue with getJetpackAuthUrl

* Update plugins/woocommerce-admin/client/core-profiler/index.tsx

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-06-16 00:56:30 -07:00
Moon 630faadb81
Update/implement connect to jetpack (#38674)
* Add install-and-activate-plugins-async action to onboarding

* Add label and learn_more_link types

* Use label and learn_more_link

* Remove unused imports

* ts fixes

* Visual changes on the plugin page

* Change CTA font size from 13px to 14px
* Change spacing between the chebox and logo to 24px
* Change heading font-weight to 500

* Fix css lint error

* Add back learn more link that was removed from rebase

* Add required packages

* Load Jetpack Config

* Add getJetpackAuthUrl to data/onboarding

* Add Connection Rest Auth -- seems like this is required for Jetpack to communicate back to the connected site

* Add jetpack-authorization-url REST API

* Redirect to Jetpack Auth page after the installatino process if jetpack was selected

* Require can_install_plugins permission for jetpack auth url endpoint

* Update packages/js/data/src/onboarding/resolvers.ts

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce/src/Admin/API/OnboardingPlugins.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Remove automattic/jetpack-sync and its config

* Support redirect_url and from params

* Do not redirect to Jetpack auth if it is already connected

* Add installed_ext_success=1

* Use woocommerce-core-profiler for from value

* Revert unrelated lock file changes

* Minor refactor

* Extracted out isJetpackConnected cond to a guard

* Added meta data for isJetpackConnected to prevent unwanted spinner

* Add Changelog

* Lint fix

* Move Jetpack Connection config init to class-woocommerce

* Add changelog

* Remove unnecessary require

* Note jetpack-authorization-url endpoint is experimental

* Fix broken test

* Add component to sendToJetPackAuthPage state

* Fix lint error

---------

Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-15 20:28:18 -07:00
Moon d51f69d2d7
Update track name prefix for core profiler (#38710)
* Use coreprofiler_ prefix

* Add Changelog

* Track name changes

* Rename intro_optin to intro_opt_in

* Extracted out recordFailedPluginInstallations and recordSuccessfulPluginInstallation to tracks

* Fix js lint error -- remove unused import
2023-06-15 13:37:14 -07:00
RJ 723c68e240
fix: core profiler plugins list race condition (#38732) 2023-06-15 12:45:54 -07:00
Maikel David Pérez Gómez fe7933e7a9
Implement experiment within code for new users (#38700)
* Configure the expiriment to redirect variation treatment to the new product editor

* Add changelog file

* Fix experiment name

* Fix changelog description
2023-06-15 14:42:57 -04:00
Nathan Silveira bfd720c28f
Extract usePublishedProductsCount hook and use it in about-the-editor-menu-item (#38742) 2023-06-15 13:03:18 -03:00
Maikel David Pérez Gómez 2471dcba05
Replace 'use classic editor' with 'Turn off the new product editor' in options menu (#38693)
* Options menu in product editor view should show Turn off the new product editor with some subtext

* Record event product_editor_options_turn_off_editor_click when clicking Turn off the new product form menu item

* Add changelog file
2023-06-15 10:55:11 -04:00