The vehicleCardHeader component is not visible on UI
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 645
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
Bug
The vehicleCardHeader component is not visible on UI
On the dashboard, the vehicleCardHeader component (which displays the vehicle VIN, "Vehicle Service History" button, and "Contact Mechanic" button) is successfully is completely hidden from the user interface.
To Reproduce
- Log into the crAPI application.
- Add a new vehicle or navigate to the dashboard with an existing vehicle.
- Look at the vehicle card at the top. The vehicle image and details are visible, but the header containing the VIN and action buttons is missing.
- Inspect the DOM to see that the ant-page-header-heading is rendered but pushed out of view due to the .ant-card-meta-title constraints.
Expected behavior
The vehicle's VIN and action buttons ("Vehicle Service History", "Contact Mechanic") should be fully visible at the top of the vehicle card.
Suggested fix
the <Meta> wrapper can be removed in services/web/src/components/dashboard/dashboard.tsx and the header/content placed directly inside the body:
diff
- <Meta
- title={vehicleCardHeader(
- vehicle,
- handleVehicleServiceClick,
- handleContactMechanic,
- )}
- description={vehicleCardContent(vehicle)}
- />
+ {vehicleCardHeader(
+ vehicle,
+ handleVehicleServiceClick,
+ handleContactMechanic,
+ )}
+ {vehicleCardContent(vehicle)
Runtime Environment
OS: Windows
Docker version: [e.g. Docker version 29.6.1
Browser: [Chrome 150.0.7871.101, Edge Version 150.0.4078.65]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in services/web/src/components/dashboard/dashboard.tsx and reproduce the dashboard vehicle-card rendering described in the issue. Check that the vehicle VIN and the “Vehicle Service History” and “Contact Mechanic” buttons are fully visible after the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 84/100