Fix store links, sanitize The Wire content, tenant scoping, and admin auth/notifications#15
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces multiple enhancements across cart operations, conditions display, content sanitization, encryption migration support, and admin features. Changes include proper error handling and encoding in cart operations, UI improvements with Framer Motion, HTML sanitization for post content using DOMPurify, enhanced encryption options for migrations, and real audit log integration for notifications. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (20)
Comment |
Motivation
dangerouslySetInnerHTML.Description
encodeURIComponentwhen removing cart items (_contexts/CartContext.tsx), replaced nested buttons insideLinkwith styled anchors in condition pages (conditions/[id]/page.tsx), and converted relativeLinkhrefs to absolute paths inconditions-client.tsx.validateFormin store login to only run the email regex when a value exists, and removed a duplicatedSubtotallabel in the order page (orders/[orderId]/page.tsx).templateSlugcheck and fallback forTEMPLATE_COMPONENTSinpage.tsx, addedres.okchecks and richer error messages for product fetches (products/[id]/page.tsx), corrected The Wire relation usage fromauthor→usersand sanitized HTML withisomorphic-dompurifyin the post page, and fixed the not-found back link.getServerSession()usages togetServerSession(authOptions)and tightened role checks in admin pages, replaced mock notifications with real audit-log based notifications insuper-admin/layout.tsx, masked tenant secret/API keys in settings, added tenant-aware Prisma/tenant-context plumbing and scoped DB middleware, and added safer webhook UI behavior including masked secrets and a show/hide control (tenant-admin/webhooks/page.tsx).Testing
isomorphic-dompurifyvianpm install isomorphic-dompurify@^2.25.0, which failed with a403 Forbiddenfrom the registry so the runtime dependency could not be verified locally.Codex Task
Summary by CodeRabbit
Release Notes
Bug Fixes
New Features
UI/UX Improvements
✏️ Tip: You can customize this high-level summary in your review settings.