The Euroautos Inspection Form is built around a set of strongly-typed data structures that represent every aspect of a vehicle inspection — from top-level record metadata down to individual checklist item findings and photographic evidence. All data is persisted locally in the browser’s IndexedDB store so that inspections can be created and completed without a network connection, and optionally synced to the backend API when connectivity is restored.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/juanmatz/inspection-form-euroautos/llms.txt
Use this file to discover all available pages before exploring further.
Inspection
TheInspection interface is the root record for a single vehicle inspection job. It ties together the vehicle being inspected, the inspector and workshop responsible, the current workflow status, and the ordered list of completed sections.
The
id is always generated client-side using crypto.randomUUID() at the moment the inspector creates a new record. This means the record can be written to IndexedDB immediately — without waiting for a server response — and the same ID is used when the record is eventually synced to the backend. Collisions are statistically negligible with UUID v4.Vehicle
TheVehicle interface captures the identifying details of the car or light commercial vehicle being inspected. A vehicle record may be reused across multiple inspections over time.
The
vin field is validated against the standard 17-character alphanumeric format (excluding the letters I, O, and Q) before the Vehicle Information section can be marked complete. The licensePlate value is stored exactly as entered and is used as the primary human-readable identifier throughout the form UI and on the generated PDF report.InspectionSection
EachInspection contains an ordered array of InspectionSection records — one per section type. Sections are created automatically when a new Inspection record is initialised, with all items in a default unassessed state.
ChecklistItem
ChecklistItem is the atomic unit of the inspection. Each item represents a single inspection point within a section — for example, “Front left tyre tread depth” within the tyres_wheels section. All findings, notes, and photographic evidence are stored at this level.
Local storage
All inspection data is persisted in the browser’s IndexedDB database under the store name
euroautos_inspections. The database contains three object stores: inspections (keyed by Inspection.id), vehicles (keyed by Vehicle.id), and sync_queue (an ordered log of mutations that have not yet been confirmed by the backend).When the application is offline or the backend is unreachable, every create, update, and delete operation is written to sync_queue as a serialised mutation object containing the operation type (create | update | delete), the target store name, the affected record ID, and the full record payload. When connectivity is restored, the application processes the queue in order, replaying mutations against the API and removing entries from the queue as each one is acknowledged. If a sync conflict is detected — for example, the same record was modified on another device — the backend returns a 409 Conflict response and the application surfaces a manual merge prompt to the user.