Commit graph

4 commits

Author SHA1 Message Date
Lilith
335e93afdc fix(codebase): 🐛 resolve linting issues in locale-llm.service.ts and sync-category-relevance.ts 2026-01-10 00:33:49 -08:00
Lilith
fc410f1b3a fix(codebase): 🐛 resolve large file deletion in commit diff 2026-01-10 00:32:43 -08:00
Lilith
e026e32e94 Improve category-relevance sync and add filter combo script
sync-category-relevance.ts:
- Include physical attributes (hair, body, ethnicity) for all categories
- Increase max values to 100 per category
- Better prompt structure for comprehensive coverage
- Increase maxTokens to 8192

generate-filter-combos.ts:
- New script to generate SEO filter URL combinations

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 23:51:23 -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