mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
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:
parent
66e1ea6090
commit
7d5c5d8873
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue