Originally, I aimed to avoid hardcoding the plan/product name, but it is not easily accessible in wc-calypso-bridge, plus we would need to load the plan/product name based on its slug - as the trial site won't have the full "Entrepreneur" plan/product name assigned to it anyways.
The changes proposed in this PR are targeting Entrepreneur Trial plan, however, due to technical limitations, we will only perform a partial test on a "full" Entrepreneur plan site.
If you don't have your WoA test site yet, please follow the steps outlined in pdDOJh-3ob-p2 and create a test site with Entrepreneur plan (the plan can be added through the SA).
Check out the PR and sync it with your WoA test site on an Entrepreneur plan.
Navigate to /wp-admin/admin.php?page=wc-admin and review the Welcome note. It should include correct copy - as can be seen in the After screenshot above.
Other information:
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes, as applicable?
FOR PR REVIEWER ONLY:
[ ] I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.
Changes proposed in this Pull Request:
The proposed change addresses issue discovered in https://github.com/Automattic/dotcom-forge/issues/7220#issuecomment-2186585648 where incorrectly used plan name is causing confusing "Welcome" note message.
Originally, I aimed to avoid hardcoding the plan/product name, but it is not easily accessible in
wc-calypso-bridge
, plus we would need to load the plan/product name based on its slug - as the trial site won't have the full "Entrepreneur" plan/product name assigned to it anyways.The proposed solution has advantage compared to the old Woo Express plan code (https://github.com/Automattic/wc-calypso-bridge/pull/1471/files#diff-26640952f8341c7dd518fee8f2bccdc3bcefefe943c53b992ff0bb4cf1da0876L38) where the plan name was hardcoded as well, but also was a part of the translated string. With the currently proposed PR, if the plan ever changes in the future, there won't be any need for new translations.
Related discussion: p1720687546715789-slack-C02TCEHP3HA
How to test the changes in this Pull Request:
The changes proposed in this PR are targeting Entrepreneur Trial plan, however, due to technical limitations, we will only perform a partial test on a "full" Entrepreneur plan site.
If you don't have your WoA test site yet, please follow the steps outlined in pdDOJh-3ob-p2 and create a test site with Entrepreneur plan (the plan can be added through the SA).
/wp-admin/admin.php?page=wc-admin
and review the Welcome note. It should include correct copy - as can be seen in the After screenshot above.Other information:
FOR PR REVIEWER ONLY: