Skip to content

Latest commit

 

History

History
73 lines (61 loc) · 2.95 KB

File metadata and controls

73 lines (61 loc) · 2.95 KB

StormCom Code Review Index

Date: 2025-01-29 (Updated)
Branch: copilot/sub-pr-50

This index links to both high-level categorized reviews and detailed per-file deep dive analyses for the Next.js 16 multi-tenant e‑commerce application.

📋 Quick Links

High-Level Category Reviews

  • Architecture Overview: ./architecture-overview.md
  • Database Schema: ./database/prisma-schema.md
  • App Router: ./app.md
  • Components
    • Analytics: ./components/analytics.md
    • Attributes: ./components/attributes.md
    • Audit Logs: ./components/audit-logs.md
    • Auth: ./components/auth.md
    • Brands: ./components/brands.md
    • Bulk Import: ./components/bulk-import.md
    • Categories: ./components/categories.md
    • Checkout: ./components/checkout.md
    • GDPR: ./components/gdpr.md
    • Integrations: ./components/integrations.md
    • Layout: ./components/layout.md
    • Orders: ./components/orders.md
    • Products: ./components/products.md
    • Storefront: ./components/storefront.md
    • Stores: ./components/stores.md
    • Theme: ./components/theme.md
    • UI: ./components/ui.md
    • Root (theme-provider): ./components/root.md
  • Libraries (lib): ./lib.md
  • Services: ./services.md
  • Hooks: ./hooks.md
  • Contexts: ./contexts.md
  • Providers: ./providers.md
  • Emails: ./emails.md
  • Types: ./types.md

Detailed Per-File Deep Dives (NEW)

Status: 16 of 301 files analyzed (5.3% complete)

Application Pages

API Routes

  • API Route Handlers - auth, products, orders, checkout (5 endpoints) ⚠️ CRITICAL ISSUES FOUND

Pending Reviews

  • Remaining API routes (70 files)
  • Services layer (30 files)
  • Components (83 files)
  • Lib utilities (34 files)
  • Hooks, contexts, providers (8 files)

Review Rubric (applies to every file):

  • Next.js 16 compliance (async params/searchParams; cookies/headers/draftMode as async; Proxy usage)
  • Server vs Client boundaries (no client-only APIs in server components; 'use client' where needed)
  • Multi-tenancy (storeId filtering, soft delete awareness)
  • Validation & security (Zod, auth checks, CSRF, rate limiting, secrets handling)
  • Performance (select fields, Suspense/loading, caching, bundle size, N+1 avoidance)
  • Accessibility (WCAG AA, ARIA, focus rings, contrast, keyboard support)
  • Testing (unit/integration coverage hints, E2E critical paths)
  • Size limits (file < 300 lines, function < 50 lines)