Repository navigation
feat: implement storefront SPA and backend state sync, fixes, and tests - #3
Merged
Merged
Conversation
- Order.RegressCheckoutState: backward transitions (Payment->Delivery, Payment->Address, Delivery->Address) for Draft orders so customers can re-pick address, shipping, or payment before placing the order. - RegressCheckoutStateCommand + handler (cross-module, webhook-driven). - UpdateCheckout regresses Payment->Delivery when the address changes; SelectShippingRate regresses Payment->Delivery when the method changes. - CreatePaymentIntent accepts Delivery or Payment (retry); at Payment it voids stale non-completed captures and re-reserves stock. - checkout.session.expired webhook regresses the cart Payment->Delivery so an abandoned Stripe session no longer leaves the order stuck. - Store SPA watcher clears payment context on any regression out of Payment.
…etion, map full-refund
AddToCart now validates the variant before mutating the cart: it must be published, its product active, carry a non-negative price, and have enough available stock for the requested quantity. Adds IStockItemService to the handler and uses the variant's actual price instead of a zero fallback. Extends the handler test suite with a seeding helper for active products and coverage for the new guard branches.
Adds a max-length rule for SpecialInstructions to both the admin UpdateOrderAdmin validator and the storefront UpdateCheckout validator, mirroring the existing email rule pattern. Adds the TestHost package to the unit-test project for future endpoint-level tests.
…pment dropdown - Add Payment State and Checkout State severity Tags to the order overview, replacing the raw checkout-state text. - Add an editable Special Instructions field persisted via OrderApi.updateOrder. - Include the current status in the shipment status dropdown options so the Select renders the actual state (previously blank because the current status is never one of its own reachable targets). Adds matching OrderDetail spec coverage for the dropdown and overview tags.
…actions - Add an optional Special Instructions field to the checkout review step, persisted before placing the order and exposed on the checkout composable and UpdateCheckoutRequest. - Surface the server's rejection reason (e.g. out of stock) instead of a generic "Failed to add item" message in the cart and quick-add flows. - Suppress the anchor default on ProductGridCard quick-add / wishlist / quick-view so card navigation no longer fires when clicking the actions. Adds/updates component spec coverage for the card handlers and checkout.
…ory plan notes The Stripe checkout line-items design was superseded by the implemented per-product lines feature and its plan; the file is removed. The payment-inventory correctness plan gains the Phase 2 completion record and follow-up notes from the recent ordering fixes.
phase-1 and phase-2 reports were force-added during an earlier SDD plan; the workspace has since been deleted, so drop the tracked copies.
…shipment statuses
|
lgtm! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feature/implement-storefront→devImplements the storefront SPA and the backend features/fixes that power it, plus thesis review-remediation documentation. 748 commits ahead of
dev.Highlights
Storefront SPA (
app/Store)Admin SPA (
app/Admin)Backend (ordering / billing / inventory / shipping / catalog)
Tests
Docs / thesis
Notes
thesis/main_copy.pdfis included in this branch; flag if it should be excluded before merge.