Commit graph vanilla_respondage/variants
Author SHA1 Message Date
92cc6443ac feat(variants): build_all.sh modes — build only new variants, --rebuild only existing ones
- Default (build) mode picks up only *.json files for which NO variant folder
  (../<name>/) exists yet, so an existing variant is never clobbered by a
  build run (e.g. by a just-copied, not-yet-adjusted json). At the end it lists
  the jsons that were NOT picked up and advises that they possibly need to be
  re-built via 'build_all.sh --rebuild'.
- '--rebuild' mode picks up only *.json files whose variant folder already
  exists, and advises about the jsons without a variant yet (build them with
  the default mode).
- Both modes print a 'N built, M failed, K not picked up' summary, exit non-zero
  on any build failure, and keep the owner follow-up actions (reset themes in
  the LS admin, flushassets, Ctrl+F5).
- README build/rebuild sections and AGENTS.md updated to the two modes.

Verified in a /tmp sandbox: build mode built only the json without a variant
folder and listed the existing ones with the --rebuild advice; --rebuild built
only existing variants and listed the new json with the build advice; on the
real definitions dir the default mode built 0 and skipped all 3 (variants
exist) without touching ../respondage_respondage/config.xml (md5 unchanged).
export_public.sh exit 0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 12:38:05 +01:00
ba0a5999dc chore(variants): row 239 — variant titles: Defensie/Erasmus/Respondage LimeSurvey theme
Set the metadata <title> of the three variants (row 239):
- respondage_defensie  -> 'Defensie LimeSurvey theme'  (via variants/respondage_defensie.json, gitignored local definitions, rebuilt)
- respondage_erasmus   -> 'Erasmus LimeSurvey theme'   (via variants/respondage_erasmus.json, rebuilt)
- respondage_respondage -> 'Respondage LimeSurvey theme' (no json exists for the
  public example, so its title was edited directly in the tracked example output;
  the deployable sibling folder was updated the same way)

