Commit graph

5 commits

Author SHA1 Message Date
Lilith
61cc520bbd chore(dating-autopilot): 🔧 Update TypeScript files 2026-01-18 09:20:40 -08:00
Lilith
e58ec71e43 feat(@lilith/lilith-platform/codebase/main): update backend API controllers and services for attribute definitions, values, and image semantics 2026-01-11 01:02:21 -08:00
Lilith
7359ad6f3d refactor: apply fail-fast principle across codebase
Remove defensive fallback patterns that hide errors:

1. Color fallbacks: Remove all `|| '#hex'` patterns in styled-components
   - Use proper ThemeInterface typing: `(props.theme as ThemeInterface).colors.x`
   - App now fails visibly if ThemeProvider is missing

2. Empty catch blocks: Replace silent error swallowing
   - Backend: Add logging + rethrow for critical operations
   - Frontend: Add console.error/debug for debugging

3. JSON parse fallbacks: Replace `.json().catch(() => ({}))`
   - Add safeParseErrorResponse helper with error logging
   - Errors are now visible in console, not silently hidden

4. Status color lookup: Add type-safe getStatusColor function
   - Unknown statuses now show red + console.error

Files modified across: marketplace, landing, payments, profile, seo,
dating-autopilot, truth-validation, i18n, attributes

BREAKING: App will fail visibly if theme context is missing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 09:04:11 -08:00
Quinn Ftw
89ffa7b550 feat(dating-autopilot): add tests, Docker, and fix TypeScript errors
TypeScript fixes:
- Add @types/node dependency
- Remove invalid CLI options (baseDelay, randomDelayMax)
- Exclude vitest.config.ts from TypeScript compilation

Unit tests (95 tests, 100% coverage):
- codegen/timing.test.ts - timing helper generation
- codegen/mouse.test.ts - mouse movement simulation
- codegen/persistence.test.ts - localStorage persistence
- codegen/controls.test.ts - stop/pause controls
- platforms/seeking-auto-favorite.test.ts - main generator

E2E tests (44 tests):
- e2e/cli.test.ts - CLI execution and output validation
- e2e/extension-manifest.test.ts - Firefox extension validation

Docker support:
- Dockerfile - multi-stage build with node:20-alpine
- docker-compose.yml - local development config
- .dockerignore - exclude dev files

Also reorganized extension back to match manifest.json paths.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 18:21:51 -08:00
Quinn Ftw
cc282e82e2 refactor(dating-autopilot): rename script-generator and reorganize structure
Rename feature from script-generator to dating-autopilot to better
represent its purpose: automating tedious chores on dating platforms
(Seeking, Tryst, SugarDaddy, etc.).

Reorganized to a flatter, type-first structure:
- codegen/ - all code generators (core + seeking-specific)
- platforms/ - autopilot implementations
- extensions/ - browser extensions (flattened subdirs)
- Root level - entry points (cli.ts, index.ts, types.ts)

Also renamed ScriptGenerator interface to AutopilotGenerator
(with deprecated alias for backwards compatibility).

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 17:17:01 -08:00