Skip to content
English
  • There are no suggestions because the search field is empty.

How Inspection Item Behavior Works

Source: autosoft-workshop/app/models/inspection_item.rb

  • GYR (green/yellow/red) status automatically sets attention flags: Yellow sets needs_attention_soon, Red sets needs_attention_urgent
  • Carry-out items default to 'f' (false/no) if left blank — an empty carry-out field means the work was not carried out
  • Saving an inspection item automatically attaches any vehicle visuals associated with that product — this happens once per product per inspection
  • Destroying (deleting) an inspection item removes its associated vehicle visual attachment
  • Input fields on inspection items are limited to 20 characters each

Support scenarios

  • "The attention flag set itself" → GYR status automatically controls attention flags; yellow = needs_attention_soon, red = needs_attention_urgent
  • "The carry-out field shows 'no' but I didn't set it" → blank carry-out fields default to 'f' (false/no)
  • "A vehicle image appeared on the inspection that I didn't add" → saving an item auto-attaches vehicle visuals for that product; this is automatic
  • "I deleted the item and the image disappeared" → deleting an inspection item also removes its vehicle visual attachment
  • "My input text got cut off" → input fields have a 20-character limit