From 30a903a2dfbbfb74292f339b8155cc19126f93f8 Mon Sep 17 00:00:00 2001 From: OCbwoy3 Date: Sun, 28 Dec 2025 11:12:59 +0200 Subject: [PATCH] chatgpt codex + cascade: update --- app/games/[id]/content.tsx | 2 +- app/globals.css | 15 +++++--------- app/layout.tsx | 1 - app/users/[id]/content.tsx | 2 -- components/roblox/FriendCarousel.tsx | 26 ++++++++++++++----------- components/roblox/GameCard.tsx | 6 +++--- components/roblox/UserProfileHeader.tsx | 13 ++++++------- components/ui/card.tsx | 5 +---- tailwind.config.ts | 2 +- 9 files changed, 32 insertions(+), 40 deletions(-) diff --git a/app/games/[id]/content.tsx b/app/games/[id]/content.tsx index ac418a7..d7704fb 100644 --- a/app/games/[id]/content.tsx +++ b/app/games/[id]/content.tsx @@ -74,7 +74,7 @@ export default function GamePageContent({ return (
-
+
{!theirFriends && } - {/* - //@ts-expect-error */} -

{title}

-
+
+

{title}

+
b.userId === a.id ); const userPresence = userStatus?.userPresenceType || 0; + /* dont touch these color thingys */ const borderColor = userPresence === 1 ? "border-blue/25 bg-blue/25" @@ -107,15 +108,17 @@ export function FriendCarousel({ text={
-

{a.displayName || a.name}

+

+ {a.displayName || a.name} +

{!a.hasVerifiedBadge ? ( ) : null} {userPresence >= 2 ? ( -

+

{userStatus?.lastLocation}

) : null} @@ -123,8 +126,10 @@ export function FriendCarousel({
} > - -
+ ) : null} -
); diff --git a/components/roblox/GameCard.tsx b/components/roblox/GameCard.tsx index fa64a23..8d1c922 100644 --- a/components/roblox/GameCard.tsx +++ b/components/roblox/GameCard.tsx @@ -59,7 +59,7 @@ export const GameCard = React.memo(function GameCard({ game }: GameCardProps) { onClick={() => setIsOpen(true)} >
-
+
{game.primaryMediaAsset ? ( ) : ( -
+
{":("}
)}
-
+

diff --git a/components/roblox/UserProfileHeader.tsx b/components/roblox/UserProfileHeader.tsx index 56f08fb..5bb324e 100644 --- a/components/roblox/UserProfileHeader.tsx +++ b/components/roblox/UserProfileHeader.tsx @@ -19,7 +19,6 @@ import Link from "next/link"; import { UserProfileDetails } from "@/lib/profile"; export function UserProfileHeader({ user }: { user: UserProfileDetails }) { - if (!user) { return (

@@ -42,12 +41,12 @@ export function UserProfileHeader({ user }: { user: UserProfileDetails }) { userPresence === 1 ? "border-blue/25 bg-blue/25" : userPresence === 2 - ? "border-green/25 bg-green/25" - : userPresence === 3 - ? "border-yellow/25 bg-yellow/25" - : userPresence === 0 - ? "border-surface2/25 bg-surface2/25" - : "border-red/25 bg-red/25"; + ? "border-green/25 bg-green/25" + : userPresence === 3 + ? "border-yellow/25 bg-yellow/25" + : userPresence === 0 + ? "border-surface2/25 bg-surface2/25" + : "border-red/25 bg-red/25"; const isLoaded = !!user; diff --git a/components/ui/card.tsx b/components/ui/card.tsx index 2af0f0f..d064767 100644 --- a/components/ui/card.tsx +++ b/components/ui/card.tsx @@ -8,10 +8,7 @@ const Card = React.forwardRef< >(({ className, ...props }, ref) => (
)); diff --git a/tailwind.config.ts b/tailwind.config.ts index 4a1d8ac..1469e4b 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -3,7 +3,7 @@ import { flavors } from "@catppuccin/palette"; const ctpColors: Record = {}; for (const [name, color] of Object.entries(flavors.mocha.colors)) { - ctpColors[name] = color.hex; + ctpColors[name] = color.hex; } export default {