Highlights: ๐ VIN display fix, vehicle images in cards, stronger backend logging & validation, tests added, and a breaking auth route rename.
What's new
- ๐ผ๏ธ Frontend: Vehicle images are now supported and displayed in the vehicle card โ richer UI.
- ๐งพ Backend: Added structured logging using Winston for clearer, searchable logs.
- โ Common: Multi-environment configuration added (dev/staging/prod) for safer deployments.
Improvements
- ๐ Frontend: Fixed VIN number display so VINs render correctly in the UI.
- ๐ Frontend: Added a fetch wrapper to standardize API calls (consistent error handling, headers, etc.).
- ๐ฌ Frontend: Migrated to class-based stores for more consistent data fetching and state usage.
- ๐งฐ Backend: Added data validation via a common wrapper at the route level (improves request validation & reduces duplicate code).
- โ๏ธ Backend: Added secondary sort for fuel logs filled on the same day (stable, predictable ordering).
Testing
- ๐งช Frontend: Added frontend helper tests.
- ๐ฌ Backend: Added backend API tests.
Breaking changes / Migration notes
- โ ๏ธ Backend: Auth route renamed from /api/pin to /api/auth โ update any clients, integrations, or documentation to use /api/auth. This is a breaking change for consumers calling the old endpoint.
Developer / Ops notes
- ๐ง Logging: Winston configuration is in place โ ensure log aggregation/forwarding is updated if you rely on a specific log format or transport.
- โป๏ธ Validation: Route-level validation wrapper centralizes schema checks โ review any custom per-route validation that may now be redundant.
- ๐ Environments: Multi-environment config requires environment-specific variables; verify CI/CD and deployment configs contain the new keys.
Recommended actions
- Update all clients/integrations to use /api/auth instead of /api/pin.
- Verify logging/monitoring dashboards post-deploy (Winston format).
- Run full regression focusing on vehicle cards (VIN and images) and fuel log ordering.
- Confirm environment variables for each environment are present before deploying.