Skip to content

feat: user orders — checkout, order history, and per-user carts - #46

Merged
Am1its merged 19 commits into
mainfrom
feat/user-orders
Jul 4, 2026
Merged

Am1its merged 19 commits into
mainfrom
feat/user-orders

Conversation

@Am1its

@Am1its Am1its commented Jul 2, 2026

Copy link
Copy Markdown
Owner
  • Adds a full checkout flow (/checkout): delivery + payment form, order
    summary 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.
  • Adds order history (/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).
  • Cart is now scoped per user id (localStorage key epicure-cart-{userId}),
    with a conflict-resolution prompt when logging in with items saved from a
    previous session vs. the current anonymous cart.
  • Backend: POST /api/orders + GET /api/orders, proxying Strapi via a
    service-level STRAPI_ADMIN_TOKEN for reliability across DB resets, while
    still resolving and trusting the caller's real user id (via /api/users/me)
    so Strapi's per-user ownership checks stay correct.
  • Mobile-specific polish pass on checkout: header X + centered logo, full-width
    "COMPLETE PAYMENT" button with the total above it, order-history entry point
    restored in the mobile cart panel.

Amit Oved 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.
@Am1its
Am1its requested review from OhayoNB and leesharon as code owners July 2, 2026 08:56
@Am1its Am1its changed the title Feat/user orders feat: user orders — checkout, order history, and per-user carts Jul 2, 2026
@Am1its
Am1its changed the base branch from chore/backend-cleanup to main July 4, 2026 10:57
@Am1its
Am1its merged commit ffdd853 into main Jul 4, 2026
1 check passed
@Am1its
Am1its deleted the feat/user-orders branch July 4, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants