-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add additional question to CES modal #35680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…s score component
Test Results SummaryCommit SHA: 28d7ca3
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
| comments: string | ||
| ) => void; | ||
| title: string; | ||
| firstQuestion: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that these are currently hardcoded in fairly brittle fashion, but that was the approach decided on in the original issue.
plugins/woocommerce-admin/client/two-column-tasks/completed-header.tsx
Outdated
Show resolved
Hide resolved
|
|
||
| $this->enqueue_to_ces_tracks( | ||
| array( | ||
| 'action' => self::SHOP_ORDER_UPDATE_ACTION_NAME, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This event is also triggered when the order is created, is that expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this as well, but this was the preexisting behavior so I'd assumed it was expected. We could loop in @pmcpinto . I know it's triggered when we create the order manually through wc-admin. Glancing at the code it's triggered by a change in the order post status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the way it's working now is fine. Thanks for the heads up.
plugins/woocommerce-admin/client/customer-effort-score-tracks/data/actions.js
Outdated
Show resolved
Hide resolved
octaedro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @joelclimbsthings! This is testing well here and code looks mainly good. I just left a couple of small comments and questions.
|
Thanks @octaedro , I believe I've made the requested changes, although pending Pedro's feedback if we like regarding the order creation event. I also had to direct some attention to the customer effort score tests. It seems that they're not run when you run the command from the root of the monorepo? 🤔 |
octaedro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @joelclimbsthings!
It seems that they're not run when you run the command from the root of the monorepo?
I would create a new issue to handle that in a follow-up PR.
I'm going to pre-approve this PR, waiting for Pedro's feedback.
|
Hi @joelclimbsthings , just want to let you know that the changed CustomerEffortScore component is causing an issue in Google Listings and Ads extension that make use of the component. See issue woocommerce/google-listings-and-ads#1836. I noticed that the https://github.com/woocommerce/woocommerce/blob/16386238cccdb2dfe2197832d0c169c3df261958/packages/js/customer-effort-score/README.md is outdated and does not match the code in https://github.com/woocommerce/woocommerce/blob/16386238cccdb2dfe2197832d0c169c3df261958/packages/js/customer-effort-score/src/customer-effort-score.tsx. Could you get it updated please? It would be really helpful for us who use the component. Will there be a new npm package version release for https://www.npmjs.com/package/@woocommerce/customer-effort-score? |
I would suggest to do the next tweaks to make the component backwards compatible:
|
|
Here you can find a PR I did yesterday. I guess that covers the main pain point which is to have second Option as not mandatory and the fallback for the title |
All Submissions:
Changes proposed in this Pull Request:
Reworking CES modal to present two distinct questions for every CES event site wide, although with subtle styling and UI changes.
Closes #35124 .
Screenshots
How to test the changes in this Pull Request:
localStorage.setItem( 'debug', 'wc-admin:tracks' );in the console to view tracks events.wcadmin_ces_feedbackfires with the correctaction,score,score_second_questionandscore_combinedproperties.Change settings
WooCommerce -> Settingsand change any setting.Add attribute
Add product category
Add product tag
Add new product
Update product
Update order
Search
Import products
Filter Analytics
Setup task list
Other information:
pnpm --filter=<project> changelog add?FOR PR REVIEWER ONLY: