From 316c99ba07279e90e3ba4e322bfe4e678106a178 Mon Sep 17 00:00:00 2001 From: Psychotoxical <171614930+Psychotoxical@users.noreply.github.com> Date: Tue, 9 Jun 2026 20:04:25 +0200 Subject: [PATCH] refactor(themes): drop unreliable popularity/download stats from the store (#1050) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The install/download numbers came from jsDelivr CDN hits, which are structurally unreliable: the stats API caps at the top 100 files, so most themes report 0 and the figures jump from day to day. Showing them — and a popularity bar and a most-popular sort built on them — only misled users. Remove the stats meta box (popularity bar + download count), move the author back under the theme name, and keep the reliable git-based last-changed date inline. Sort is now Newest (default) or Alphabetical. --- src/components/settings/PopularityBar.tsx | 24 -------- .../settings/ThemeStoreSection.test.tsx | 18 ++---- src/components/settings/ThemeStoreSection.tsx | 57 +++++-------------- src/locales/de/settings.ts | 7 +-- src/locales/en/settings.ts | 7 +-- src/locales/es/settings.ts | 7 +-- src/locales/fr/settings.ts | 7 +-- src/locales/nb/settings.ts | 7 +-- src/locales/nl/settings.ts | 7 +-- src/locales/ro/settings.ts | 7 +-- src/locales/ru/settings.ts | 7 +-- src/locales/zh/settings.ts | 7 +-- 12 files changed, 37 insertions(+), 125 deletions(-) delete mode 100644 src/components/settings/PopularityBar.tsx diff --git a/src/components/settings/PopularityBar.tsx b/src/components/settings/PopularityBar.tsx deleted file mode 100644 index 2ba53344..00000000 --- a/src/components/settings/PopularityBar.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Five-segment popularity bar, filled relative to the most-downloaded theme in - * the catalogue (so the leader reads full and the rest scale against it). With - * few downloads it sits near-empty and fills in organically as counts grow. - * Decorative — the exact download number sits next to it as the real value. - */ -export function PopularityBar({ value, max }: { value: number; max: number }) { - const filled = max > 0 ? Math.round((Math.max(0, value) / max) * 5) : 0; - return ( -