feat: user orders — checkout, order history, and per-user carts - #46
Merged
Merged
Conversation
added 18 commits
June 30, 2026 22:56
Adds /checkout page with two-column layout (form + order summary), card/delivery validation helpers, and SCSS for checkout, success modal, order summary modal, and order history page stubs.
…post-login nav on choice
… button, pay button
OhayoNB
approved these changes
Jul 2, 2026
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.
/checkout): delivery + payment form, ordersummary sidebar, and a post-payment confirmation with a 90-minute arrival
countdown. On mobile the confirmation is a dismissible banner under the
header rather than a modal; desktop keeps a centered dialog.
/orders) and a per-order summary modal with"order again" (re-adds a past order's items to the cart, with an in-place
confirm view if it conflicts with what's already in the cart).
epicure-cart-{userId}),with a conflict-resolution prompt when logging in with items saved from a
previous session vs. the current anonymous cart.
POST /api/orders+GET /api/orders, proxying Strapi via aservice-level
STRAPI_ADMIN_TOKENfor reliability across DB resets, whilestill resolving and trusting the caller's real user id (via
/api/users/me)so Strapi's per-user ownership checks stay correct.
"COMPLETE PAYMENT" button with the total above it, order-history entry point
restored in the mobile cart panel.