Repository navigation
refactor(mpp-idea): replace hardcoded colors with AutoDevColors design system - #3
Conversation
Delete AutoDev Compose tool window and related classes to streamline tool window offerings and reduce redundancy.
…n system - Replace Color(0xFF4CAF50) with AutoDevColors.Green.c400 for success status - Replace Color(0xFFF44336) with AutoDevColors.Red.c400 for error status - Use .copy(alpha = 0.2f) for background colors instead of hardcoded alpha - Remove unused Color import This ensures cross-platform color consistency by using the design system tokens from mpp-ui instead of hardcoded hex values.
WalkthroughThis PR removes the Compose-based AutoDev chat UI infrastructure, including the AutoDevChatApp composable, AutoDevChatViewModel, and AutoDevToolWindowFactory class, along with their plugin registration. Separately, IdeaAgentApp is refactored to use AutoDevColors design tokens instead of hard-coded colors. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
💤 Files with no reviewable changes (4)
🧰 Additional context used📓 Path-based instructions (3)**/*.kt📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{kt,kts}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx,kt,kts}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-11-29T14:07:19.001ZApplied to files:
📚 Learning: 2025-11-29T14:07:19.001ZApplied to files:
📚 Learning: 2025-11-29T14:07:19.001ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (4)
Comment |
|
Note Docstrings generation - SUCCESS |
Docstrings generation was requested by @phodal. * #3 (comment) The following files were modified: * `mpp-idea/src/main/kotlin/cc/unitmesh/devins/idea/toolwindow/IdeaAgentApp.kt`
Summary
Replace hardcoded color values in
IdeaAgentApp.ktwith semantic colors from theAutoDevColorsdesign system inmpp-ui.Changes
Color(0xFF4CAF50)AutoDevColors.Green.c400Color(0xFFF44336)AutoDevColors.Red.c400Color(0x33F44336)AutoDevColors.Red.c400.copy(alpha = 0.2f)Color(0xFFF44336)AutoDevColors.Red.c400Color(0x334CAF50)AutoDevColors.Green.c400.copy(alpha = 0.2f)Color(0x33F44336)AutoDevColors.Red.c400.copy(alpha = 0.2f)Why
Per the coding guidelines:
Using
AutoDevColorsensures:Related
Addresses review comments from PR #2 regarding hardcoded colors.
Pull Request opened by Augment Code with guidance from the PR author
Summary by CodeRabbit
Revert
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.