Skip to content

feat: Separate order states and add fulfillment operations - #40

Merged
codejagaban merged 7 commits into
mainfrom
feat/order-fulfillment
Nov 4, 2026
Merged

codejagaban merged 7 commits into
mainfrom
feat/order-fulfillment

Conversation

@codejagaban

@codejagaban codejagaban commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Orders previously reused one status for payment outcomes and fulfillment. This adds independent order, payment, fulfillment, and return states, with a historical backfill that preserves existing totals and avoids inventing delivery or payment evidence.

Administrators can prepare paid orders, dispatch partial quantities, edit tracking, record delivery, complete orders, and cancel unshipped orders through authenticated workflow endpoints. Version claims and request IDs prevent stale or duplicate shipment writes. Cancellation restores stock once; refunds and shipments do not imply inventory returns. Shipment notifications commit to a durable outbox and can be retried after email failures.

The admin and customer controls are in a separate stacked PR.

Validation: local unit/integration checks pass; historical migration/backfill and rollback/reapply rehearsal passes and now runs in CI. This PR is stacked on security PR #42, which fixes all critical/high/moderate production findings. Its one remaining low-severity deepmerge advisory has no upstream patch and still fails the unchanged audit gate. Do not bypass that gate to merge this PR.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nextjs-ecomstore Ready Ready Preview Nov 4, 2026 5:48pm UTC

@codejagaban
codejagaban force-pushed the feat/order-fulfillment branch from 35c4461 to c41d89f Compare November 4, 2026 17:46
@codejagaban
codejagaban changed the base branch from fix/release-security to main November 4, 2026 17:52
@codejagaban
codejagaban merged commit c41d89f into main Nov 4, 2026
3 checks passed
@codejagaban
codejagaban deleted the feat/order-fulfillment branch November 4, 2026 17:54

This branch was successfully deployed

2 active deployments
Production — c41d89fc Deployed Nov 4, 2026 by vercel[bot]
Preview — c41d89fc Deployed Nov 4, 2026 by vercel[bot]
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