feat: show plugin download counts only and stop CI builds inflating them

This commit is contained in:
LukeGus committed 2026-10-11 17:02:52 -05:00
1 parent 4fbdf15351
commit 11f4674bd2
37 files changed
+14280 -286

No files matched your search

+7 -22
View File
@@ -126,31 +126,16 @@ export function BetaBadge() {
);
}
/** Active installs when the registry has them, release downloads otherwise. */
export function InstallCountFact({
count,
source,
}: {
count: number | null;
source: string | null;
}) {
/** How often the plugin's release files were downloaded. */
export function DownloadCount({ count }: { count: number | null }) {
const { t } = useTranslation();
if (count === null || count <= 0) return null;
const active = source === "aggregate-telemetry";
return (
<span
title={
active
? t("plugins.manager.count.activeHint")
: t("plugins.manager.count.downloadsHint")
}
>
{t(
active
? "plugins.manager.count.active"
: "plugins.manager.count.downloads",
{ count, formatted: formatCount(count) },
)}
<span title={t("plugins.manager.count.downloadsHint")}>
{t("plugins.manager.count.downloads", {
count,
formatted: formatCount(count),
})}
</span>
);
}