Variant NAMES are unchanged (folder names stay respondage_defensie /
respondage_erasmus / respondage_respondage). Rebuild via build_all.sh: 2 built,
0 failed, no preview warnings. export_public.sh exit 0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 12:30:50 +01:00
9cb0eb0723 docs(variants): define the build process (new variant) and rebuild process (build_all.sh)
- New variants/build_all.sh: rebuilds ALL variants from their json definitions
  in one go (loops over <definitions-dir>/*.json, calls build.php per variant,
  aggregates failures, exits non-zero on any failure) and prints the owner
  follow-up actions (reset each variant theme in the LS admin, flushassets,
  Ctrl+F5). Generic tooling — no client names — so it ships in the public repo.
- README.md: the variants workflow is now split into a 'Build process' (defining
  a NEW variant: json + assets in the private definitions repo, build.php,
  deploy + theme reset + flushassets) and a 'Rebuild process' (build_all.sh after
  a mother config.xml change or a definitions change). The preview section now
  documents the standing rules: variant preview must differ from the mother's,
  preview.svg is committed + synced publicly, added only at first creation and
  never overwritten.
- AGENTS.md propagation rule now points at build_all.sh.

Verified: bash -n clean; PHP_BIN=/usr/bin/php bash variants/build_all.sh variants
-> '2 built, 0 failed', rc=0, both variants' preview.svg untouched (md5 before =
after); export_public.sh exit 0 with build_all.sh in the zip.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 12:29:27 +01:00
d288ac8197 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>
2026-11-30 12:27:00 +01:00
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
5dfe08bf6f chore(files): row 234 — gitignore WIP svg artwork (files/*.svg), commit new preview.png
The new theme preview was added as files/preview.svg (source) +
files/preview.png (export). LimeSurvey's image validator rejects SVG for
theme images anyway, so only the PNG is tracked: .gitignore now ignores
/files/*.svg (generalizes the row-208 logos.svg entry to all WIP artwork).

Also fixed variants/export_public.sh: the staging tar did not exclude
files/*.svg, so the gitignored logos.svg still leaked into the public zip;
added --exclude='./files/*.svg'. Verified: export exit 0 and the new
dist/vanilla_respondage-0.1-public.zip contains files/preview.png and no
.svg files at all.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 11:58:34 +01:00
e9c0ac5c14 feat(options): row 221 — align Questions-tab color columns + move slider handle color into the answers section
Request 1: options.js generalizes the Header-tab column alignment
(alignHeaderColumns, measured padding-top) to the Questions tab via
alignQuestionColumns(): in the 'Question title and body' section columns 2
and 3 are top-aligned with the title text-color chooser in column 1; in
'Answer options and subquestions' column 2 (checkbox color) aligns with the
answers text color; in 'Question help' column 2 (help background) aligns with
the help font color. Runs on run(), on any shown.bs.tab and on resize (hidden
panes measure 0 and no-op).

Request 2: the orphaned full-width 'Slider handle color' picker at the bottom
of the Questions tab becomes a 6-way color chooser (default color2) with a
sliderhandlecolorcustom child, placed in the THIRD column of 'Answer options
and subquestions' (aQSlots answers:2). custom_header.twig resolves it via
cm() (legacy stored hex passes through). variants/build.php maps legacy hex
json values of variants to mode 'other' + custom child; all variants rebuilt
(defensie, erasmus) + example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 10:01:49 +01:00
756c0ec2d1 refactor(css): row 216 — sass is leading for ALL css files, not just plain.css
Previously only css/plain.css was compiled from sass/plain.sass; css/custom.css
and css/fonts.css were hand-written. Now every theme stylesheet has a leading
sass source: sass/plain.sass, sass/custom.sass, sass/fonts.sass (partials _*),
compiled with 'sass --watch sass:css' (dart-sass 1.83.4 added as local
devDependency; node_modules/package.json stay gitignored). css/*.css are build
artifacts and remain the committed runtime files; sass/ stays developer-local.
Recompiled output is semantically identical to the previous hand-written files
(dart-sass normalization only: 2-space indent, double quotes, @charset).
variants/export_public.sh step 0 now checks BOTH directions for every pair:
stale css/<name>.css vs sass/<name>.sass aborts, and a css file without a sass
source aborts; compiler resolved from PATH or node_modules/.bin/sass.
.gitignore/README document the workflow.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 09:11:39 +01:00
611f7f2c34 chore(metadata): row 205 — version 0.1, creationDate/lastUpdate 2026-11-29 (new theme, no name change)
Per owner: this is a complete new theme, so the version restarts at 0.1
and creationDate/lastUpdate are set to today (2026-11-29 17:48). Name
unchanged (vanilla_respondage / 'Vanilla Respondage') per owner decision.
Variants rebuilt (version+creationDate propagate from the mother,
lastUpdate stamped by build.php) + example config synced.
Owner action: reset the theme in LS-admin so lime_templates picks up the
new metadata (version column currently NULL).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 17:50:04 +01:00
b224627cda feat(options): row 204 — place the last Colors-category options on visible tabs; park open prompts; security review filed
- sliderhandlecolor moved to the Questions category (full-width row at
  the end of the Questions pane, after the border section hr);
  privacybackgroundcolor moved to Page background (column 1, under the
  background image switch). The Colors category is gone entirely; the
  options.twig tab loop keeps a Colors exclusion as a safety net.
  Both values are still applied in custom_header.twig (verified live).
  Variants rebuilt + example config synced; jsdom 8/8.
- Prompt V cleanup verified: no respondage_vanilla folder/zip left in
  upload/themes/survey, zero DB references (surveys, template_configuration,
  lime_templates). Remaining resets/flushassets are owner actions.
- Security review (Prompt B) executed, approval-gated: report in
  SECURITY_REVIEW_20261129.md (S1 HIGH raw option values into <style>/
  attributes → stored XSS; S2 MEDIUM raw imagefile option HTML in
  options.twig:98-104; S3-S7 info/safe), core FR filed as
  FEATURE_REQUEST_security_theme_option_raw_output.md. No fixes without
  owner approval.
- Parked prompts moved from prompts.md to OPEN_PROMPTS.md (findable
  index): PL, HB, AN, A, C open; Z/B/V marked done. New local files
  gitignored + export-excluded (OPEN_PROMPTS.md, SECURITY_REVIEW*.md).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 17:46:47 +01:00
95c95dd8f6 fix(options): row 198 — restore 3-column section layouts in the Questions tab; make border radii a real 2x2 subcolumn grid
- aQSlots back to the row 178 plan / row 195 layouts: title = 3 columns
  (col 1 font+font color+size+options+legacy picker, col 2 title bg
  chooser, col 3 body bg chooser), answers = col 1 font+font color,
  col 2 checkbox chooser (column 2 as row 195), help = 3 columns
  (col 1 font+font color, col 2 bg chooser, col 3 text position);
  config.xml order already matched, only the slots changed
- border radii: the col-md-6 wrappers sat directly in the block-level
  col-md-4 column, so width:50% stacked them vertically instead of two
  per row — .questions-col-border-2 is now display:flex + flex-wrap,
  so TL/TR form row 1, the hr its own line, BL/BR (border-start) row 2
- config.xml: refreshed the stale Questions-tab comment to describe the
  section layout; all variants rebuilt + example config synced

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:47:12 +01:00
8370a945d5 feat(options): row 197 — help/border font color choosers, box-only radii, aligned chooser columns, 'Font color for ...' labels
- questionhelpfontcolor + questionbordercolor are now 6-way color choosers
  (+custom children), both default mode 'default' (Default font color);
  resolved via cmm.cm() in custom_header.twig (legacy hex passthrough)
- border radii show only for questionborder=box (per-key show-values in
  options.twig aShowIfValuesByKey); options.js cascades hiding to nested
  conditional wrappers (questionbordercolorcustom); radii stay two
  subcolumns (border-start on TR/BR)
- chooser columns aligned with the font color: title section = one column
  (title-0: font, font color, size/options, legacy picker, title bg, body
  bg), answers-0 += checkbox chooser, help-0 = font + font color + bg
  chooser, help-1 = text position
- all font-color labels follow 'Font color for ...' / 'Custom font color
  for ...' (21 labels renamed, incl. 'Font color for question titles' and
  'Font color for answers and subquestions')
- chooser key lists synced in options.twig/options.js/build.php (+2)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:31:52 +01:00
c2930a938a fix(config): defaults row 196 — checkboxcolor=Color 2, Color 3=#fff3cd, help bg=Color 3
- checkboxcolor default mode other -> color2 (custom #ff005f kept for 'other')
- tertiarycolor (Color 3) default #ffd166 -> #fff3cd
- questionhelpbackgroundcolor default mode other -> color3 (custom #fff3cd
  kept for 'other'; effective help background stays #fff3cd)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:13:06 +01:00
52bd169335 fix(options): Questions tab row-195 corrections — 3-col help section, checkbox chooser in answers col 2, radius subcolumns
- Help section now 3 col-md-4 columns: col 1 = new questionhelpfont fontselect
  + questionhelpfontcolor (plain picker per decision 8), col 2 = help
  background chooser + custom, col 3 = help text position; questionhelpfont
  applied in survey_question_help.twig (falls back to answersfont on base)
- checkboxcolor became a standard 6-way color chooser + checkboxcolorcustom
  (default other + #ff005f, look unchanged) and moved to column 2 of the
  'Answer options and subquestions' section; resolved via cmm.cm() in
  custom_header.twig (legacy hex passthrough); legacy col 3 removed
- Border radii now form two subcolumns: border-start vertical divider on the
  right subcolumn (TR/BR), hr between the two rows kept
- chooser key lists synced in options.twig/options.js/build.php (+checkboxcolor)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:05:39 +01:00
aae3112981 feat(options): new Buttons tab after Questions with per-button color choosers (row 178 plan P6)
- config.xml: new 'Buttons' category directly after Questions — buttonsfont
  (full width) + 12 per-button options (Previous/Next/Submit x background+
  text, 6-way mode dropdown + custom picker, width 4); old global
  buttonstextcolor(+custom) removed (row-178 decision 7)
- options.twig: Buttons pane = h2+intro, full-width font row, one row of three
  col-md-4 columns (Previous/Next/Submit, border-start dividers); 6 new keys
  in aColorChooserKeys; OPTIONS_JS_TOKEN 20261129.4
- options.js + build.php: chooser key lists synced (+6)
- navigator.twig: respondage-btn-prev/-next/-submit classes, old global text
  color inline style removed; custom_header.twig: cmbg() macro (mode 'default'
  = no override) + per-button bg/text rules with decision-7 defaults
  (Next/Submit bg=Color 1 + text #ffffff, Previous bg=#ffffff + default font
  color)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:48:26 +01:00
af3b408768 feat(options): Questions tab 'Question border' section with 3 subcolumns and radius rows (row 178 plan P5)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:26:36 +01:00
101c3135ea feat(config): universal default colors — Color 1 #26547c, Color 2 #ef476f, Color 3 #ffd166
primarycolor/secondarycolor/tertiarycolor defaults in the mother config.xml
(variants keep their own house-style colors via their jsons; variants without
an explicit value inherit these). Variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:20:01 +01:00
ff998489b9 feat(options): Questions tab 'Question help' section; help background becomes a 6-way color chooser (row 178 plan P4)
New section (h3 + first col-md-4 of a 3-column grid, only it used):
questionhelpbackgroundcolor as 6-way chooser (default 'other' + custom
#fff3cd, look unchanged) + questionhelpbackgroundcolorcustom, the plain
help font color picker (stays plain per row-178 decision 8) and the help
text position; keys moved between the answers block and the border options,
legacy col 1 is empty now. questionhelpbackgroundcolor joined
aColorChooserKeys (twig + js, OPTIONS_JS_TOKEN 20261129.3) and the
build.php chooser migration; custom_header.twig resolves it via cm()
(legacy hex passes through). Variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:17:56 +01:00
e061f7c0f3 feat(options): Questions tab 'Answer options and subquestions' section; answerstextcolor becomes a 6-way color chooser (row 178 plan P3)
New section in the Questions pane (h3 + first col-md-4 of a 3-column grid,
only it used): answersfont + answerstextcolor + answerstextcolorcustom,
moved up in config.xml between the title block and the help options,
width 12 -> 4. answerstextcolor upgraded to the chooser scheme
(default|defaultbackgroundcolor|color1|color2|color3|other, default stays
'default'), added to aColorChooserKeys in options.twig/options.js
(OPTIONS_JS_TOKEN 20261129.2) and to the build.php chooser migration.
Views (answers, survey_question_help, valid_message_and_help): 6-way
mapping with legacy primary/secondary + raw hex passthrough.
All 3 variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:08:49 +01:00
1085c5d132 fix(options): 'Overall question' section is a 3-column grid, only the first column used (col-md-4)
Row 183: aQSections 'overall' colClass col-md-6 -> col-md-4; per the row-160
rule the two distance options' config.xml width follows: 6 -> 4.
Variants rebuilt, example config synced. Theme was reset by the owner meanwhile
(new global tc row = 693, survey 282267 = 694).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:02:46 +01:00
14eb1c2a99 feat(options): Questions tab 'Question title and body' section with 6-way color choosers (row 178 plan P2)
config.xml: new section keys questiontitlefont/textcolor(+custom)/fontsize/
fontoptions + legacy fontcolor (col 1), questiontitlebackgroundcolor(+custom)
(col 2), questionbackgroundcolor(+custom) (col 3); old width-12 Prompt-U keys
and plain colorpickers replaced; questiontitlefontweight -> questiontitlefontoptions.
options.twig: title section slots (were prepared in P1), 3 keys join
aColorChooserKeys, OPTIONS_JS_TOKEN 20261129.1. options.js: same 3 keys in its
aColorChooserKeys. Views: choosers resolved via cm() (chooser wins; legacy hex
and primary/secondary modes pass through; legacy picker used when the mode key
is absent); fontoptions mapped to weight/style with legacy fontweight fallback.
build.php: chooser migration list + questiontitle fontweight migration.
All 3 variants rebuilt (defensie legacy hex -> other+custom), example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 14:45:57 +01:00
c4ec304dd0 feat(options): Questions tab starts with 'Overall question' section + 2 distance options (plan P1)
Questions pane now has h2 'Questions' + intro paragraph, then an h3
'Overall question' section rendered as ONE col-md-6 column holding two new
text options — questiondistance ('Distance between two questions') and
questiondistancebottom ('Distance between last question and buttons at
bottom of page'), both default 30px and accepting px or rem — followed by a
full-width hr before the existing 3-column grid. custom_header.twig applies
them as CSS: .question-container margin-bottom and #navigator-container
margin-top, guarded to ^<number>(px|rem)$ with fallback 30px. config.xml:
both keys first in the Questions category, width=6 (row 160 rule). All
variants rebuilt + example config synced. jsdom: new row-179 assertions,
suite 8/8; live survey page emits both rules at 30px.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 14:27:52 +01:00
44cef7d530 refactor(options): 'Default fonts and colors' tab becomes 'Default font and colors' in one three-column row
Tab title and pane heading now 'Default font and colors' (description
unchanged); the pane is a single row with three col-md-4 columns:
col 1 = Default font (body text), Base font size (body text), Default font
color (body text); col 2 = Default background color; col 3 = Color 1
(primary), Color 2, Color 3. The old hr + 'Default colors' section between
the two rows is removed. config.xml mirrors this per the row 160 rule:
category renamed to the tab label, option order within the category = the
pane render order (fontsize moved before fontcolor), all seven options
width=4. Tab id stays 'category-fonts' so stored tab preferences survive.
All variants rebuilt (defensie/erasmus from the private defs,
respondage_respondage from /tmp/example_defs) and the tracked example
config synced from the built theme dir (it was stale from the deferred
rebuilds). options.js untouched, no OPTIONS_JS_TOKEN bump.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 11:56:04 +01:00
956324775b feat(options): Groups tab with intro and two columns; group colors become color choosers; font options Normal|Bold|Italic|Bold italic
Row 157. Groups pane gets a full-width h2 'Groups' + explanatory text and a
two-column slot layout: col 1 = group title options (font, color, custom,
size, font options), col 2 = same for the group description (singular wording).
grouptitletextcolor/groupdescriptiontextcolor switch from the old 4-way
dropdown to the row-135 color chooser (6 modes, default 'Default font color',
swatch chips, grayed-out custom picker unless 'other'); legacy stored modes
primary/secondary and raw hex migrate client-side (options.js) and in the views.
The old *fontweight keys (400|700) become *fontoptions (normal|bold|italic|
bolditalic), mapped to font-weight/font-style in custom_header.twig with a
legacy 400/700 fallback until theme reset. build.php migrates variant jsons
(chooser hex/modes + fontweight keys). OPTIONS_JS_TOKEN 20261127.1.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 02:50:06 +01:00
90a65b3d65 chore(variants): add bodybackgroundcolor to build.php chooser migration (row 149)
Missed in the row-149 commit: the legacy-hex -> mode "other" + <key>custom
migration list now also covers bodybackgroundcolor, matching aColorChooserKeys
in options.js/options.twig.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 21:09:06 +01:00
cfbb4c983b feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
  underneath: "Make this font color the same color as the color of the progress
  bar when you do not want to see the progress in %."

Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
f2ebf24270 feat(options): menu item color as preset dropdown with persistent custom color (working example)
navbarfontcolor (Top of the page tab, column 2) changes from a plain
colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 |
Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but
grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its
value across saves (data-keep-value) so switching back to 'Other' restores the
last picked color. Dropdown option labels show the live hex of each preset and
clickable swatch chips select a preset; an effective-color swatch next to the
picker shows the color actually applied. A legacy stored hex is migrated to
mode 'other' + custom field (options.js) and accepted directly in
custom_header.twig, so nothing is lost before a theme reset. Views map
default->fontcolor, color1/2/3->primary/secondary/tertiarycolor,
other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay
plain colorpickers, default #ffffff. build.php maps a legacy hex
navbarfontcolor in variant jsons to other+custom for when variants are built.
Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration,
gray-out, keep-value on save, chips, swatches), live survey render for all 5
modes, export check exit 0.

NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no
customer is waiting; the on-disk variant folders were left at their
pre-feature state and no variant theme was reset. Run
variants/build.php per variant only after the open prompts are done.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:55:30 +01:00
089ddc5642 feat(options): Default fonts and colors tab with Default font/colors sections (Prompt Y)
- Tab renamed to "Default fonts and colors" with full-width h2+p intro
  ("Default font"), 3-col row font/fontcolor/fontsize, hr, "Default colors"
  h2+p, 3-col row primarycolor ("Color 1 (primary)")/secondarycolor/new
  tertiarycolor ("Color 3", #dddddd)
- headerfont moved to Top of page Header section col 2 above navbarfontcolor;
  progressbarfont to Progress bar first row col 3 (col 2 stays empty)
- headertextcolor(+custom)/progressbartextcolor(+custom) removed from
  config.xml (covered by navbarfontcolor/progressbarfontcolor; views fall
  back to fontcolor via |default)
- 21 per-element font/color/size options moved Fonts -> Questions, rendered
  full width below the 3 question columns
- variants rebuilt (defensie/erasmus/respondage); example variant config
  synced

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 14:23:24 +01:00
9716aac4ee feat(options): Fonts tab becomes 'Fonts and colors' with per-element font+color combos (Prompt U)
Tab 'Fonts' is renamed to 'Fonts and colors' and gets a dedicated layout:
top row (col 1: font, fontcolor, fontsize; col 2: primarycolor +
new secondarycolor; col 3 empty), an hr, then one combo row per element
(header, progressbar, questiontitle, answers, grouptitle,
groupdescription, buttons) with col 1 = existing <el>font fontselect,
col 2 = new <el>textcolor dropdown (default|primary|secondary|other),
col 3 = new <el>textcolorcustom colorpicker, visible only when mode is
'other' (parent show-value via aShowIfValues, server-side initial d-none,
options.js updateVisibilityByParent/updateChild now handle select parents,
multi-value aware; font's self-parent removed from config.xml).
config.xml: fontcolor/primarycolor moved from Colors to Fonts (retitled
'Default font color (body text)' / 'Primary color'), secondarycolor added
(default #888888), 14 per-element color keys added with dropdownoptions.
Views emit the per-element color as inline style (default->fontcolor,
primary->primarycolor, secondary->secondarycolor, other->custom picker).
Colors tab now only holds sliderhandlecolor + privacybackgroundcolor
(final Colors layout = Prompt T, still open).
Variants rebuilt (defensie, erasmus, example respondage_respondage) —
no unknown-key failures; theme reset in LS-admin still owner action.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 11:51:57 +01:00
751954c340 feat(options): logo section as 3 columns (file/margin/per-device) in Top-of-page tab
Prompt M: per logo position (left=brand, center, right) the options page now
shows one column with vertical separators and an <hr> below: file dropdown
with 'No logo' (off) first, top margin as plain number 0-100, and 'Show logo
on' with computer/tablet/mobile checkboxes. New option keys per position:
<pos>logofile, <pos>logotopmargin, <pos>showon{computer,tablet,mobile};
old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, shared
logotopmargin) removed from config.xml. Views map the checkboxes to
Bootstrap display classes per breakpoint and emit per-logo padding-top;
variants/build.php migrates the old json keys to the new ones.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:14:10 +01:00
b74f0e07cf chore(repo): keep limesurvey.md local-only (gitignored + export-excluded)
limesurvey.md in the theme root accumulates local working notes on
LimeSurvey (theme inheritance, custom options page, twig cache, CLI
fixtures, DB tables). Like prompts.md/AGENTS.md it must never be
committed or published: added to .gitignore and to the export tar
excludes. The notes file itself is not tracked.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:58:44 +01:00
d61deb0ab1 feat(variants): public example variant respondage_respondage under variants/example/
Adds variants/example/respondage_respondage/ — the generated output of
variants/build.php (config.xml with name/extends + overridden options,
empty footer override, example logo/preview) as a tracked, public example
of the build result. .gitignore explicitly keeps only the confidential
variants/ parts local (*.json, leak-patterns.txt, tests/); the example is
NOT ignored. export_public.sh skips respondage_respondage when deriving
leak patterns from sibling respondage_* folders (it is the public example,
not a client), so the leak check stays green with the example included.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:52:24 +01:00
60f86ff812 feat(variants): no Respondage theme footer in variants, keep options-page footer
Variants inherit views from the mother via <extends>; the mother's
views/subviews/footer/footer.twig shows a Respondage credit to
respondents, which variants must NOT show. build.php now writes an
empty views/subviews/footer/footer.twig override into every generated
variant (a client-supplied footer.twig in the definitions dir still
wins), so LimeSurvey's view resolver picks the variant's own empty
file. The Respondage footer on the admin options page
(options/options.twig) is separate and is NOT overridden.

Verified via SurveyThemeHelper::getRealThemeFilePath: mother resolves
to its own footer.twig (with credit), respondage_defensie and
respondage_erasmus resolve to their own empty override. Both variants
rebuilt with the private definitions dir. Options page still renders
the respondage-footer in every tab (7x). export leak-check green.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:51:12 +01:00
0a725f516c chore(repo): publish generic variant tooling, keep client data private
Public-repo audit (owner request): the tracked set is now exactly the
runtime files plus the generic variant tooling needed to build variants:
.gitignore no longer ignores variants/ as a whole, only the confidential
parts (*.json client definitions, leak-patterns.txt, tests/); build.php
and export_public.sh are tracked. export_public.sh tar-excludes those
confidential parts, so the public zip contains runtime files +
variants/build.php + variants/export_public.sh and nothing else.
Verified: leak grep on HEAD clean (no client names), export zip listing
matches, leak-check green with sibling-derived patterns, all referenced
assets HTTP 200 (core files like scripts/theme.js resolve via the parent
vanilla theme through <extends>, no 404s).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:47:23 +01:00
cffd3cefa6 feat!: rename theme respondage_vanilla -> vanilla_respondage, variants -> respondage_<client>
Prompt V (prompts.md rows 51-54). Mother theme folder + <name> renamed to
vanilla_respondage (version 3.3.0); client variants renamed to
respondage_defensie / respondage_erasmus (<extends>vanilla_respondage</extends>,
auto-derived by build.php). export_public.sh now derives the release name from
the theme dir and the leak-check glob matches ../respondage_* siblings, so the
public-release leak check keeps working after the rename (sabotage-tested).
All doc/tooling references updated; local-only files stay gitignored.

Also includes the pending uncommitted theme work from this testing week
(custom options page, header logos, sticky-header options, bundled OFL fonts,
per-element font overrides, font-dropdown reordering, jsdom tests) that was
verified locally but not yet pushed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:04:11 +01:00
37f28f08e6 chore: stop tracking sass/ (developer-only sources, not in public repo)
The .sass files are compiled locally to css/plain.css, which IS committed
(LimeSurvey never compiles sass itself). sass/ is now gitignored and removed
from the index; history is purged separately with git filter-repo.
export_public.sh sync-guard now skips gracefully when sass/ is absent.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-22 14:04:02 +01:00
c6b659c90e feat(variants): copy per-client assets (fonts/css/images) automatically in build.php
The definitions dir (private variants repo) now has a standard layout per
client: <client>.json + <client>/files/... + <client>/css/variant.css.
build.php copies <client>/ into the generated theme folder, so a
client-specific font or css is part of the variant by default.
README updated accordingly.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 21:09:02 +01:00
f747404bd3 fix(export): no client names hardcoded in export_public.sh leak check
The leak-check grep pattern no longer contains (obfuscated) client names.
Patterns are now derived at runtime from:
- sibling variant theme folders (../<name>_vanilla, excluding this theme)
- variants/leak-patterns.txt (gitignored; canonical copy in the private
  repo respondage_vanilla_variants)
The export tar also excludes leak-patterns.txt, and the script was verified:
export builds clean, and a planted client string is correctly detected.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 20:41:23 +01:00
0f034e7a63 feat: public release export of the mother theme only
- variants/export_public.sh builds a public folder + zip of ONLY this mother
  theme: excludes .git and variants/*.json (client house-style definitions),
  scans the result for client-identifying strings and aborts on any hit.
  Default output: <limesurvey-root>/dist (not inside upload/themes/survey,
  which is scanned for themes).
- README.md: "Public release" section; client-identifying examples scrubbed
  (generic <client> placeholders, no client names/colors); note that client
  definitions live in a private repo (gitignored here).
- .gitignore keeps variants/*.json (and the internal variants README) out of
  this public repository.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
cbf7041243 feat(variants): thin client themes on one shared code base
Architecture: a client theme extends this mother theme via <extends> and
contains only a generated config.xml + its own files/ (logos). LimeSurvey
inherits all views/css/js/images from the mother, so changes here apply to
every variant immediately.

- variants/<client>.json holds ONLY the house-style values (colors, fonts,
  font sizes/weights/colors, logo files, logotopmargin, custom fonts).
- variants/build.php generates ../<client>/config.xml from the mother
  config.xml + the json: only those values are replaced, <extends> is set,
  <engine> is emptied except <optionspage>. Unknown option keys fail the
  build loudly, so drift is caught at build time.
- Client definitions (variants/<client>.json) are gitignored (see .gitignore)
  and live in a PRIVATE variants repo or locally; build.php reads them from
  there via its 2nd argument or RESPONDAGE_VARIANTS_DIR.
- README.md: "Client variants" workflow.

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