From 15647457e25aaff867428d296d5bd411550da8be Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 25 Feb 2024 12:40:45 -0500 Subject: [PATCH] Remove AI generated descriptions Refs https://github.com/pkgxdev/pantry/issues/5358 --- src/pkgx.dev/HomeFeed.tsx | 2 +- src/pkgx.dev/PackageListing.tsx | 23 ++++++++++++----------- src/pkgx.dev/PackageShowcase.tsx | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/pkgx.dev/HomeFeed.tsx b/src/pkgx.dev/HomeFeed.tsx index 64b05dd..b235bc0 100644 --- a/src/pkgx.dev/HomeFeed.tsx +++ b/src/pkgx.dev/HomeFeed.tsx @@ -167,7 +167,7 @@ function FeedItemBox(item: FeedItem) { - {description} + {/* {description} */} diff --git a/src/pkgx.dev/PackageListing.tsx b/src/pkgx.dev/PackageListing.tsx index 2791e4e..d48128c 100644 --- a/src/pkgx.dev/PackageListing.tsx +++ b/src/pkgx.dev/PackageListing.tsx @@ -115,7 +115,7 @@ function Package({ project, dirs }: { project: string, dirs: string[] }) { {get_pkg_name(project)} - {description_body()} + {/* {description_body()} */} @@ -153,16 +153,17 @@ function Package({ project, dirs }: { project: string, dirs: string[] }) { } function description_body() { - if (description.loading) { - return - } else if (description.error) { - return {description.error.message} - } else { - return - {description.value!.short_description} - {description.value!.description} - - } + return + // if (description.loading) { + // return + // } else if (description.error) { + // return {description.error.message} + // } else { + // return + // {description.value!.short_description} + // {description.value!.description} + // + // } } function metadata() { diff --git a/src/pkgx.dev/PackageShowcase.tsx b/src/pkgx.dev/PackageShowcase.tsx index 861b4be..4a73636 100644 --- a/src/pkgx.dev/PackageShowcase.tsx +++ b/src/pkgx.dev/PackageShowcase.tsx @@ -117,7 +117,7 @@ function PkgCard({project, description, name, labels, isLoader}: Package) { - {description} + {/* {description} */} )}