Bumps next + eslint-config-next 14.2.35 → 15.5.21. React stays on 18
(Next 15 supports React ^18.2.0), so no forced React 19 migration.
Clears all 15 open next-related Dependabot alerts (4 high) — the highest
patched version required is 15.5.16, so jumping to Next 16 would add
breakage (React 19, Turbopack default) for zero additional security gain.
Next 15 breaking-change migration:
- Async request APIs: params/searchParams awaited in the 6 dynamic pages
that consume them as props; cookies() is now async, so
createRouteHandlerClient() became async (9 call sites awaited).
- next.config: serverComponentsExternalPackages → top-level
serverExternalPackages (renamed/destabilized in Next 15).
- typedRoutes tightening: object href {pathname, hash} is no longer
accepted → string href "/path#hash" (4 governance pages).
- eslint: ignore the Next-generated next-env.d.ts (Next 15 adds a
triple-slash routes.d.ts reference that trips no-triple-slash-reference).
Verified: `next build` green — compiles, type-checks, lints, and
prerenders all 81 pages. Client components using the useParams()
hook are unaffected and left untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replaced imports in lib/api-utils.ts (-> ./supabase-server) and
app/auth/callback/page.tsx (-> @/lib/supabase) with existing local
wrappers. Removed the deprecated package from dependencies.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove duplicate ApiResponse, apiSuccess, apiError, withErrorHandling,
requireAuth, ERROR_MESSAGES from lib/api-utils.ts — only verifyUser
was actually imported anywhere. Response utils SSOT is lib/api/responses.ts
- Archive 14 historical LEX-era design docs to docs/archive/ — docs/
now has only 9 active reference files (down from 29)
- Remove mock data and placeholder images from Amazon/Ricardo platform
integrations — functions return [] until real APIs are implemented
- Update platform tests to match actual behavior
- Fix README.md: update backend tech (Groq/OpenRouter), add Supabase
to prerequisites
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add @~/.claude/CLAUDE.md import for global engineering standards
- Update Last Updated date to 2026-01-23
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Refactored multiple API routes and components to improve code organization and reduce duplication:
- Simplified API route implementations across chat, documents, consultations, and other endpoints
- Reorganized navigation components for better maintainability
- Added shared utility functions and hooks
- Created reusable Avatar and Logo components
- Added validation schemas and API utilities
- Improved type definitions and constants management
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>