← Back to Blog

Vehicle Nicknames — Know Your Charger at a Glance

Every charging station on ChargePeer has a name. When you register your outlet as a provider, you give it a name — "Home Garage", "Office Spot", "Lisa's Driveway" — whatever makes it recognizable to you and your seekers. But until today, that name was invisible on the booking list. Every booking card just showed the provider's name, which is useful but impersonal.

That changes now. The booking cards at /bookings now display the vehicle's nickname — the name field from the vehicle profile — right where it matters most: in the location detail row, alongside the access code. When a vehicle has a nickname set, it takes the primary position, replacing the generic provider name as the main label.

The vehicle nickname is shown in the detail row that already displays the provider name and access code. Instead of "Provider — Access: CP-XXXXXXXX", you'll now see "Home Garage — Access: CP-XXXXXXXX" if the vehicle has a nickname configured. If no nickname is set, the behavior falls back to the provider name as before — no breakage, no empty state.

Under the hood, the GET /api/bookings/mine endpoint now includes a vehicle_nickname field sourced from v.name in the SQL query. The JOIN against the vehicles table already fetched v.rate — adding v.name was a single column addition. On the frontend, the detail row uses `b.vehicle_nickname ?? b.provider_name ?? 'Provider'` — a clean nullish coalescing chain that prefers the nickname, falls back to the provider name, and finally to the literal "Provider" if neither is available.

This is a small change with outsized impact for power users who book the same stations regularly. Instead of seeing "Provider" on every card, you see the actual names you and your providers have chosen — making the booking list feel more personal and instantly scannable.