From 5d3d56ad32a6d847637a0848fb55b23c0a6f8c0f Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Thu, 29 Jan 2026 10:19:36 -0500 Subject: [PATCH 1/6] feat: show more maintainers --- app/components/PackageMaintainers.vue | 31 ++++++++++++++++++++++++++- i18n/locales/en.json | 4 +++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/app/components/PackageMaintainers.vue b/app/components/PackageMaintainers.vue index 139f3ca096..e17d9e5291 100644 --- a/app/components/PackageMaintainers.vue +++ b/app/components/PackageMaintainers.vue @@ -18,10 +18,25 @@ const { const showAddOwner = shallowRef(false) const newOwnerUsername = shallowRef('') const isAdding = shallowRef(false) +const showAllMaintainers = shallowRef(false) + +const DEFAULT_VISIBLE_MAINTAINERS = 5 // Show admin controls when connected (let npm CLI handle permission errors) const canManageOwners = computed(() => isConnected.value) +// Computed for visible maintainers with show more/less support +const visibleMaintainers = computed(() => { + if (canManageOwners.value || showAllMaintainers.value) { + return maintainerAccess.value + } + return maintainerAccess.value.slice(0, DEFAULT_VISIBLE_MAINTAINERS) +}) + +const hiddenMaintainersCount = computed(() => + Math.max(0, maintainerAccess.value.length - DEFAULT_VISIBLE_MAINTAINERS), +) + // Extract org name from scoped package const orgName = computed(() => { if (!props.packageName.startsWith('@')) return null @@ -173,7 +188,7 @@ watch( + + +
diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 21ad096470..a9cc1a7507 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -206,7 +206,9 @@ "username_placeholder": "username...", "add_button": "add", "cancel_add": "Cancel adding owner", - "add_owner": "+ Add owner" + "add_owner": "+ Add owner", + "show_more": "(show {count} more)", + "show_less": "(show less)" }, "downloads": { "title": "Weekly Downloads", From 8868c6d72bc0985d8642e8795fec1809ba476afd Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Thu, 29 Jan 2026 11:26:29 -0500 Subject: [PATCH 2/6] fix: add missing translations --- i18n/locales/de-DE.json | 4 +++- i18n/locales/es.json | 4 +++- i18n/locales/fr-FR.json | 4 +++- i18n/locales/it-IT.json | 4 +++- i18n/locales/ja-JP.json | 4 +++- i18n/locales/zh-CN.json | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index f77e760cc7..6d6ffbf0f8 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -203,7 +203,9 @@ "username_placeholder": "Benutzername...", "add_button": "Hinzufügen", "cancel_add": "Owner-Hinzufügung abbrechen", - "add_owner": "+ Owner hinzufügen" + "add_owner": "+ Owner hinzufügen", + "show_more": "({count} weitere anzeigen)", + "show_less": "(weniger anzeigen)" }, "downloads": { "title": "Wöchentliche Downloads", diff --git a/i18n/locales/es.json b/i18n/locales/es.json index d93e9944e9..38cf950298 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -173,7 +173,9 @@ "username_placeholder": "nombre de usuario...", "add_button": "agregar", "cancel_add": "Cancelar agregar propietario", - "add_owner": "+ Agregar propietario" + "add_owner": "+ Agregar propietario", + "show_more": "(mostrar {count} más)", + "show_less": "(mostrar menos)" }, "downloads": { "title": "Descargas Semanales", diff --git a/i18n/locales/fr-FR.json b/i18n/locales/fr-FR.json index 16d6d4aa58..2ba17a7a32 100644 --- a/i18n/locales/fr-FR.json +++ b/i18n/locales/fr-FR.json @@ -163,7 +163,9 @@ "username_placeholder": "nom d'utilisateur...", "add_button": "ajouter", "cancel_add": "Annuler l'ajout de propriétaire", - "add_owner": "+ Ajouter un propriétaire" + "add_owner": "+ Ajouter un propriétaire", + "show_more": "(afficher {count} de plus)", + "show_less": "(afficher moins)" }, "downloads": { "title": "Téléchargements hebdomadaires", diff --git a/i18n/locales/it-IT.json b/i18n/locales/it-IT.json index cecb3ec215..b9d1c6f485 100644 --- a/i18n/locales/it-IT.json +++ b/i18n/locales/it-IT.json @@ -173,7 +173,9 @@ "username_placeholder": "nome utente...", "add_button": "aggiungi", "cancel_add": "Cancella aggiunta proprietario", - "add_owner": "+ Aggiungi proprietario" + "add_owner": "+ Aggiungi proprietario", + "show_more": "(mostra altri {count})", + "show_less": "(mostra meno)" }, "downloads": { "title": "Downloads settimanali", diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json index 5dc7b7839f..0f1f66d9f0 100644 --- a/i18n/locales/ja-JP.json +++ b/i18n/locales/ja-JP.json @@ -186,7 +186,9 @@ "username_placeholder": "ユーザー名...", "add_button": "追加", "cancel_add": "オーナーの追加をキャンセル", - "add_owner": "+ オーナーを追加" + "add_owner": "+ オーナーを追加", + "show_more": "(他 {count} 個を表示)", + "show_less": "(折りたたむ)" }, "downloads": { "title": "週間ダウンロード数", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 165c979990..dcb4de3a08 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -173,7 +173,9 @@ "username_placeholder": "用户名...", "add_button": "添加", "cancel_add": "取消添加拥有者", - "add_owner": "+ 添加拥有者" + "add_owner": "+ 添加拥有者", + "show_more": "(显示另外 {count} 个)", + "show_less": "(收起)" }, "downloads": { "title": "每周下载量", From 07b65fa85c10c4d4bcaf319779801d5f316aef05 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:30:29 +0000 Subject: [PATCH 3/6] [autofix.ci] apply automated fixes --- lunaria/files/de-DE.json | 4 +++- lunaria/files/en-US.json | 4 +++- lunaria/files/es-419.json | 4 +++- lunaria/files/es-ES.json | 4 +++- lunaria/files/fr-FR.json | 4 +++- lunaria/files/it-IT.json | 4 +++- lunaria/files/ja-JP.json | 4 +++- lunaria/files/zh-CN.json | 4 +++- 8 files changed, 24 insertions(+), 8 deletions(-) diff --git a/lunaria/files/de-DE.json b/lunaria/files/de-DE.json index f77e760cc7..6d6ffbf0f8 100644 --- a/lunaria/files/de-DE.json +++ b/lunaria/files/de-DE.json @@ -203,7 +203,9 @@ "username_placeholder": "Benutzername...", "add_button": "Hinzufügen", "cancel_add": "Owner-Hinzufügung abbrechen", - "add_owner": "+ Owner hinzufügen" + "add_owner": "+ Owner hinzufügen", + "show_more": "({count} weitere anzeigen)", + "show_less": "(weniger anzeigen)" }, "downloads": { "title": "Wöchentliche Downloads", diff --git a/lunaria/files/en-US.json b/lunaria/files/en-US.json index fc3d688c5d..d41294aacb 100644 --- a/lunaria/files/en-US.json +++ b/lunaria/files/en-US.json @@ -206,7 +206,9 @@ "username_placeholder": "username...", "add_button": "add", "cancel_add": "Cancel adding owner", - "add_owner": "+ Add owner" + "add_owner": "+ Add owner", + "show_more": "(show {count} more)", + "show_less": "(show less)" }, "downloads": { "title": "Weekly Downloads", diff --git a/lunaria/files/es-419.json b/lunaria/files/es-419.json index d93e9944e9..38cf950298 100644 --- a/lunaria/files/es-419.json +++ b/lunaria/files/es-419.json @@ -173,7 +173,9 @@ "username_placeholder": "nombre de usuario...", "add_button": "agregar", "cancel_add": "Cancelar agregar propietario", - "add_owner": "+ Agregar propietario" + "add_owner": "+ Agregar propietario", + "show_more": "(mostrar {count} más)", + "show_less": "(mostrar menos)" }, "downloads": { "title": "Descargas Semanales", diff --git a/lunaria/files/es-ES.json b/lunaria/files/es-ES.json index d93e9944e9..38cf950298 100644 --- a/lunaria/files/es-ES.json +++ b/lunaria/files/es-ES.json @@ -173,7 +173,9 @@ "username_placeholder": "nombre de usuario...", "add_button": "agregar", "cancel_add": "Cancelar agregar propietario", - "add_owner": "+ Agregar propietario" + "add_owner": "+ Agregar propietario", + "show_more": "(mostrar {count} más)", + "show_less": "(mostrar menos)" }, "downloads": { "title": "Descargas Semanales", diff --git a/lunaria/files/fr-FR.json b/lunaria/files/fr-FR.json index 16d6d4aa58..2ba17a7a32 100644 --- a/lunaria/files/fr-FR.json +++ b/lunaria/files/fr-FR.json @@ -163,7 +163,9 @@ "username_placeholder": "nom d'utilisateur...", "add_button": "ajouter", "cancel_add": "Annuler l'ajout de propriétaire", - "add_owner": "+ Ajouter un propriétaire" + "add_owner": "+ Ajouter un propriétaire", + "show_more": "(afficher {count} de plus)", + "show_less": "(afficher moins)" }, "downloads": { "title": "Téléchargements hebdomadaires", diff --git a/lunaria/files/it-IT.json b/lunaria/files/it-IT.json index cecb3ec215..b9d1c6f485 100644 --- a/lunaria/files/it-IT.json +++ b/lunaria/files/it-IT.json @@ -173,7 +173,9 @@ "username_placeholder": "nome utente...", "add_button": "aggiungi", "cancel_add": "Cancella aggiunta proprietario", - "add_owner": "+ Aggiungi proprietario" + "add_owner": "+ Aggiungi proprietario", + "show_more": "(mostra altri {count})", + "show_less": "(mostra meno)" }, "downloads": { "title": "Downloads settimanali", diff --git a/lunaria/files/ja-JP.json b/lunaria/files/ja-JP.json index 5dc7b7839f..0f1f66d9f0 100644 --- a/lunaria/files/ja-JP.json +++ b/lunaria/files/ja-JP.json @@ -186,7 +186,9 @@ "username_placeholder": "ユーザー名...", "add_button": "追加", "cancel_add": "オーナーの追加をキャンセル", - "add_owner": "+ オーナーを追加" + "add_owner": "+ オーナーを追加", + "show_more": "(他 {count} 個を表示)", + "show_less": "(折りたたむ)" }, "downloads": { "title": "週間ダウンロード数", diff --git a/lunaria/files/zh-CN.json b/lunaria/files/zh-CN.json index 165c979990..dcb4de3a08 100644 --- a/lunaria/files/zh-CN.json +++ b/lunaria/files/zh-CN.json @@ -173,7 +173,9 @@ "username_placeholder": "用户名...", "add_button": "添加", "cancel_add": "取消添加拥有者", - "add_owner": "+ 添加拥有者" + "add_owner": "+ 添加拥有者", + "show_more": "(显示另外 {count} 个)", + "show_less": "(收起)" }, "downloads": { "title": "每周下载量", From e44f16c9838e4e17f75108bca88a66d5290195a3 Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Thu, 29 Jan 2026 11:34:17 -0500 Subject: [PATCH 4/6] Update i18n/locales/en.json less -> fewer Co-authored-by: Daniel Roe --- i18n/locales/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/locales/en.json b/i18n/locales/en.json index d41294aacb..805f079a4e 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -208,7 +208,7 @@ "cancel_add": "Cancel adding owner", "add_owner": "+ Add owner", "show_more": "(show {count} more)", - "show_less": "(show less)" + "show_less": "(show fewer)" }, "downloads": { "title": "Weekly Downloads", From 4d4a8e16106bbb624c55c8f530e6aafa4bed8b42 Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Thu, 29 Jan 2026 11:36:09 -0500 Subject: [PATCH 5/6] fix: replace less with fewer --- app/components/PackageMaintainers.vue | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/app/components/PackageMaintainers.vue b/app/components/PackageMaintainers.vue index e17d9e5291..05c2901f1a 100644 --- a/app/components/PackageMaintainers.vue +++ b/app/components/PackageMaintainers.vue @@ -25,7 +25,7 @@ const DEFAULT_VISIBLE_MAINTAINERS = 5 // Show admin controls when connected (let npm CLI handle permission errors) const canManageOwners = computed(() => isConnected.value) -// Computed for visible maintainers with show more/less support +// Computed for visible maintainers with show more/fewer support const visibleMaintainers = computed(() => { if (canManageOwners.value || showAllMaintainers.value) { return maintainerAccess.value @@ -195,7 +195,10 @@ watch(
@{{ maintainer.name }} @@ -207,7 +210,11 @@ watch( v-if="isConnected && maintainer.accessVia?.length && !isLoadingAccess" class="text-xs text-fg-subtle truncate" > - {{ $t('package.maintainers.via', { teams: maintainer.accessVia.join(', ') }) }} + {{ + $t('package.maintainers.via', { + teams: maintainer.accessVia.join(', '), + }) + }}