Commit graph vanilla_respondage/config.xml
Author SHA1 Message Date
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
dc2f09e73c fix(options): Page background tab in two col-md-6 columns; option wrappers full column width
Row 163/164: the Page background pane used three col-md-4 columns with an
empty third, and its option wrappers rendered col-12 col-md-<width> inside
the slot columns (bImagesPane was missing from the wrapClass condition), so
each option only used the left part of its column. Now two col-md-6 columns
under the full-width h2/p intro, wrappers plain col-12; config.xml widths
of the 6 Page background options 4 -> 6 (width = pane column width).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:40:45 +01:00
d05b5ce226 refactor(options): rename the 'Top of the page' tab to 'Header'
Row 161. Tab label and config.xml category both become 'Header' (standing
rule row 160: category = tab label), so the core options renderer also
shows a 'Header' tab. The tab id stays 'top-of-page' so stored tab
preferences and the options.js #top-of-page hook keep working.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:17:57 +01:00
cafa8fe116 refactor(config): order and width of options now mirror the options.twig layout
Row 160 (standing rule): config.xml stays analogue to options.twig —
categories in the tab-row order, options within a category in the exact
render order of the pane (aTopOfPageKeys/aImagesPaneKeys/aGroupKeys), and
width = the pane column width (Groups 6, three-column panes 4, fonts
colors row 3, full-width rows 12), so the core options renderer
(optionspage=core) lays out the same structure. No option values changed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:15:30 +01:00
cbcf3c75bd refactor(options): config.xml categories now equal the options.twig tab labels
Row 159. When the options page falls back to the core renderer
(optionspage=core), options are grouped by their config.xml category — so
each category must be the tab it lives in under the custom options.twig:
group keys -> 'Groups', top-of-page keys (logos, header/navbar/progress
colors, progress position, sticky, height) -> 'Top of the page',
background keys -> 'Page background', font/color keys -> 'Default fonts and
colors', the former 'Simple options' -> 'Other options'. Tab ids are kept,
so stored tab preferences stay valid. 'Colors' remains for
sliderhandlecolor/privacybackgroundcolor (no custom tab yet, Prompt T).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:07:30 +01:00
71396c3cb9 fix(options): rename 'Font for group titles' to singular 'Font for group title'
Row 158: matches the singular wording of column 2 ('Font for group
description') in the Groups tab.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 02:53:07 +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
7bf5437596 feat(options): rebuild Page background tab layout; overall background color becomes a color chooser
Page background tab (config.xml "Images" category), new layout:
- full-width h2 "Page background (behind the body of the page)" + intro text
  "Set the page background here. Either just a solid color or an image."
- three columns: col 1 = Overall background color + custom picker, an in-column
  hr, then Background image on/off; col 2 = background image file / fixed-or-scroll /
  display, hidden as a whole column when the image is off (the column itself carries
  option-visibility on backgroundimage); col 3 empty
- full-width hr, then the image upload facility full width with the same
  scope-dependent help text as in the Top of the page tab

bodybackgroundcolor is now a color-chooser dropdown (modes default|
defaultbackgroundcolor|color1|color2|color3|other) with a bodybackgroundcolorcustom
child; its default is "Default background color". Added to aColorChooserKeys in
options.twig/options.js and to the legacy-hex migration in variants/build.php;
custom_header.twig resolves the mode via the cm() macro (raw hex still passes through).
OPTIONS_JS_TOKEN -> 20261126.19.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 20:57:07 +01:00
c6bc8f1451 fix(options): shorten custom color picker labels to "(for 'Other ...')"
All five *custom colorpicker child option titles in config.xml changed from
"(used when 'Other ...' is chosen)" to "(for 'Other ...')".

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 20:30:10 +01:00
94a203a133 fix(options): render newline in button optionlabels as <br> (Base font size "XLarge / (20 px)")
The fontsize option label "XLarge&#10;(20 px)" in config.xml survived XML
parsing as a real newline, but gT() html-escapes LF to &#10; (HTMLEscape),
so splitting the gT()'d label on "\n" was a no-op and the entity printed
literally. Split the raw label first, then gT() each part separately.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 20:21:33 +01:00
cd62f2f752 feat(options): rename navbarfontcolor to "Text color in header"; re-measure header alignment on tab show
Row 142, two changes:
1. The navbarfontcolor option is renamed "Menu item color in header" ->
   "Text color in header" (child: "Custom text color in header ..."). Labels
   are read live from config.xml, no reset needed.
2. The header background color column alignment (row 136) is now re-measured
   when the Top-of-page tab is shown (shown.bs.tab) and on window resize, and
   after the stored-tab restore (row 133) when that tab is Top-of-page. Reason:
   at page load the Top-of-page pane is usually hidden (display:none), where
   getBoundingClientRect returns 0 — so the one-shot measurement in run()
   computed a 0 offset and the background column was never lowered on the real
   page. OPTIONS_JS_TOKEN -> 20261126.17. Verified: render tc=663 (new label,
   old label gone, options.js?v=20261126.17), jsdom 7/7 incl. new pins (padding
   re-applied on shown.bs.tab, label renamed), export exit 0. Variants not
   rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 20:04:33 +01:00
1d0161374b feat(theme): default logos left/center/right + 30px top margin + 90px header bar
Row 138: default look of the mother theme:
- brandlogofile default -> ./files/logo-left.png (left)
- centerlogofile default -> ./files/logo.png (center, was "off")
- rightlogofile default -> ./files/logo-right.png (right, was "off")
  so all three logos are visible by default
- brand/center/rightlogotopmargin defaults 15 -> 30 (px added in the view)
- new option headerheight (Top of the page tab, col 3 next to the sticky
  checkboxes, default 90) applied in custom_header.twig as min-height on
  #survey-nav (min-height so taller logos can still grow the bar; the sticky
  body padding in scripts/custom.js follows the real nav height)
