vanilla_respondage/variants
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark 52fc90b062 chore(variants): standing rule row 235 — variant preview must differ from mother's; preview.svg not gitignored, added once at first creation
- .gitignore: /files/*.svg reverted to /files/logos.svg — files/preview.svg is
  deliberately NOT ignored anymore (it is the editable source of preview.png
  and lives committed in the private variants repo). The public export still
  excludes files/*.svg (LimeSurvey's image validator rejects SVG for images).
- variants/build.php: copyDirRecursive() gained a $neverOverwrite list;
  files/preview.svg is copied into a variant only at FIRST creation (seeded
  from the mother when the definitions dir has none) and never overwritten on
  later builds. The build prints a WARNING when the variant's preview.png is
  md5-identical to the mother's, enforcing the standing rule that every
  variant has its own preview.
- Standing rule recorded in AGENTS.md (project) and ~/.vibe/AGENTS.md.

Verified in a /tmp sandbox build: first build copies/seeds preview.svg; a
user-edited preview.svg survives rebuilds (also when the definitions copy
changes); all other assets are still overwritten; identical-preview.png
warning fires; php -l clean; export_public.sh exit 0 with no .svg in the zip.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 12:08:06 +01:00
..
example/respondage_respondage feat(options): row 221 — align Questions-tab color columns + move slider handle color into the answers section 2026-11-30 10:01:49 +01:00
build.php chore(variants): standing rule row 235 — variant preview must differ from mother's; preview.svg not gitignored, added once at first creation 2026-11-30 12:08:06 +01:00
export_public.sh chore(files): row 234 — gitignore WIP svg artwork (files/*.svg), commit new preview.png 2026-11-30 11:58:34 +01:00