From c7126fe12399eb35872ebd526c9623b99f27c8de Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Sat, 28 Feb 2026 11:02:51 -0500 Subject: [PATCH 1/4] feat: add "across all versions" subtitle to weekly downloads section Clarifies that download stats are aggregated at the package level, not per version. Adds a subtitle prop to CollapsibleSection and uses it in the downloads sidebar to reduce user confusion. Closes #1670 --- app/components/CollapsibleSection.vue | 15 +++++++++++---- app/components/Package/WeeklyDownloadStats.vue | 6 +++++- i18n/locales/en.json | 3 ++- i18n/locales/fr-FR.json | 3 ++- i18n/schema.json | 3 +++ lunaria/files/en-GB.json | 3 ++- lunaria/files/en-US.json | 3 ++- lunaria/files/fr-FR.json | 3 ++- .../components/PackageWeeklyDownloadStats.spec.ts | 2 ++ 9 files changed, 31 insertions(+), 10 deletions(-) diff --git a/app/components/CollapsibleSection.vue b/app/components/CollapsibleSection.vue index 48f9d5329f..4e05f2dd07 100644 --- a/app/components/CollapsibleSection.vue +++ b/app/components/CollapsibleSection.vue @@ -4,6 +4,7 @@ import { LinkBase } from '#components' interface Props { title: string + subtitle?: string isLoading?: boolean headingLevel?: `h${number}` id: string @@ -81,7 +82,8 @@ useHead({
- - {{ title }} - +
+ + {{ title }} + + {{ + subtitle + }} +
diff --git a/app/components/Package/WeeklyDownloadStats.vue b/app/components/Package/WeeklyDownloadStats.vue index 6f1fa4defb..222fd43fcd 100644 --- a/app/components/Package/WeeklyDownloadStats.vue +++ b/app/components/Package/WeeklyDownloadStats.vue @@ -281,7 +281,11 @@ const config = computed(() => {