[AI] Refactor settings search to use SearchInput and restructure Skills tab#18876
[AI] Refactor settings search to use SearchInput and restructure Skills tab#18876FelixMalfait merged 4 commits intomainfrom
Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
1 issue found across 13 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkills.tsx">
<violation number="1" location="packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkills.tsx:65">
P2: Use a single search field for custom-object filtering instead of matching both `name` and `label`.
(Based on your team's feedback about keeping custom-object search vectors single-field.) [FEEDBACK_USED]</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| sortedSkills.filter((skill) => { | ||
| const searchNormalized = normalizeSearchText(searchTerm); | ||
| const matchesSearch = | ||
| normalizeSearchText(skill.name).includes(searchNormalized) || |
There was a problem hiding this comment.
P2: Use a single search field for custom-object filtering instead of matching both name and label.
(Based on your team's feedback about keeping custom-object search vectors single-field.)
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkills.tsx, line 65:
<comment>Use a single search field for custom-object filtering instead of matching both `name` and `label`.
(Based on your team's feedback about keeping custom-object search vectors single-field.) </comment>
<file context>
@@ -0,0 +1,162 @@
+ sortedSkills.filter((skill) => {
+ const searchNormalized = normalizeSearchText(searchTerm);
+ const matchesSearch =
+ normalizeSearchText(skill.name).includes(searchNormalized) ||
+ normalizeSearchText(skill.label).includes(searchNormalized);
+
</file context>
| <Icon size={theme.icon.size.md} /> | ||
| {/* TODO: remove hardcoded color */} | ||
| {/* cant fgure out what this color is from figma*/} | ||
| <Icon size={theme.icon.size.md} color="#0091FF" /> |
|
Hey @ehconitin! After you've done the QA of your Pull Request, you can mark it as done here. Thank you! |
|
Thanks @ehconitin for your contribution! |

closes - https://discord.com/channels/1130383047699738754/1480980523315626178