fix: re-enable checkout submit buttons on unblock (validation errors, API failures)#1227
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 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 |
MERGE_SUMMARYIssue: #1225 - Checkout submit button stays disabled after provisioning failure Implementation: Modified Testing:
Files Changed:
Acceptance Criteria Met:
|
SummaryFixes issue #1225: checkout submit button stays disabled after provisioning failure. ChangesModified Testing
Acceptance Criteria
aidevops.sh v3.15.64 plugin for OpenCode v1.15.5 with claude-haiku-4-5 spent 3m and 3,198 tokens on this as a headless worker. Merged via PR #1227 to main. |
🔨 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: |
|
Performance Test Results Performance test results for 3535da9 are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
Summary
Fixes issue #1225: checkout submit button stays disabled after provisioning failure.
PR #1222 correctly disabled submit buttons during checkout provisioning but the re-enable path was incomplete. On validation errors and API failure callbacks that call
unblock(), the submit buttons remained disabled, leaving users unable to retry without a page reload.Changes
Modified
assets/js/checkout.jsto re-enable submit buttons in theunblock()method. This ensures that whenever the loading spinner is dismissed (on errors or validation failures), the submit buttons are also re-enabled, allowing users to retry their submission.Testing
Acceptance Criteria
unblock()call sites in the checkout form submit handler also re-enable submit buttonsResolves #1225
aidevops.sh v3.15.64 plugin for OpenCode v1.15.5 with claude-haiku-4-5 spent 3m and 3,198 tokens on this as a headless worker.