Repository navigation
Add onboarding description for the Square Gift Cards toggle - #598
iris-woocommerce[bot] wants to merge 2 commits into
Conversation
Show "Let customers buy and pay with Square Gift Cards at checkout." under the Enable Square Gift Cards toggle on both onboarding screens that render it: the Enable Payment Methods step and the Gift Cards step. Co-authored-by: matticbot <matticbot@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This is linked to GitHub issue #599. |
Agent Sandbox PR state — pendingManaged by the Agent Sandbox pipeline — do not edit manually. {
"status": "idle",
"active_run_id": null,
"last_run_at": "2026-11-13T19:22:58Z"
} |
Test the buildWordPress Playground - runs in your browser
ℹ️ Neither can connect to Square: signing in to Square has to send you back to the site, and a site that runs in your browser tab has no public address to come back to. Without a connection the store cannot take payments, sync products or receive webhooks, so the previews show what a merchant sees before connecting. Do not enter Square access tokens or other credentials in a preview. The links stop working 14 days after the last build. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Change the description to "Let customers buy and redeem Square Gift Cards at checkout." on both onboarding screens. Co-authored-by: matticbot <matticbot@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
|
Agent Sandbox updated this PR's code and description. |
|
This is linked to GitHub issue #600. |
All Submissions:
Changes proposed in this Pull Request:
Adds a short description below the Enable Square Gift Cards toggle in onboarding: "Let customers buy and redeem Square Gift Cards at checkout."
The toggle appears on two onboarding screens, and both now show the description:
src/new-user-experience/onboarding/steps/payment-methods/index.js: the "Enable Payment Methods" step.src/new-user-experience/onboarding/steps/gift-card/index.js: the "Gift Cards" step. This only applies to the onboarding view (origin !== 'settings'). The settings-page variant has no toggle and is unchanged.The text goes through the existing
descriptionprop of the boxedInputWrapper, which already renders below the box. There is no new markup or styling. The string is translatable (woocommerce-squaretext domain).Backward compatibility: no public PHP or JS API, hook, script handle, or persisted setting changed. This only adds a UI string.
No new tests: this is static copy. The onboarding e2e spec (
tests/e2e/specs/nux/a1.steps.spec.js) needs a live Square sandbox connection, which this environment cannot reach, so I did not add an assertion I could not run.Closes # .
Steps to test the changes in this Pull Request:
npm run build:webpack) and connect a Square account.Checks run:
npm run lint:js(pass) andnpm run build:webpack(pass). The site was checked with Playwright (screenshots are in the evidence below). PHPUnit/phpcs: not applicable, since no PHP changed. E2E: not run, because the tests environment containers are not running and the specs need a Square sandbox connection.Changelog entry
🤖 Generated with Claude Code
Co-authored-by: zaguiini luis.felipe.zaguini@automattic.com
Verification evidence
npm run build:webpackcompiled successfully, andnpm run lint:jspassed with no errors.curl http://localhost:8080/wp-login.phpreturned 302 (site up).wp plugin listshowed woocommerce 11.3.0 and woocommerce-square 5.5.3 active.To get past the connect screen, I temporarily stored an encrypted dummy token in
wc_square_access_tokensviawp eval(is_connected()returned true). I deleted the option afterwards; it did not exist before.Playwright opened WooCommerce → Square Onboarding, set the onboarding
stepin localStorage topayment-methodsandgift-card, and found "Let customers buy and redeem Square Gift Cards at checkout." visible on both: onboarding-payment-methods.png and onboarding-gift-card.png.!onboarding-gift-card.png
!onboarding-payment-methods.png
Closes #600