Feat/ecommerce services and UI#51
Merged
Merged
Conversation
…antity update Cart is now deleted on checkout, prices fetched from inventory, shipping_address nullable for carts, and items support per-line quantity changes.
Events were emitted snake_case, so the orders saga never matched payment.completed and orders stalled before confirmation.
Remove unused imports/vars, scope the lint glob to src/ (test/ isn't in tsconfig), and apply the repo's prettier formatting that eslint --fix normalizes.
… to payments Move the all-files pre-commit run into its own workflow that installs terraform/tflint so those hooks actually execute; payments-lint now only runs payments deep checks.
PRs only lint what they touch (no blocking on unrelated drift); main runs --all-files as a drift guard. Terraform hooks left to terraform.yml. Documents the local pre-commit loop in docs/local-development.md.
…rvice spec addToCart/createOrder now fetch real prices via fetch(), and removeFromCart loads the cart from the DB — the specs now stub global.fetch and orderRepository.findOne to match.
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
Completes the e-commerce app: adds the 4 missing services + a web UI, and closes
the order saga loop (
order.shipped/order.delivered).New services
user.registeredshipment.*Fixes to existing services
shipment.*→order.shipped/delivered), realpricing, cart cleanup on checkout, remove + quantity stepper.
Saga (now complete)
created → reserved → paid → confirmed → shipped → delivered(failure →
cancelled)Run it