@@ -95,6 +95,14 @@ function versionRoute(version: string): RouteLocationRaw {
9595 return packageRoute (props .packageName , version )
9696}
9797
98+ // Route to the full versions history page
99+ const versionsPageRoute = computed ((): RouteLocationRaw => {
100+ const [org, name = ' ' ] = props .packageName .startsWith (' @' )
101+ ? props .packageName .split (' /' )
102+ : [' ' , props .packageName ]
103+ return { name: ' package-versions' , params: { org , name } }
104+ })
105+
98106// Version to tags lookup (supports multiple tags per version)
99107const versionToTags = computed (() => buildVersionToTagsMap (props .distTags ))
100108
@@ -521,15 +529,27 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
521529 id =" versions"
522530 >
523531 <template #actions >
524- <ButtonBase
525- variant =" secondary"
526- class =" text-fg-subtle hover:text-fg transition-colors min-w-6 min-h-6 -m-1 p-1 rounded"
527- :title =" $t('package.downloads.community_distribution')"
528- classicon =" i-lucide:file-stack"
529- @click =" openDistributionModal"
530- >
531- <span class =" sr-only" >{{ $t('package.downloads.community_distribution') }}</span >
532- </ButtonBase >
532+ <div class =" flex items-center gap-3" >
533+ <LinkBase
534+ :to =" versionsPageRoute"
535+ variant =" button-secondary"
536+ class =" text-fg-subtle hover:text-fg transition-colors min-w-6 min-h-6 p-1 rounded"
537+ :title =" $t('package.versions.view_all_versions')"
538+ classicon =" i-lucide:history"
539+ data-testid =" view-all-versions-link"
540+ >
541+ <span class =" sr-only" >{{ $t('package.versions.view_all_versions') }}</span >
542+ </LinkBase >
543+ <ButtonBase
544+ variant =" secondary"
545+ class =" text-fg-subtle hover:text-fg transition-colors min-w-6 min-h-6 -m-1 p-1 rounded"
546+ :title =" $t('package.downloads.community_distribution')"
547+ classicon =" i-lucide:file-stack"
548+ @click =" openDistributionModal"
549+ >
550+ <span class =" sr-only" >{{ $t('package.downloads.community_distribution') }}</span >
551+ </ButtonBase >
552+ </div >
533553 </template >
534554 <div class =" space-y-0.5 min-w-0" >
535555 <!-- Semver range filter -->
0 commit comments