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>
This commit is contained in:
parent
5dfe08bf6f
commit
52fc90b062
1 changed files with 66 additions and 9 deletions
13
.gitignore
vendored
13
.gitignore
vendored
|
|
@ -32,10 +32,15 @@
|
|||
# Export zips, if an output dir inside the theme is ever used.
|
||||
/dist/
|
||||
|
||||
# Work-in-progress artwork sources (logo/preview SVGs) — local only, never
|
||||
# commit/publish. LimeSurvey's image validator rejects SVG for theme images
|
||||
# anyway, so only the exported PNG is ever committed (e.g. files/preview.png).
|
||||
/files/*.svg
|
||||
# Work-in-progress logo artwork — local only, never commit/publish.
|
||||
/files/logos.svg
|
||||
|
||||
# NOTE: files/preview.svg is deliberately NOT ignored (standing rule, row 235):
|
||||
# it is the editable source of files/preview.png and is meant to be committed —
|
||||
# in a variant (private variants repo) build.php adds it only once, at first
|
||||
# creation, and never overwrites it afterwards. The public export still excludes
|
||||
# all files/*.svg (see variants/export_public.sh): LimeSurvey's image validator
|
||||
# rejects SVG for theme images, so only the exported PNG ships.
|
||||
|
||||
# Session prompt log (prompts used + results). Internal working notes — never
|
||||
# commit, never publish.
|
||||
|
|
|
|||
Loading…
Reference in a new issue