Skip to content

Commit 53c776d

Browse files
committed
remove link for full-stats
1 parent 22b249f commit 53c776d

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

src/components/npm-stats/NPMSummary.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ function NPMSummaryContent({ library }: { library: Library }) {
119119
different time periods and track usage trends.
120120
</p>
121121

122+
<p className="text-xs text-gray-400 dark:text-gray-500 mt-3 italic">
123+
*These top summary stats account for core packages, legacy package
124+
names, and all framework adapters.
125+
</p>
126+
122127
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6">
123128
<StatCard label="All Time Downloads" animated npmData={ossStats.npm} />
124129
<StatCard
@@ -131,11 +136,6 @@ function NPMSummaryContent({ library }: { library: Library }) {
131136
/>
132137
<StatCard value={recentStats.dailyDownloads} label="Daily Downloads" />
133138
</div>
134-
135-
<p className="text-xs text-gray-400 dark:text-gray-500 mt-3 italic">
136-
*These top summary stats account for core packages, legacy package
137-
names, and all framework adapters.
138-
</p>
139139
</div>
140140
)
141141
}

src/routes/$libraryId/$version.docs.npm-stats.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,6 @@ function RouteComponent() {
330330
onTransformChange={handleTransformChange}
331331
onShowDataModeChange={handleShowDataModeChange}
332332
/>
333-
334-
<Link
335-
to="/stats/npm"
336-
search={{ packageGroups }}
337-
className="ml-auto text-sm text-blue-500 hover:text-blue-600 hover:underline"
338-
>
339-
Open in full stats page
340-
</Link>
341333
</div>
342334

343335
{/* Package Pills */}

src/utils/npm-packages.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,10 @@ export function getFrameworkPackageName(
101101
export function getLibraryMainPackage(library: LibrarySlim): string {
102102
// Special cases
103103
if (library.id === 'start') {
104-
return '@tanstack/start'
104+
return '@tanstack/start-client-core'
105105
}
106106
if (library.id === 'config') {
107-
return '@tanstack/config'
108-
}
109-
if (library.id === 'mcp') {
110-
return '@anthropic-ai/model-context-protocol'
107+
return '@tanstack/vite-config'
111108
}
112109
if (library.id === 'create-tsrouter-app') {
113110
return 'create-tsrouter-app'
@@ -118,12 +115,6 @@ export function getLibraryMainPackage(library: LibrarySlim): string {
118115
return `@tanstack/${library.corePackageName}`
119116
}
120117

121-
// Default: use first framework if available, otherwise just the id
122-
const firstFramework = library.frameworks[0]
123-
if (firstFramework && firstFramework !== 'vanilla') {
124-
return `@tanstack/${firstFramework}-${library.id}`
125-
}
126-
127118
return `@tanstack/${library.id}`
128119
}
129120

0 commit comments

Comments
 (0)