From fd8cda9ea8e604b08a42f2a4169f2b7df4333be5 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Sun, 12 Oct 2025 18:58:45 -0500 Subject: [PATCH] Simplify app showcase cards - Remove status badges (Featured, Homepage, Pending) from top-left corner - Remove app tags display from card content - Remove repository link/button, keeping only Shakespeare badge and visit app button - Clean up unused imports (Badge, GitBranch, Copy icons) - Streamline card layout for cleaner appearance --- src/components/AppShowcase.tsx | 1 - src/components/AppShowcaseCard.tsx | 70 +----------------------------- 2 files changed, 1 insertion(+), 70 deletions(-) diff --git a/src/components/AppShowcase.tsx b/src/components/AppShowcase.tsx index a2a6e75b..9f776ecb 100644 --- a/src/components/AppShowcase.tsx +++ b/src/components/AppShowcase.tsx @@ -1,7 +1,6 @@ import React, { useState, useMemo } from "react"; import { Search } from "lucide-react"; import { Button } from "@/components/ui/button"; -import { Badge } from "@/components/ui/badge"; import { useCurrentUser } from "@/hooks/useCurrentUser"; import { useAppSubmissions } from "@/hooks/useAppSubmissions"; import { AppShowcaseCard } from "@/components/AppShowcaseCard"; diff --git a/src/components/AppShowcaseCard.tsx b/src/components/AppShowcaseCard.tsx index 90fb33e4..b979e784 100644 --- a/src/components/AppShowcaseCard.tsx +++ b/src/components/AppShowcaseCard.tsx @@ -1,10 +1,8 @@ import React, { useState } from 'react'; -import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { ExternalLink, - GitBranch, Edit, Star, StarOff, @@ -15,8 +13,7 @@ import { XCircle, User, Home, - Contact, - Copy + Contact } from 'lucide-react'; import { DropdownMenu, @@ -400,28 +397,6 @@ export function AppShowcaseCard({ app, onEdit, showModerationControls, hideAppro )} - {/* Status Badges */} -
- {app.isFeatured && ( - - - Featured - - )} - {app.isHomepage && isModerator && ( - - - Homepage - - )} - {!app.isApproved && !hideApprovalStatus && ( - - - Pending - - )} -
- {/* Actions Menu */} {(isOwner || showModerationControls) && (
@@ -580,22 +555,6 @@ export function AppShowcaseCard({ app, onEdit, showModerationControls, hideAppro
- {/* Tags */} - {app.appTags.length > 0 && ( -
- {app.appTags.slice(0, 3).map((tag) => ( - - {tag} - - ))} - {app.appTags.length > 3 && ( - - +{app.appTags.length - 3} more - - )} -
- )} - {/* Spacer to push action links to bottom */}
@@ -623,33 +582,6 @@ export function AppShowcaseCard({ app, onEdit, showModerationControls, hideAppro - {app.repositoryUrl.startsWith('nostr://') ? ( - - ) : ( - - )}