fix(products): redirect unknown product id to list instead of dangling URL#1742
fix(products): redirect unknown product id to list instead of dangling URL#1742Shreyag02 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a useEffect hook to ProductsView that, after product list loading completes without error, detects if selectedProductId does not match any loaded product and invokes onCloseDetail to clear the detail sheet state. ChangesProducts detail auto-close
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report for CI Build 28931371043Coverage remained the same at 44.879%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Summary
Fixes the /products/create staging URL, which rendered the Products list page but left the URL stuck at /products/create. There is no product-create page in the admin UI (products are managed directly in the DB via YAML), so any unresolved product id now cleanly falls back to the list.
Changes
Technical Details
Test Plan
SQL Safety (if your PR touches
*_repository.goorgoqu.*)N/A