Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(webui): hide SkillHub install counts
Xubin Ren65f2a6dbf56f
diff --git a/webui/src/components/settings/SkillsMarketplace.tsx b/webui/src/components/settings/SkillsMarketplace.tsxindex aaf148ad1..4ec1448a2 100644--- a/webui/src/components/settings/SkillsMarketplace.tsx+++ b/webui/src/components/settings/SkillsMarketplace.tsx@@ -527,18 +527,22 @@ function MarketplaceSkillRow({<div className="mt-1 flex min-w-0 items-center gap-1.5 truncate text-[12px] text-muted-foreground">{skill.source}{skill.version ? <span>· v{skill.version}</span> : null}- <span>·</span>- {skill.metric === "installs_24h"- ? t("settings.skills.marketplaceInstalls24h", {- count: skill.installs,- formattedCount: skill.installs.toLocaleString(),- defaultValue: "{{formattedCount}} installs / 24h",- })- : t("settings.skills.marketplaceInstalls", {- count: skill.installs,- formattedCount: skill.installs.toLocaleString(),- defaultValue: "{{formattedCount}} installs",- })}+ {skill.provider === "skills_sh" ? (+ <>+ <span>·</span>+ {skill.metric === "installs_24h"+ ? t("settings.skills.marketplaceInstalls24h", {+ count: skill.installs,+ formattedCount: skill.installs.toLocaleString(),+ defaultValue: "{{formattedCount}} installs / 24h",+ })+ : t("settings.skills.marketplaceInstalls", {+ count: skill.installs,+ formattedCount: skill.installs.toLocaleString(),+ defaultValue: "{{formattedCount}} installs",+ })}+ </>+ ) : null}</div></div>{skill.provider === "skills_sh" ? <TrendSparkline values={trend} /> : null}diff --git a/webui/src/tests/app-layout.test.tsx b/webui/src/tests/app-layout.test.tsxindex 1aecd6685..736f670e1 100644--- a/webui/src/tests/app-layout.test.tsx+++ b/webui/src/tests/app-layout.test.tsx@@ -1201,6 +1201,7 @@ describe("App layout", () => {expect(screen.getAllByText("SkillHub")).toHaveLength(2);expect(screen.getAllByText("skills.sh")).toHaveLength(2);expect(screen.getByText(/14,481 installs \/ 24h/)).toBeInTheDocument();+ expect(screen.queryByText(/11,831 installs/)).not.toBeInTheDocument();fireEvent.click(screen.getByRole("tab", { name: "SkillHub" }));expect(screen.getByText("ima-skills")).toBeInTheDocument();expect(screen.queryByText("find-skills")).not.toBeInTheDocument();