Skip to content

Commit

Permalink
Remove AI generated descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 25, 2024
1 parent d2bf511 commit 1564745
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/pkgx.dev/HomeFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function FeedItemBox(item: FeedItem) {
</Typography>
</div>
<Typography variant='caption' component="h3" style={text_style}>
{description}
{/* {description} */}
</Typography>
</CardContent>
</CardActionArea>
Expand Down
23 changes: 12 additions & 11 deletions src/pkgx.dev/PackageListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Package({ project, dirs }: { project: string, dirs: string[] }) {
<Stack spacing={2}>
<Box>
<Typography mb={1} variant='h2'>{get_pkg_name(project)}</Typography>
{description_body()}
{/* {description_body()} */}
<README project={project} />
<Stack useFlexGap direction='row' spacing={2} mt={3}>
<Button variant='contained' href={`tea://packages/${project}`}>Open in OSS.app</Button>
Expand Down Expand Up @@ -153,16 +153,17 @@ function Package({ project, dirs }: { project: string, dirs: string[] }) {
}

function description_body() {
if (description.loading) {
return <Skeleton animation="wave" />
} else if (description.error) {
return <Alert severity="error">{description.error.message}</Alert>
} else {
return <Box>
<Typography variant='h5'>{description.value!.short_description}</Typography>
<Typography variant='body2' mt={1} mb={3} color='text.secondary'>{description.value!.description}</Typography>
</Box>
}
return
// if (description.loading) {
// return <Skeleton animation="wave" />
// } else if (description.error) {
// return <Alert severity="error">{description.error.message}</Alert>
// } else {
// return <Box>
// <Typography variant='h5'>{description.value!.short_description}</Typography>
// <Typography variant='body2' mt={1} mb={3} color='text.secondary'>{description.value!.description}</Typography>
// </Box>
// }
}

function metadata() {
Expand Down
2 changes: 1 addition & 1 deletion src/pkgx.dev/PackageShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function PkgCard({project, description, name, labels, isLoader}: Package) {
</Typography>
</div>
<Typography variant='caption' component="h3" style={text_style}>
{description}
{/* {description} */}
</Typography>
</CardContent>
)}
Expand Down

0 comments on commit 1564745

Please sign in to comment.