mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
Applied three code quality improvements suggested by Gemini Code Assist: 1. **Replace nested ternary with map object (enhance.ts)** - Changed nested ternary operator to Record<EnhancementMode, string> map - Improves readability and maintainability - More declarative approach for system prompt selection 2. **Simplify handleToggle logic (prompt-customization-section.tsx)** - Removed redundant if/else branches - Both branches were calculating the same value - Cleaner, more concise implementation 3. **Add type safety to updatePrompt with generics (prompt-customization-section.tsx)** - Changed field parameter from string to keyof NonNullable<PromptCustomization[T]> - Prevents runtime errors from misspelled field names - Improved developer experience with autocomplete All tests passing (774/774). Builds successful. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>