Commit graph vanilla_respondage/variants/option_formats.php
Author SHA1 Message Date
70ce9ff62b docs(variants): shorten the border-radius format hint
"CSS radius in px or rem, e.g. 5px" instead of the longer wording.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 17:16:09 +01:00
3c807ca1b3 fix(config): questionborderradius* are CSS lengths, not durations
The four questionborderradiusTL/TR/BL/BR options were declared type="duration"
but their values are border-radius lengths (default 5px, emitted into
border-radius in custom_header.twig and validated against
^[0-9]+([.][0-9]+)?(px|rem)$). That made the _formats hint say "duration in
seconds, e.g. 300" — wrong. Type is now "text" and the format hint reads
"CSS length in px or rem, e.g. 5px (border-radius; NOT seconds)". Variants
rebuilt (build_all.sh --rebuild); labels.csv unchanged (titles untouched).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 17:13:04 +01:00
f3d3912c2f feat(variants): document value format per option key in variant jsons
Every variants/<client>.json now carries a "_formats" map: behind each
option key, the form the value should take ("on|off", "hex color, e.g.
#123456", "plain px number, e.g. 15", "off | ./files/logo.png", font
slug, chooser mode + <key>custom, ...), derived from the mother config.xml
by variants/option_formats.php. variants/document_options.php refreshes the
map in every json (--check for staleness); build.php adds a hint when it
auto-adds a NEW option key to a json. _formats is documentation only and
never read by the build or the drift check.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 16:57:44 +01:00