Skip to content

Fix pricing, optimize orders, and add duplicate order - #1

Open
Mathew-Thannickal wants to merge 1 commit into
MulearnMCE:masterfrom
Mathew-Thannickal:fix/orbitstack-qualifying-tasks
Open

Fix pricing, optimize orders, and add duplicate order#1
Mathew-Thannickal wants to merge 1 commit into
MulearnMCE:masterfrom
Mathew-Thannickal:fix/orbitstack-qualifying-tasks

Conversation

@Mathew-Thannickal

Copy link
Copy Markdown

Summary

  • Fixed the stacked free-shipping pricing bug for Pro accounts.
  • Optimized dashboard order loading by removing the N+1 query pattern.
  • Added a compound database index for user order-history queries.
  • Added an authenticated Duplicate Order API and dashboard button.
  • Added ownership, product availability, and stock validation.
  • Updated AI_LOG.md, documentation, and regression tests.

Verification

  • npm test — passed
  • npm run lint — passed
  • npx tsc --noEmit — passed
  • npx prisma validate — passed
  • npm run build — passed

Remaining limitation

Product availability is checked when an order is duplicated and checked again during checkout because stock may change while products remain in the cart.

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.

1 participant