Skip to content

Commit 26c9efd

Browse files
authored
small tweaks and fixes (#2298)
1 parent 8ac5ee8 commit 26c9efd

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

components/Package/PackageHeader.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { startCase } from 'es-toolkit';
12
import { type ReactNode } from 'react';
23
import { View } from 'react-native';
34

@@ -39,10 +40,10 @@ export default function PackageHeader({ library, registryData, rightSlot }: Prop
3940
<UserAvatar
4041
src={`https://github.com/${ghUsername}.png`}
4142
style={tw`size-6 rounded-md border border-solid border-palette-gray2 dark:border-default`}
42-
alt={`${ghUsername} avatar`}
43+
alt={`${startCase(ghUsername)} avatar`}
4344
/>
4445
}>
45-
{ghUsername}
46+
{startCase(ghUsername)}
4647
</Tooltip>
4748
<P style={tw`-mt-0.5 text-xl font-semibold leading-[26px]`}>{library.npmPkg}</P>
4849
{registryData && (

components/SearchTag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function SearchTag({ title, value }: Props) {
2222
<Tooltip
2323
trigger={
2424
<HoverEffect>
25-
<A href="/" style={tw`flex flex-row items-center gap-1.5 pl-2 no-underline`}>
25+
<A href="/packages" style={tw`flex flex-row items-center gap-1.5 pl-2 no-underline`}>
2626
{startCase(value)}
2727
<XIcon style={tw`w-2.5 text-error`} />
2828
</A>

pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Index.getInitialProps = async (ctx: NextPageContext) => {
3333
);
3434
const recentlyAddedResponse = await ssrFetch(
3535
'/libraries',
36-
{ order: 'added', limit: LIMIT.toString() },
36+
{ order: 'added', limit: LIMIT.toString(), isMaintained: 'true' },
3737
ctx
3838
);
3939
const recentlyUpdatedResponse = await ssrFetch(
4040
'/libraries',
41-
{ order: 'updated', limit: LIMIT.toString() },
41+
{ order: 'updated', limit: LIMIT.toString(), isMaintained: 'true' },
4242
ctx
4343
);
4444
const popularResponse = await ssrFetch(

scenes/PackageOverviewScene.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,16 @@ export default function PackageOverviewScene({
138138
style={tw`pl-4.5 m-0 gap-1.5 text-[13px] text-palette-gray4 dark:text-palette-gray5`}>
139139
<li>
140140
<A
141-
href={`https://bundlephobia.com/package/${library.npmPkg}`}
141+
href={`https://node-modules.dev/grid/depth#install=${library.npmPkg}`}
142142
style={tw`text-[12px] font-light`}>
143-
Bundlephobia
143+
Node Modules Inspector
144144
</A>
145145
</li>
146146
<li>
147147
<A
148-
href={`https://npmgraph.js.org/?q=${library.npmPkg}`}
148+
href={`https://bundlephobia.com/package/${library.npmPkg}`}
149149
style={tw`text-[12px] font-light`}>
150-
npmgraph
150+
Bundlephobia
151151
</A>
152152
</li>
153153
<li>
@@ -157,6 +157,13 @@ export default function PackageOverviewScene({
157157
pkg-size.dev
158158
</A>
159159
</li>
160+
<li>
161+
<A
162+
href={`https://npmgraph.js.org/?q=${library.npmPkg}`}
163+
style={tw`text-[12px] font-light`}>
164+
npmgraph
165+
</A>
166+
</li>
160167
<li>
161168
<A
162169
href={`https://snyk.io/advisor/npm-package/${library.npmPkg}`}

0 commit comments

Comments
 (0)