Skip to main content

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.

Photos can be attached to any checklist item to document visible defects, borderline conditions, or anything the inspector wants to highlight to the customer. Photographic evidence strengthens the credibility of the report and provides a timestamped record that protects both the workshop and the vehicle owner. Any item — regardless of its status — can have one or more photos attached at any point during the inspection.

Capturing a photo

1

Open the photo attachment panel

Tap or click the camera icon (📷) displayed on the right side of any checklist item row. The photo panel expands below the item, showing existing attachments and the option to add new ones.
2

Choose your input method

A prompt appears with two options:
  • Cámara — opens the device camera directly. Recommended on smartphones and tablets for capturing photos of the vehicle in real time.
  • Subir archivo — opens the file picker so you can select an image already saved on the device. Useful on desktop workstations or when importing photos from a separate camera.
3

Review and confirm the photo

After capturing or selecting an image, a preview is shown. The app automatically compresses the image to a JPEG and displays the resulting file size. If the image looks correct, tap Confirmar to attach it. Tap Repetir to retake or reselect.
4

Add an optional caption

A caption field appears below the confirmed thumbnail. Type a short description — for example, “Arañazo en puerta trasera derecha” — to give the photo context in the report. Captions are optional but recommended for Critical items.

Photo storage

Photos are stored locally on the device as compressed JPEG data URLs inside IndexedDB, within the same inspection record they belong to. No photos are uploaded to an external server unless a backend URL is configured and the inspection is synced.
  • Default maximum size per photo: 5 MB (after compression)
  • Configurable limit: set the VITE_MAX_PHOTO_SIZE_MB environment variable in your .env file to raise or lower this limit
# .env
VITE_MAX_PHOTO_SIZE_MB=8
If a photo exceeds the configured limit after compression, the app displays an error and asks the inspector to retake the photo at a lower resolution or in a smaller frame.
IndexedDB storage quotas vary by browser and operating system. On most modern devices, available storage is several hundred megabytes or more. If the device is running low on storage, the browser may prompt the user to allow persistent storage — tap Allow to prevent the OS from evicting inspection data under storage pressure.

Viewing and deleting photos

  • View full size — tap any thumbnail to open the photo in a full-screen lightbox. Pinch-to-zoom is supported on touch devices.
  • Delete a photo (touch) — long-press a thumbnail for one second, then tap the Eliminar button that appears, or swipe the thumbnail left to reveal the delete action.
  • Delete a photo (desktop) — hover over the thumbnail to reveal the × delete button in the top-right corner, then click it and confirm the deletion prompt.
Deleted photos are removed immediately from IndexedDB. If the inspection has already been synced to a backend, the deletion will be queued for sync the next time the device is online.

Multiple photos per item

Each checklist item supports up to 10 photos. This allows inspectors to document the same defect from multiple angles, or to capture before-and-after context where relevant. The photo counter (2/10) is shown next to the camera icon on any item that already has attachments, so it is immediately visible when reviewing the form.
For bodywork damage, capture at least three angles: a wide shot for context, a close-up of the defect, and a side-on shot to show depth. This gives customers — and any future insurance assessors — the full picture.

Photos in reports

When a PDF report is generated, photos are included as follows:
  • Critical items — all attached photos are automatically embedded in the report, printed full-width beneath the relevant finding.
  • Attention items — the first photo (if any) is included; additional photos are listed as available in the digital version of the report.
  • OK items — photos are stored in the inspection record but are not printed in the default PDF to keep the report concise. They remain accessible in the full digital inspection view.
All photos — regardless of item status — are always accessible through the inspection detail screen and the digital report link (if a backend is connected). Only the PDF print layout is filtered by status.

Limitations and tips

Always capture photos in good lighting. For underside or engine bay shots, use a torch or the device’s flashlight. Poor lighting is the most common cause of photos that are rejected or queried by customers later.
The camera feature requires the browser to have permission to access the device camera. This permission is only requested over a secure HTTPS connection — the feature will not work on plain HTTP. If the camera permission prompt does not appear, check that the app is being served over HTTPS and that camera permissions have not been previously blocked in the browser’s site settings.On iOS Safari, the user must grant camera permission each session if the app has not been added to the homescreen as a PWA. Adding the app to the homescreen (see Offline Support) grants persistent camera permission.

Build docs developers (and LLMs) love