- 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>
- Add TextEncoder/TextDecoder polyfills for MongoDB/Mongoose tests
- Mock AWS SES client in email service tests
- Fix platform tests to properly handle missing credentials
- Skip MongoDB integration tests when MONGODB_URI not available
- Restore env vars between tests to prevent test pollution
- Install node-mocks-http for API route testing
Test suite: 11 passed, 1 skipped (integration test)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add .eslintrc.json with strict TypeScript and React rules
- Fix all unused imports and variables (prefix with _ or remove)
- Replace all `any` types with `unknown` or specific types
- Fix React hooks rule violations (conditional hooks, deps)
- Change console.log to console.info per project standards
- Add eslint-disable comments for legitimate img element uses
- Fix anonymous default exports
- Update package.json with ESLint 8 and proper lint scripts
Lint: 0 warnings, 0 errors
Build: passes successfully
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>