Skip to content

Add onboarding description for the Square Gift Cards toggle - #598

Closed
iris-woocommerce[bot] wants to merge 2 commits into
trunkfrom
ai/agent/iris-20791-1794597235
Closed

iris-woocommerce[bot] wants to merge 2 commits into
trunkfrom
ai/agent/iris-20791-1794597235

Conversation

@iris-woocommerce

@iris-woocommerce iris-woocommerce Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

All Submissions:

  • Does your code follow the WooCommerce Sniffs variant of WordPress coding standards?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Will this change require new documentation or changes to existing documentation?

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 description prop of the boxed InputWrapper, which already renders below the box. There is no new markup or styling. The string is translatable (woocommerce-square text 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:

  1. Build the assets (npm run build:webpack) and connect a Square account.
  2. Go to WooCommerce → Square Onboarding, continue to the "Enable Payment Methods" step, and confirm the description appears below "Enable Square Gift Cards".
  3. Open the Gift Cards step of onboarding and confirm the same description appears below the toggle.

Checks run: npm run lint:js (pass) and npm 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

Add - Short description below the Enable Square Gift Cards toggle in onboarding.

🤖 Generated with Claude Code


Co-authored-by: zaguiini luis.felipe.zaguini@automattic.com

Created by Iris. Please review carefully before merging.

Verification evidence

npm run build:webpack compiled successfully, and npm run lint:js passed with no errors.
curl http://localhost:8080/wp-login.php returned 302 (site up). wp plugin list showed 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_tokens via wp eval (is_connected() returned true). I deleted the option afterwards; it did not exist before.
Playwright opened WooCommerce → Square Onboarding, set the onboarding step in localStorage to payment-methods and gift-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

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>
@github-actions

Copy link
Copy Markdown

This is linked to GitHub issue #599.

@iris-woocommerce

iris-woocommerce Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Author
Agent Sandbox PR state — pending

Managed by the Agent Sandbox pipeline — do not edit manually.

{
    "status": "idle",
    "active_run_id": null,
    "last_run_at": "2026-11-13T19:22:58Z"
}

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Test the build

WordPress 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:

  • Latest commit: 52494cb
  • Build time: 2026-11-13 19:23:21 UTC

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>
@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@iris-woocommerce

Copy link
Copy Markdown
Author

Agent Sandbox updated this PR's code and description.

@github-actions

Copy link
Copy Markdown

This is linked to GitHub issue #600.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue for PR #598: Add onboarding description for the Square Gift Cards toggle

1 participant