feat(returns): Customer Returns Intake + QC (sub-project F2)#147
Open
ecommeanblvd wants to merge 12 commits into
Open
feat(returns): Customer Returns Intake + QC (sub-project F2)#147ecommeanblvd wants to merge 12 commits into
ecommeanblvd wants to merge 12 commits into
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…s (F2) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… (F2) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Code reviewFound 2 issues:
Shopify-Management-System/features/returns/actions.ts Lines 108 to 150 in 6107be8
Shopify-Management-System/app/(dashboard)/f/returns/page.tsx Lines 34 to 38 in 6107be8 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
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.
What this changes
Internal customer returns intake + QC module (
/f/returns). Records returned goods against a Shopify order, QC per-line with pass/fail quantities, restocks QC-passed units intowarehouseInventory, and displays Shopify refund status with a reconciliation flag. Does not push refunds to Shopify — refund status is read-only from the already-syncedshopifyOrderRefunds.customer_returns+customer_return_lines(+customer_return_statusenum), migration0048.features/returns/logic.ts, 17 tests): code format, draft/QC validation, restock delta, refund reconcile flag.queries.ts): list / detail / order picker / over-return guard.actions.ts):createReturn,submitReturnQc(transactional restock, idempotent via status guard),cancelReturn. Server-side over-return + line-membership guards.warehouse.returnspermission (operator+admin); nav entry/f/returns.Stacked on C1 (
feat/order-ops-warehouse-transfers) — merge after C1. Includes the F2 spec + plan docs.Shopify impact
warehouse.returnsis an internal RBAC permission)Checklist
npm run typecheckpasses (tsc --noEmitclean;npm run buildsucceeds)🤖 Generated with Claude Code