+
{company.ride_count && company.ride_count > 0 && (
@@ -146,6 +136,17 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
models
)}
+
+
+ {company.average_rating > 0 && (
+
+
+ {company.average_rating.toFixed(1)}
+ {company.review_count > 0 && (
+ ({company.review_count})
+ )}
+
+ )}
diff --git a/src/components/operators/OperatorCard.tsx b/src/components/operators/OperatorCard.tsx
index b21b1f73..234d936f 100644
--- a/src/components/operators/OperatorCard.tsx
+++ b/src/components/operators/OperatorCard.tsx
@@ -89,7 +89,7 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
{company.headquarters_location && (
+
+
{company.park_count && company.park_count > 0 && (
@@ -115,6 +107,17 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
parks operated
)}
+
+
+ {company.average_rating > 0 && (
+
+
+ {company.average_rating.toFixed(1)}
+ {company.review_count > 0 && (
+ ({company.review_count})
+ )}
+
+ )}
diff --git a/src/components/park-owners/ParkOwnerCard.tsx b/src/components/park-owners/ParkOwnerCard.tsx
index a8803bfe..1ed6e105 100644
--- a/src/components/park-owners/ParkOwnerCard.tsx
+++ b/src/components/park-owners/ParkOwnerCard.tsx
@@ -89,7 +89,7 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => {
{company.headquarters_location && (
-
+
{company.headquarters_location}
@@ -97,17 +97,9 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => {
)}
- {/* Rating */}
- {company.average_rating > 0 && (
-
-
- {company.average_rating.toFixed(1)}
- ({company.review_count} reviews)
-
- )}
-
{/* Park Count Stats */}
-
+
+
{company.park_count && company.park_count > 0 && (
@@ -115,6 +107,17 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => {
parks owned
)}
+
+
+ {company.average_rating > 0 && (
+
+
+ {company.average_rating.toFixed(1)}
+ {company.review_count > 0 && (
+ ({company.review_count})
+ )}
+
+ )}
diff --git a/src/components/parks/ParkCard.tsx b/src/components/parks/ParkCard.tsx
index 895b96d5..1ee24ac0 100644
--- a/src/components/parks/ParkCard.tsx
+++ b/src/components/parks/ParkCard.tsx
@@ -81,10 +81,14 @@ export function ParkCard({ park }: ParkCardProps) {
{park.name}
- {park.location &&
-
+ {park.location && (
+
+
+
{park.location.city && `${park.location.city}, `}{park.location.country}
-
}
+
+
+ )}
{/* Park Type */}
diff --git a/src/components/rides/RideCard.tsx b/src/components/rides/RideCard.tsx
index 1e7ce152..3de70e42 100644
--- a/src/components/rides/RideCard.tsx
+++ b/src/components/rides/RideCard.tsx
@@ -93,10 +93,12 @@ export function RideCard({ ride, showParkName = true, className, parkSlug }: Rid
{showParkName && ride.park?.name && (
-
-
- {ride.park.name}
- {ride.park.location?.city && `, ${ride.park.location.city}`}
+
+
+
+ {ride.park.name}
+ {ride.park.location?.city && `, ${ride.park.location.city}`}
+
)}
diff --git a/src/components/rides/RideModelCard.tsx b/src/components/rides/RideModelCard.tsx
index c6dd0378..5c177b84 100644
--- a/src/components/rides/RideModelCard.tsx
+++ b/src/components/rides/RideModelCard.tsx
@@ -1,6 +1,5 @@
import { Card, CardContent } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
-import { Button } from '@/components/ui/button';
import { FerrisWheel } from 'lucide-react';
import { RideModel } from '@/types/database';
import { useNavigate } from 'react-router-dom';
@@ -40,7 +39,10 @@ export function RideModelCard({ model, manufacturerSlug }: RideModelCardProps) {
const cardImageId = extendedModel.card_image_id;
return (
-
+ navigate(`/manufacturers/${manufacturerSlug}/models/${model.slug}`)}
+ >
@@ -77,17 +79,8 @@ export function RideModelCard({ model, manufacturerSlug }: RideModelCardProps) {
-
-
- {rideCount} {rideCount === 1 ? 'ride' : 'rides'}
-
-
+
+ {rideCount} {rideCount === 1 ? 'ride' : 'rides'}