8 Commits
Author SHA1 Message Date
g-butandClaude Opus 4.6 8e637e3508 refactor(lib): remove 30 debug console statements from lib/
Removed noise console.info/error from blog.ts (20), knowledge.ts (6),
nlp.ts (2), api/responses.ts (1), platforms/ricardo.ts (1),
platforms/amazon.ts (1). Kept legitimate error boundaries in
llm-client.ts, email/service.ts, and middleware/monitoring.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 17:23:12 +01:00
g-butandClaude Opus 4.6 2d5dc85501 refactor: remove dead code, archive historical docs, fix README
- 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>
2026-02-10 10:46:04 +01:00
g-butandClaude Opus 4.5 1c7abeebac docs(claude): add global standards reference and update date
- 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>
2026-01-23 15:22:36 +01:00
g-butandClaude Opus 4.5 da5e38e209 fix: improve test suite reliability and configuration
- 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>
2026-01-11 17:18:52 +01:00
g-butandClaude Opus 4.5 2e39380356 feat: add strict ESLint config and fix all lint issues
- 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>
2026-01-11 16:47:56 +01:00
g-butandClaude Opus 4.5 532457299e refactor: major codebase cleanup and consolidation
## Dead Code Removed
- lib/nlp.ts (418 lines - unused duplicate)
- DemoSection.old.tsx (obsolete file)
- src/components/bots/BotPage.tsx (never imported)
- TextGenerator.tsx & EmailGenerator.tsx duplicates

## Unused Packages Removed
- @sendgrid/mail (not used - only AWS SES active)
- mailgun.js (not used)
- form-data (not used)

## Structure Consolidated
- Moved all src/lib/* to lib/ (SSOT)
- Moved src/components/navigation/* to components/
- Removed empty src/ directory
- Updated all imports to use @/lib/

## Type Fixes
- Fixed implicit any types in WorkspaceDashboard.tsx
- Fixed type union in AICaseAnalysis.tsx
- Fixed typed routes issue in page.tsx
- Fixed MongoDB module load-time error

## Build
- npm run build passes successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 00:01:42 +01:00
Devin AIandcato cd4c9df2ac chore: clean up obsolete files and consolidate code
Co-Authored-By: G <butaeff@gmail.com>
2025-02-09 20:24:14 +00:00
Devin AIandcato 247a0f50a5 feat: implement auto-shopper with rate limiting
Co-Authored-By: G <butaeff@gmail.com>
2025-02-08 17:21:55 +00:00