From bbe469156f92ac2351bd9ec2f5a22b15b8dca975 Mon Sep 17 00:00:00 2001 From: hatayama Date: Fri, 24 Jul 2026 22:25:33 +0900 Subject: [PATCH 01/11] fix: Hide bulk skills install button and show guidance when no targets are detected When a project has no agent skill folders, the disabled Install Skills button looked stuck. Hide it and show muted guidance so users know to use Install to specific target instead. Co-authored-by: Cursor --- Assets/Tests/Editor/CliSetupSectionTests.cs | 57 ++++++++++++++++++- .../Presentation/Shared/SkillsSetupPanel.uss | 6 ++ .../Presentation/Shared/SkillsSetupPanel.uxml | 1 + .../Shared/SkillsSetupPanelView.cs | 8 +++ 4 files changed, 70 insertions(+), 2 deletions(-) diff --git a/Assets/Tests/Editor/CliSetupSectionTests.cs b/Assets/Tests/Editor/CliSetupSectionTests.cs index 54b6713188..ae42ef7503 100644 --- a/Assets/Tests/Editor/CliSetupSectionTests.cs +++ b/Assets/Tests/Editor/CliSetupSectionTests.cs @@ -130,6 +130,57 @@ public void Update_WhenSkillsStateIsChecking_DisablesSkillsTargetField() Assert.That(skillsTargetField.enabledSelf, Is.False); } + [Test] + public void Update_WhenNoInstallableTargets_HidesBulkInstallAndShowsGuidance() + { + // Verifies empty detection hides the bulk Install Skills button and shows guidance instead. + VisualElement root = CreateRootElement(); + CliSetupSection section = new(root); + CliSetupData data = CreateData( + isCliInstalled: true, + isChecking: false, + selectedTargetInstallState: SkillInstallState.Missing, + installableSkillTargets: new List()); + + section.Update(data); + + Button installAllSkillsButton = root.Q