fix(ui): show the subfolder path for non-browsable skill sources

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
milan 2026-07-31 22:03:38 +00:00
parent 66e1ea6090
commit 7d5c5d8873
2 changed files with 4 additions and 2 deletions

View file

@ -36,7 +36,7 @@ describe("SkillDetail source", () => {
onBack={vi.fn()}
/>,
);
expect(screen.getByText("git@ghe.example.com:org/repo.git")).toBeInTheDocument();
expect(screen.getByText("git@ghe.example.com:org/repo.git @ plugins/x")).toBeInTheDocument();
expect(screen.queryByRole("link", { name: /ghe.example.com/ })).not.toBeInTheDocument();
});
});

View file

@ -29,7 +29,9 @@ const SkillDetail: React.FC<SkillDetailProps> = ({ skill, onBack }) => {
}
return sourceLink;
})();
const sourceText = skill.source.url ?? sourceUrl;
const sourceText = skill.source.url
? `${skill.source.url}${skill.source.path ? ` @ ${skill.source.path}` : ""}`
: sourceUrl;
const installCommand = formatInstallCommand(skill);