refactor(platform): simplify agent selector#534
Conversation
… grouping Merge system and custom agents into a single alphabetically sorted list with the default chat agent pinned first, removing unnecessary UI sections and unused properties from the agent option and selected agent interfaces.
Greptile SummaryThis PR simplifies the agent selector UI by merging system and custom agents into a single alphabetically sorted list. Key Changes:
Code Quality:
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| services/platform/app/features/chat/components/agent-selector.tsx | Simplified agent selector by merging system and custom agents into a single alphabetically sorted list with default chat agent pinned first. Removed complex sorting logic and UI dividers. |
| services/platform/app/features/chat/context/chat-layout-context.tsx | Removed unused isSystemDefault property from SelectedAgent interface, simplifying the interface to only essential fields. |
| services/platform/messages/en.json | Removed unused translation keys builtinSection and customSection that were previously used for agent grouping UI. |
Last reviewed commit: 666fd41
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThis PR simplifies the agent selection UI by consolidating separate system and custom agent lists into a single combined list. The changes remove the isSystemDefault and systemAgentSlug fields from the AgentOption interface, eliminate section headers and dividers that visually separated agent types, and update sorting to prioritize the default chat agent followed by alphabetical order. The SelectedAgent interface is also simplified by removing the isSystemDefault property. Translation keys for section headers (builtinSection and customSection) are removed from the localization file. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Summary
isSystemDefaultandsystemAgentSlugproperties from agent option and selected agent interfacesTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit