chore: vehicle cards show Year Make Model and hide empty VIN (#162) #167
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #162
Severity: High
Problem
Vehicle list cards show brand logo, nickname/name, VIN, license, and odometer -- but no year/make/model line on the desktop card itself (only nickname). The card for "YOTA" doesn't tell you it's a 2025 Toyota Camry unless you click in. Additionally, several cards show "VIN:" with nothing after it (empty), which takes up space and looks broken.
Recommendation
Acceptance Criteria
Implementation Plan (from #162 -- Milestone 7)
Phase: 3 (Vehicle display consistency) | Priority: High | Depends on: #165 (Milestone 1 -- shared utilities) | Blocks: None
Context
Vehicle cards only show the display name (nickname or fallback). Users need to see Year Make Model as a subtitle for quick identification. VIN is shown even when empty on desktop cards.
Implementation
1. In
frontend/src/features/vehicles/components/VehicleCard.tsx(desktop):getVehicleSubtitlefrom@/core/utils/vehicleDisplaygetVehicleSubtitle(vehicle){vehicle.vin && <Typography>VIN: {vehicle.vin}</Typography>}2. In
frontend/src/features/vehicles/mobile/VehicleMobileCard.tsx(mobile):getVehicleSubtitlefrom@/core/utils/vehicleDisplaygetVehicleSubtitle(vehicle)(show only if subtitle is non-empty)Files
frontend/src/features/vehicles/components/VehicleCard.tsxfrontend/src/features/vehicles/mobile/VehicleMobileCard.tsxCommit Convention
Test Criteria
Branch
Work on branch
issue-162-ux-design-audit-cleanup(shared with all #162 sub-issues)Milestone: Implementation Complete
Phase: Execution | Agent: Developer | Status: PASS
Changes
Desktop
VehicleCard.tsx:getVehicleSubtitleimport and usage{vehicle.vin && ...})Mobile
VehicleMobileCard.tsx:vehicle.model || 'Unknown Model'withgetVehicleSubtitle(vehicle)Verification
56be3edon branchissue-162-ux-design-audit-cleanupVerdict: PASS | Next: Visual verification on mobile and desktop viewports