From 41d6cb8771243684fe2a221fabffe5994c905622 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:04:29 +0000
Subject: [PATCH] Fix image display for all entities
---
.../manufacturers/ManufacturerCard.tsx | 56 +++++++++++--------
src/components/operators/OperatorCard.tsx | 56 +++++++++++--------
src/components/park-owners/ParkOwnerCard.tsx | 56 +++++++++++--------
src/components/parks/ParkCard.tsx | 12 +++-
src/components/rides/RideCard.tsx | 4 +-
src/pages/DesignerDetail.tsx | 8 ++-
src/pages/ManufacturerDetail.tsx | 8 ++-
src/pages/OperatorDetail.tsx | 8 ++-
src/pages/PropertyOwnerDetail.tsx | 8 ++-
src/pages/RideDetail.tsx | 4 +-
10 files changed, 141 insertions(+), 79 deletions(-)
diff --git a/src/components/manufacturers/ManufacturerCard.tsx b/src/components/manufacturers/ManufacturerCard.tsx
index 5e5d41ed..c76aee7f 100644
--- a/src/components/manufacturers/ManufacturerCard.tsx
+++ b/src/components/manufacturers/ManufacturerCard.tsx
@@ -40,31 +40,41 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
>
{/* Logo/Image Section */}
-
-
- {/* Company Type Badge */}
-
-
- {formatCompanyType(company.company_type)}
-
-
+ {(company.card_image_url || company.card_image_id) ? (
+

+ ) : (
+ <>
+
+
+ {/* Company Type Badge */}
+
+
+ {formatCompanyType(company.company_type)}
+
+
- {/* Logo Display */}
-
- {company.logo_url ? (
-
-

+ {/* Logo Display */}
+
+ {company.logo_url ? (
+
+

+
+ ) : (
+
+ {getCompanyIcon(company.company_type)}
+
+ )}
- ) : (
-
- {getCompanyIcon(company.company_type)}
-
- )}
-
+ >
+ )}
diff --git a/src/components/operators/OperatorCard.tsx b/src/components/operators/OperatorCard.tsx
index 05344120..5a96d15a 100644
--- a/src/components/operators/OperatorCard.tsx
+++ b/src/components/operators/OperatorCard.tsx
@@ -27,31 +27,41 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
>
{/* Logo/Image Section */}
-
-
- {/* Park Operator Badge */}
-
-
- Park Operator
-
-
+ {(company.card_image_url || company.card_image_id) ? (
+

+ ) : (
+ <>
+
+
+ {/* Park Operator Badge */}
+
+
+ Park Operator
+
+
- {/* Logo Display */}
-
- {company.logo_url ? (
-
-

+ {/* Logo Display */}
+
+ {company.logo_url ? (
+
+

+
+ ) : (
+
+ {getCompanyIcon()}
+
+ )}
- ) : (
-
- {getCompanyIcon()}
-
- )}
-
+ >
+ )}
diff --git a/src/components/park-owners/ParkOwnerCard.tsx b/src/components/park-owners/ParkOwnerCard.tsx
index caf85ab6..0b612438 100644
--- a/src/components/park-owners/ParkOwnerCard.tsx
+++ b/src/components/park-owners/ParkOwnerCard.tsx
@@ -27,31 +27,41 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => {
>
{/* Logo/Image Section */}
-
-
- {/* Property Owner Badge */}
-
-
- Property Owner
-
-
+ {(company.card_image_url || company.card_image_id) ? (
+

+ ) : (
+ <>
+
+
+ {/* Property Owner Badge */}
+
+
+ Property Owner
+
+
- {/* Logo Display */}
-
- {company.logo_url ? (
-
-

+ {/* Logo Display */}
+
+ {company.logo_url ? (
+
+

+
+ ) : (
+
+ {getCompanyIcon()}
+
+ )}
- ) : (
-
- {getCompanyIcon()}
-
- )}
-
+ >
+ )}
diff --git a/src/components/parks/ParkCard.tsx b/src/components/parks/ParkCard.tsx
index 87e224c1..7cc4570f 100644
--- a/src/components/parks/ParkCard.tsx
+++ b/src/components/parks/ParkCard.tsx
@@ -46,9 +46,17 @@ export function ParkCard({ park }: ParkCardProps) {
{/* Image Placeholder with Gradient */}
- {park.card_image_url ?

:
+ {(park.card_image_url || park.card_image_id) ? (
+

+ ) : (
+
{getParkTypeIcon(park.park_type)}
-
}
+
+ )}
{/* Gradient Overlay */}
diff --git a/src/components/rides/RideCard.tsx b/src/components/rides/RideCard.tsx
index 998085f5..431aca00 100644
--- a/src/components/rides/RideCard.tsx
+++ b/src/components/rides/RideCard.tsx
@@ -55,9 +55,9 @@ export function RideCard({ ride, showParkName = true, className, parkSlug }: Rid
{/* Image/Icon Section */}
- {(ride.card_image_url || ride.image_url) ? (
+ {(ride.card_image_url || ride.card_image_id || ride.image_url) ? (

diff --git a/src/pages/DesignerDetail.tsx b/src/pages/DesignerDetail.tsx
index 3fae89ed..a1f44798 100644
--- a/src/pages/DesignerDetail.tsx
+++ b/src/pages/DesignerDetail.tsx
@@ -133,7 +133,13 @@ export default function DesignerDetail() {
{/* Hero Section */}
- {designer.logo_url ? (
+ {(designer.banner_image_url || designer.banner_image_id) ? (
+

+ ) : designer.logo_url ? (
- {manufacturer.logo_url ? (
+ {(manufacturer.banner_image_url || manufacturer.banner_image_id) ? (
+

+ ) : manufacturer.logo_url ? (
- {operator.logo_url ? (
+ {(operator.banner_image_url || operator.banner_image_id) ? (
+

+ ) : operator.logo_url ? (
- {owner.logo_url ? (
+ {(owner.banner_image_url || owner.banner_image_id) ? (
+

+ ) : owner.logo_url ? (
- {(ride.banner_image_url || ride.card_image_url || ride.image_url) ? (
+ {(ride.banner_image_url || ride.banner_image_id) ? (