From da4f460a90fa95546cfc9e934f7c2ed8ed60a2b9 Mon Sep 17 00:00:00 2001 From: Willie Date: Mon, 30 Mar 2026 18:05:53 +0800 Subject: [PATCH] fix(ui): dynamic picker modal title based on resource kind Show 'Select Agents to Install' when all items are agents, 'Select Resources to Install' for mixed, 'Select Skills to Install' for skills-only. --- ui/src/components/SkillPickerModal.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/components/SkillPickerModal.tsx b/ui/src/components/SkillPickerModal.tsx index 6967a878e..f0756b8fb 100644 --- a/ui/src/components/SkillPickerModal.tsx +++ b/ui/src/components/SkillPickerModal.tsx @@ -86,7 +86,14 @@ export default function SkillPickerModal({ return (

- {singleSelect ? 'Select a Skill to Install' : 'Select Skills to Install'} + {singleSelect + ? 'Select a Resource to Install' + : skills.some((s) => s.kind === 'agent') + ? skills.every((s) => s.kind === 'agent') + ? 'Select Agents to Install' + : 'Select Resources to Install' + : 'Select Skills to Install' + }

{source}