Photos uploaded before image processing was installed are marked analyzed
with no width, so the "unreadable image" check showed them as file links.
Every resizable image gets a thumbnail again; one that can't be read still
falls back to the original when resizing fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Components can't be made into a parent loop, and the parts tree walks
stop safely if one exists (logbook entry and squawk resolution pages
crashed).
- A rejected aircraft photo no longer breaks the edit page; empty photos
are refused; images that can't be read aren't resized, and a failed
resize sends the original instead of an error.
- Unsupported formats (/report.pdf…) answer 406; tampered upload
references, out-of-range numbers and constraint violations get a form
message instead of a 500; requests with null bytes are refused (400).
- Blank values in required columns with defaults take the default;
optional links to records that don't exist are validation errors.
- Imports (oil report, logbook scans, .sam.zip) accept only uploaded files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Photos show as 64px thumbnails (160px resized copies, made once with
libvips and kept; lazy-loaded) that open the in-app viewer, which has
Download; other files keep their name chip and download link
- image_processing gem and the vips variant processor (libvips was already
in the image)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Views use lazy t(".key") lookups; sentences with values or links stay
whole (interpolation, _html keys); counts use one/other plurals
- Stored-value labels (statuses, types, priorities...) are LabelSets read
from labels: in the current locale; field names and validation messages
under activerecord:; flash and activity text under flash:
- Services, models, helpers, mailer subjects, the logbook PDF, procedures
templates, records package README and transcription warnings localized;
the PDF reuses LogbookEntry#certification_statement instead of a copy
- Scripts read js: strings from a JSON tag via app/javascript/i18n.js
- Dates through I18n.l (app, weekday, month_year, long formats); html lang
follows the locale
- APP_LOCALE picks the language (falls back to English); missing
translations raise in development and tests
- README: Translating section and APP_LOCALE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Existing single attachments migrate to the new list. Photos open in a
full-screen viewer (swipe/arrow keys); every file has a download link.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>