diff --git a/src/app/components/AddVehicleForm.tsx b/src/app/components/AddVehicleForm.tsx index 324c503..3fb6a5a 100644 --- a/src/app/components/AddVehicleForm.tsx +++ b/src/app/components/AddVehicleForm.tsx @@ -45,8 +45,8 @@ export default function AddVehicleForm({ onSuccess, onCancel }: AddVehicleFormPr }; return ( -
-

Add New Vehicle

+ +

Add New Vehicle

{error && (
@@ -55,34 +55,34 @@ export default function AddVehicleForm({ onSuccess, onCancel }: AddVehicleFormPr )}
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
+
+
+ +
diff --git a/src/app/components/EditVehicleForm.tsx b/src/app/components/EditVehicleForm.tsx index 51fc9b9..3a2e249 100644 --- a/src/app/components/EditVehicleForm.tsx +++ b/src/app/components/EditVehicleForm.tsx @@ -61,7 +61,7 @@ export default function EditVehicleForm({
)} -
+
= ({ profile }) => { href="/dashboard/vehicles" className="p-4 border border-gray-200 dark:border-gray-700 rounded-lg hover:border-blue-500 transition-colors text-center" > -
🚗
+

Vehicles

-
📅
+ + +

Appointments

-
📋
+ + +

History

-
👤
+ + +

Profile

diff --git a/src/app/dashboard/vehicles/[vehicleId]/page.tsx b/src/app/dashboard/vehicles/[vehicleId]/page.tsx index bf25bce..e301c34 100644 --- a/src/app/dashboard/vehicles/[vehicleId]/page.tsx +++ b/src/app/dashboard/vehicles/[vehicleId]/page.tsx @@ -84,115 +84,127 @@ export default function VehicleDetailsPage() { return (
- +
+ + +
-
-
-
-

- {vehicle.year} {vehicle.make} {vehicle.model} -

-

VIN: {vehicle.vin}

-
- {vehicle.color && ( - - {vehicle.color} - - )} -
+
+ {/* Left: Images + gallery */} +
+
+
+ {vehicle.photos && vehicle.photos.length > 0 ? ( + {`${vehicle.make} + ) : ( +
+ No photo available +
+ )} +
-
-
-

License Plate

-

{vehicle.licensePlate}

-
-
-

Mileage

-

{vehicle.mileage.toLocaleString()} miles

-
-
-

Registered

-

- {new Date(vehicle.createdAt).toLocaleDateString()} -

+ {/* Thumbnail strip */} + {vehicle.photos && vehicle.photos.length > 1 && ( +
+ {vehicle.photos.map((p, i) => ( + + ))} +
+ )} + + {/* Photo upload CTA (small) */} +
+ +
-
-

Last Updated

-

- {new Date(vehicle.updatedAt).toLocaleDateString()} -

+ + {/* Service history */} +
+

Service History

+ {serviceHistory.length === 0 ? ( +
+

No service history available

+

Service records will appear here once completed

+
+ ) : ( +
    + {serviceHistory.map((s) => ( +
  • +
    +
    +
    +
    +
    +

    {s.type}

    +
    ${s.cost.toFixed(2)}
    +
    +
    {new Date(s.date).toLocaleDateString()}
    + {s.description &&

    {s.description}

    } +
    +
  • + ))} +
+ )}
-
- {/* Photo Upload Section */} -
-

Vehicle Photos

-
- - -
-
+ {/* Right: Details card */} +
); diff --git a/src/app/dashboard/vehicles/page.tsx b/src/app/dashboard/vehicles/page.tsx index 9885cc5..de3b4ff 100644 --- a/src/app/dashboard/vehicles/page.tsx +++ b/src/app/dashboard/vehicles/page.tsx @@ -80,7 +80,7 @@ export default function VehiclesPage() { {/* Add Vehicle Modal */} {showAddForm && ( -
+
+
-
🚗
+

No vehicles yet

Get started by adding your first vehicle