- sticky defaults were already computer on / tablet on / mobile off (unchanged)

Core normalizes ./files/x on theme reset to image::theme::files/x, so the
config defaults keep the ./files/ style like the existing one. The PNG files
logo-left.png / logo-right.png remain the owner's untracked files (Prompt PL).
Verified: options render tc=633 (headerheight field present, logo dropdowns
list all three files, divs balanced); live survey 282267 with the defaults
applied to the DB row: three logo imgs (logo-left/logo/logo-right),
padding-top 30px on all logo imgs, min-height 90px on #survey-nav, fixed-top
media queries only for computer+tablet (mobile non-sticky) — DB row restored
afterwards; jsdom 7/7; export exit 0. Theme reset needed for the new defaults
to land in the DB. Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:41:12 +01:00
8f46af54d6 fix(options): rename "Extra large (20 px)" button label to "XLarge (20 px)"
Row 137: the Base font size option (column 3 of the top row of the
"Default fonts and colors" tab) had the button label "Extra large (20 px)";
renamed to "XLarge (20 px)" in config.xml optionlabels. Labels are read live
from config.xml on the options page, so no theme reset is needed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:27:43 +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
57c7009ec2 fix(options): mark the default color choice with [ ] in the dropdown, not bold
Row 134: bolding <option> text is not rendered by every browser (native
dropdown popups ignore it), so the default entry of a color-chooser dropdown
is now enclosed in square brackets instead — e.g. "[Default font color]
[#444444]". The brackets live in config.xml on the <option data-default="1">
(navbarfontcolor + the five <el>textcolor dropdowns), so they show even before
JS runs; options.js strips and re-adds them idempotently while appending the
live hexcode. Removed from the dropdown list: the <b> wrap (row 129), the
inline font-weight (row 132), the CSS option[data-default] rule and the
:has() closed-select rule. The bold REMAINS only on the swatch label below the
swatch (.color-chip-label.is-default), where it renders reliably.
OPTIONS_JS_TOKEN -> 20261126.13. Verified: render tc=618 (raw option
"[Default font color]", served options.js?v=20261126.13), jsdom 6/6 incl.
pins (label "[Default font color] [#444444]", no <b>/inline bold/stale CSS
rules, non-default not bracketed, swatch label still bold), export exit 0.
Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 18:51:41 +01:00
1a60918630 feat(options): color-chooser option texts with live hexcodes, default bold
Row 131: the navbarfontcolor dropdown entries now read exactly "Default font
color", "Default background color", "Color 1", "Color 2", "Color 3",
"Other ..." (config.xml options/optionlabels/dropdownoptions renamed from
"Same as default font color" / "Other…"). options.js appends each entry's
chosen hexcode in brackets — presets from their color option fields,
"Other ..." from the custom picker's value (navbarfontcolorcustom) — and the
entry marked data-default="1" stays bold via a real <b> (row 129) plus CSS.
Rendered list example: bold "Default font color [#444444]", "Default
background color [#ffffff]", "Color 1 [#5e1c64]", ..., "Other ... [#444444]".
OPTIONS_JS_TOKEN -> 20261126.10. Verified: render tc=603 (raw option texts
match the list), jsdom 6/6 incl. new pins (exact label texts, hex on
"Other ..." and "Default background color" entries, <b> only on default),
export exit 0. Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 16:49:35 +01:00
6300beaa88 feat(options): show the default choice of a color-chooser in bold (data-default marker)
The 5 named color choices were already in the requested order (row 125):
Default font color | Default background color | Color 1 | Color 2 | Color 3
('Other…' stays as the 6th dropdown entry that opens the custom picker).

New: the option's default choice is now visually marked. config.xml marks
the default <option data-default="1"> of every color-chooser dropdown
(navbarfontcolor + the five <el>textcolor dropdowns); options.twig's inline
<style> renders those options bold (select option[data-default="1"]) and
options.js adds .is-default (bold) to the matching swatch label, reading the
default from the DOM so any future chooser gets it automatically. For
navbarfontcolor the default is 'default' = 'Same as default font color'.
OPTIONS_JS_TOKEN -> 20261126.8. Verified: render tc=588 (dropdown order
default,defaultbackgroundcolor,color1,color2,color3,other with
data-default on 'default'; served as options.js?v=20261126.8), jsdom 6/6
incl. 4 new row-126 pins, export_public.sh exit 0. No view changes, live
survey unaffected. Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 15:50:28 +01:00
2f08e86335 feat(options): Default background color as 2nd choice; label 'Menu item color in header'; per-option default
- navbarfontcolor dropdown reordered to default|defaultbackgroundcolor|
  color1|color2|color3|other (options attr, optionlabels, dropdownoptions),
  and the swatch chips follow the same order (presets map key order in
  options.js) — 'Default background color' is now the second choice.
- Label of navbarfontcolor changed to 'Menu item color in header' (child
  navbarfontcolorcustom -> 'Custom menu item color ...').
- Per-option default mechanism made explicit: the config.xml <default> of a
  color-chooser dropdown is that option's default choice (stored on theme
  reset); navbarfontcolor keeps default 'default' = 'Same as default font
  color'. The JS no-value fallback no longer hardcodes 'default' but falls
  back to data-inheritvalue / the first non-inherit dropdown entry, so a
  future chooser (e.g. questiontitlebackgroundcolor defaulting to color1)
  can set its own default. custom_header.twig mapping unchanged.
- OPTIONS_JS_TOKEN -> 20261126.7. Verified: render tc=573 (dropdown order
  default,defaultbackgroundcolor,color1,color2,color3,other; label; divs
  balanced; served as options.js?v=20261126.7), jsdom 6/6 incl. new pins
  (dropdown order + chip order, Default background color 2nd), live survey
  282267 with stored mode 'default' renders navbar menu color = fontcolor
  #444444, export_public.sh exit 0. Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 15:13:45 +01:00
12ec2820da feat(options): 'Default background color' as 4th column of the colors row + 5th swatch preset
New colorpicker option defaultbackgroundcolor (category Fonts, default
#ffffff), rendered as column 1 of the second row of the 'Default fonts and
colors' tab — that colors row is now 4 columns (col-md-3 each; the top row
stays 3 x col-md-4). The experimental color chooser (navbarfontcolor dropdown
+ swatch chips) gains this color as a 5th preset: dropdown option
'defaultbackgroundcolor', 5 swatch chips with live hex labels, presets map in
options.js extended, and custom_header.twig maps the mode to the option value.
OPTIONS_JS_TOKEN -> 20261126.6. Verified: render tc=558 (colors row =
defaultbackgroundcolor|primarycolor|secondarycolor|tertiarycolor in 4 col-md-3,
top row unchanged, divs balanced, dropdown has 6 options), jsdom suite 6/6
(5 chips pinned), live survey 282267 with mode defaultbackgroundcolor ->
#aabbcc (DB row restored), export 0. Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:57:25 +01:00
665939dcd9 fix(options): drop '(should contrast with…)' from the navbarfontcolor label
Owner request (row 120): the parenthetical in the option title is noise now that
the dropdown offers presets + Other. Title is now simply 'Menu item text color
in the top bar'. Titles are read live from config.xml for the options page, so
no theme reset is needed. Variants not rebuilt (deferred, row 116).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:20:59 +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
857762df96 feat(manifest): rename theme title to Vanilla Respondage + short description
Metadata only: <title>Respondage Vanilla</title> -> <title>Vanilla
Respondage</title> and a shorter <description>. The theme list shows
lime_templates.title/description, which are re-imported from this file
only on theme reset.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 19:36:32 +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
671fba4aff feat(options): Questions tab as 3 columns with conditional border options + new questionhelpfontcolor (Prompt R)
config.xml: Questions options reordered into the three pane columns
(col1 colors+help, col2 border + children, col3 checkbox color), all
width=12; new colorpicker questionhelpfontcolor (default #444444);
questionbordercolor/style/dropdown + 4 radii get parent="questionborder".
options.twig: Questions pane renders three col-md-4 columns (border-start
between), options stacked as col-12; aShowIfValues map carries the
multi-value show list (box|top) as data-show-if-value since core passes
only parent through; server-side initial d-none is multi-value aware
(Prompt Q logic extended); buttons/colorpicker children now also get
data-parent/selector_radio_childfield. options.js: updateVisibilityByParent
and updateChild are multi-value + checked-radio aware (single-value
behaviour unchanged); OPTIONS_JS_TOKEN bumped.
custom_header.twig: .question-help-container gets color from
questionhelpfontcolor.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 11:35:18 +01:00
7e58142d35 feat(options): Images tab stacks all options in column 1 of a three-column grid (Prompt P)
options.twig: the Images pane wraps its option row in a single
col-md-4 (columns 2-3 stay empty, like the Prompt M logo block but
single-column); the upload block below stays full width.
config.xml: the five background options are width=12 (consistent with
Prompt O), so each wrapper is full width of that column and the options
stack vertically. Prompt Q conditional visibility keeps working inside
the column.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 08:49:08 +01:00
365b60a9b4 feat(options): Images tab conditional background-image options with server-side initial visibility (Prompt Q)
config.xml: Images background block reordered to backgroundimage,
bodybackgroundcolor, then the three image-detail children
(backgroundimagefixed/display/file, all parent="backgroundimage") —
the color stays directly below the Yes/No choice, the details only
matter when an image is shown.

options.twig: the .option-visibility wrapper now gets a server-side
d-none at render time when the parent buttons group's current value is
not the show-value, so the initial state matches the stored value even
before/without options.js; options.js updateVisibilityByParent() keeps
toggling on change (idempotent, verified by jsdom test).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 08:46:34 +01:00
2039cbcd48 feat(options): Simple options tab stacks its five options in one column (Prompt O)
All five 'Simple options' (hideprivacyinfo, container, showpopups,
showclearall, fixnumauto) get width=12 in config.xml, so each renders as
a full-width row in the Simple options tab, label above the control
(Prompt G), in config.xml order. Category, values and defaults unchanged.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:27:21 +01:00
c182259b7c feat(options): progress bar block as one column below the logo hr (Prompt N)
In the Top-of-page tab the four progress-bar keys (position + 3 colors)
render as a single col-md-4 column directly under the logo <hr>, with an
empty col-md-8 next to it; inside the column the options stack as col-12.
config.xml: progressbarposition choice order swapped to in|under so
'In header' is listed first (default value unchanged: under).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:23:59 +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
b44d120d7d feat(options): sticky header as label + 3 standalone checkboxes (Prompt L)
config.xml: the three headersticky* checkboxes lose parent="headersticky"
and get width=12 (stacked as a vertical list); the master key headersticky
stays in config.xml/DB for backward compatibility but is rendered as a
static label only (special case in options.twig — no input). Views:
custom_header.twig emits the per-breakpoint fixed-top media queries based
on the three checkboxes alone (master gate dropped; defaults on/on/off
when undefined); nav_bar.twig fallback now keys off headerstickycomputer
being defined. Migration note: an old row with headersticky=off no longer
disables sticky — only the checkboxes govern it.

Verified: CLI render row 270 — top-of-page pane shows the label + 3
checkboxes (col-md-12, no parent, checked on/on/off, no option-visibility);
survey 282267 renders media queries for computer+tablet but not mobile and
no hardcoded fixed-top; jsdom toggle/serialize + radio idempotency PASS;
run_all PASS; export green. Variants NOT rebuilt yet (config.xml batch —
rebuild+reset once after Prompt U per standing rule).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:03:57 +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
24c443b6c2 chore: version 3.1.0, declare compatibility with LimeSurvey 6 and 7
- version 3.0.1 -> 3.1.0, lastUpdate refreshed.
- <compatibility> now lists 6.0 and 7.0 (same as the core vanilla theme), so
  the theme is accepted on both LS 6 and LS 7.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
8537053224 docs: document conventions in config.xml (HOUSE-STYLE markers, LF line endings)
- HOUSE-STYLE convention block above <options> and per-section markers
  (Images/Questions/Colors/Fonts) make clear which options are house-style
  specific and belong in variants/<client>.json only - never hardcoded in
  shared views/sass/css/js files.
- Header comment documents the LF-only line-ending rule (enforced by
  .gitattributes).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
07ffe2255d feat(variants): custom fonts per client variant
- config.xml: "Custom (this theme)" optgroup in the font dropdown plus an
  instruction comment on how to place a custom font (@font-face + body class
  in the variant's own css).
- variants/build.php: supports "fontOptions" (dropdown entries) and "files_add"
  (extra css/js of the variant) in the variant json.
- README.md: "Custom fonts per variant" section.

data-font-package stays "websafe" because LimeSurvey only knows core font
packages; the real font is loaded via the variant's css.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
0f462a38be feat(options): logo top margin (logotopmargin)
- config.xml: new duration option "logotopmargin" in the Images category (default 15px).
- custom_header.twig: sets padding-top of the header logos, so 0px aligns a logo
  exactly with the top of the screen.

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