fix: clarify checkout step loading copy#1408
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR adds step-specific loading messages to the checkout flow. The backend now exposes an ChangesStep-Specific Checkout Loading Messages
Sequence DiagramsequenceDiagram
participant User
participant Backend
participant Frontend
participant DOM
Backend->>Backend: get_checkout_variables()
Backend->>Frontend: Pass is_last_step + recording_responses
User->>Frontend: Submit checkout form
Frontend->>Frontend: Check wu_checkout.is_last_step
alt is_last_step = true
Frontend->>DOM: Display "Provisioning your site…"
else is_last_step = false
Frontend->>DOM: Display "Recording Your Responses…"
end
DOM->>User: Show loading spinner with status
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
Verification
vendor/bin/phpcs inc/checkout/class-checkout.php tests/unit/Checkout_Step_Fields_Test.phpvendor/bin/phpunit --filter Checkout_Step_Fields_Testeslint assets/js/checkout.js --ignore-pattern '*.min.js'(via local hook/lint-staged during commit)aidevops.sh v3.20.55 plugin for OpenCode v1.17.3 with gpt-5.5
Summary by CodeRabbit
New Features
Tests