chore(files): sync files/preview.svg publicly (row 237)

The export now excludes only the WIP files/logos.svg, not preview.svg:
preview.svg is the editable source of files/preview.png and is committed and
shipped in the public zip like any other theme file (row 235 already removed
it from .gitignore). LimeSurvey's image validator still rejects SVG for option
images, so the preview shown inside LimeSurvey remains the exported PNG.

Verified: export_public.sh exit 0 (leak + external-host checks green — the URL
scan does not cover .svg and www.w3.org is allowlisted anyway), the new
dist zip contains files/preview.svg + files/preview.png and no logos.svg,
logos.svg stays gitignored.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-30 12:27:00 +01:00
commit d288ac8197

10
.gitignore vendored
View file

@ -36,11 +36,11 @@
/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.
# it is the editable source of files/preview.png and is committed AND synced
# publicly (row 237: the export excludes only files/logos.svg, not preview.svg).
# In a variant (private variants repo) build.php adds it only once, at first
# creation, and never overwrites it afterwards. LimeSurvey's image validator
# rejects SVG for option images, so the theme preview itself is still the PNG.
# Session prompt log (prompts used + results). Internal working notes — never
# commit, never publish.