Commit graph

46 commits

Author SHA1 Message Date
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
7939f3de3f fix(options): isolate startup steps so a throwing step can never kill saving again
Hardening against the 2026-11-25 regression (unguarded JSON.parse of
#optionCssFiles="inherit" at global level killed the whole options.js:
no handlers bound, Save silently posted stale JSON). run() now executes
each startup step through safeStep() (try/catch + console.ls.error) and
ALWAYS calls bind(), so the save/change handlers exist even if a prepare
step fails. OPTIONS_JS_TOKEN bumped to 20261125.5.

Regression guard added in variants/tests/options_save_global.test.js
(local-only, gitignored): loads the page with optionCssFiles="inherit"
(the global-page condition) and asserts the save button has a click
handler, pickers have input+change handlers, a swatch color change
reaches the saved options JSON on Save, and the label layout (checkbox
box before label; d-block label above btn-groups). Verified the test
FAILS on the pre-fix options.js and PASSES on the fixed one; full suite
5/5.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 21:28:43 +01:00
44e0e871d4 fix(options): guard JSON.parse of optionCssFiles so the options page works at global level
On the GLOBAL theme options page the hidden #optionCssFiles holds the
literal string "inherit" (not JSON). options.js did an unguarded
JSON.parse($('#optionCssFiles').val()) in the ThemeOptions constructor,
which threw and meant run() never executed: no change handlers and no
save handler were bound, so Save posted the stale options JSON and
nothing changed in the UI (e.g. colors on the Default fonts and colors
tab) was saved. Fall back to an empty file list on parse failure.
OPTIONS_JS_TOKEN bumped to 20261125.4.

Verified against the live page (themeOptions/update&id=497, where
optionCssFiles="inherit"): constructor no longer throws, picker
input/change handlers bind, and the save click writes the new color
into TemplateConfiguration[options]; real HTTP POST confirmed the
value lands in lime_template_configuration.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 21:25:25 +01:00
588199086a fix(options): checkbox box before label, labels above controls, live color-swatch sync
- checkboxes (incl. the 9 logo show-on boxes): back to classic .form-check
  with the input BEFORE the label (label right of the box); label keeps id
  lbl_simple_edit_options_<key> so JS/test anchors are unchanged
- all other option types: label gets d-block so it sits above the control
  even next to an inline-flex btn-group (Simple options / Questions tabs)
- options.js: color swatch syncs on 'input' as well as 'change', so a color
  picked in the native popup is already in the saved JSON when Save is
  clicked (browsers fire 'change' only when the popup closes);
  OPTIONS_JS_TOKEN bumped to 20261125.3

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 21:05:01 +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
eed9f7e34c feat(options): remove the Colors tab from the options page
The Colors category tab is no longer rendered. Its only remaining options
(sliderhandlecolor, privacybackgroundcolor; the other Colors keys already
live in Top of the page) stay defined in config.xml and keep their stored
values, but are not rendered until they are placed on another tab.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 19:27:37 +01:00
1ddfb4c7b4 feat(options): label above the upload control on the Images tab
The label-rendering change is in the shared generic loop, so the Images
and Questions tabs were already covered; the only remaining label beside
its control was the upload row on Images (label in a left column next to
the button). It now renders as a full-width form-label above the Upload
button.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 19:25:34 +01:00
858359ac71 feat(options): label above the control for every option, incl. checkboxes
On the custom options page (Simple options) the label now always renders
above the control. The checkbox exception (label right of the box via
form-check/form-check-label, incl. the 9 logo device checkboxes) is
removed; the generic form-label keeps the same id
(lbl_simple_edit_options_<key>) so JS/tests anchors are unchanged.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 19:21:35 +01:00
7f0685534c chore(options): remove internal prompt references from options.twig comments
Delete the standalone {# Prompt X ... #} comment blocks (not meant for
normal users) and strip the prompt tags from the few comments that also
carry functional documentation (slot layout, HOIST TABS, parent
visibility, label placement, tab skipping). No markup change: rendered
options page is structurally identical (whitespace-only diff).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 18:22:36 +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
cf2acebc1a feat(options): Top-of-page tab in sections — Header (3 cols) | Logos | Progress bar (Prompt X)
The Top-of-page pane is now structured in sections with translatable
h2+p intros (gT): 'Header' (full width), then a 3-column row
(col 1 header background color, col 2 menu item text color, col 3
'Make header sticky' + 3 checkboxes), a full-width hr; 'Logos' intro +
the existing 3-column logo block + its hr; 'Progress bar' intro,
position in column 1 (cols 2-3 empty), then a new row with the three
progress bar colors, one per column, in the existing order.
Implemented via the slot mechanism (fSlot/fLastSlot) shared with the
Fonts pane; the old Prompt N single-column progress block is replaced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 13:34:40 +01:00
fb560bef62 feat(options): checkbox labels right of the box + explanatory h2/p header on Top-of-page tab (Prompt W)
Label-above stays the rule for every option type, with one exception:
checkboxes now render their label to the RIGHT of the box (classic
.form-check, label after the input, same lbl_ id so JS/tests keep
anchoring). Applies to the generic checkbox branch (headersticky*)
and the logo-block showon* checkboxes.

New experiment for explanatory text on the options pages: the
'Top of the page' pane starts with <h2>Header</h2> and a <p> explaining
what the header is, both wrapped in gT() so they are translatable.
(Owner's source typos fixed: distinguishable, you can choose.)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 13:06:22 +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
cea02487c7 fix(views): legacy guard for pre-Prompt-M DB rows without theme reset
A DB row from before Prompt M still carries the old on/off keys
(brandlogo/centerlogo/rightlogo). When the theme files are updated WITHOUT
a theme reset, such a row (e.g. centerlogo=off with a non-empty old
centerlogofile) would show that logo under the new file-only logic. The
views now also honor the legacy key when present: <pos>logo == 'off' keeps
the logo hidden (|default('on') after a reset, where the key is gone).
Fresh installs are unaffected: all new keys have config.xml defaults and
the views fall back via |default when keys are absent.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:23:59 +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
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
53b1786949 fix(options): skip empty category tabs (Prompt S)
When building the tab list, resolve each category's option keys first
(after excluding the top-of-page keys and ajaxmode) and only add the tab
when at least one option remains. The "Progress" category's only option
(progressbarposition) lives in the Top-of-page tab, so the empty
Progress tab and pane are no longer rendered. Generic: any future
emptied category disappears too. No config.xml change, no variant
rebuild, no theme reset. Verified via CLI render (row 270): no
category-progress tab/pane, 6 tabs remain, all 63 option wrappers
present, progressbarposition + the 3 progressbar colors render exactly
once, in the top-of-page pane.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:57:43 +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
8513ec17f5 fix(options): hoist category tabs to the top-level tab bar (Prompt D)
With optionspage=custom, core renders the custom options page inside a
single outer "Simple options" tab (#simple). A new inline script
(respondage-hoist-tabs, POS_END) moves our tab buttons into the outer
ul#theme-options-tabs, our panes into the outer .tab-content and the
spinner/inherit row above the tab bar, then drops the #simple wrapper and
the outer "Simple options" li; the first tab (Fonts) becomes the active
top-level tab and the debug "Advanced options" tab stays last.
Bootstrap 5 tabs use delegated click handlers, so moved buttons keep
working. No core changes, no config.xml change, no OPTIONS_JS_TOKEN bump
(options.js untouched). Verified via jsdom full-page fixture (global +
survey/inherit): flat tab bar, panes in outer tab-content, tab clicking
works, 63 option wrappers intact, radio groups still idempotent.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:40:52 +01:00
daf3d93bb3 fix(options): no loading-spinner flash on options-page load (Prompt I)
Remove the show/hide around the init prepare() call in options.js; the
spinner keeps its display:none default and is only shown during a real
upload (onBeforeSend/onSuccess in BindUpload). Bump OPTIONS_JS_TOKEN to
20261124.4 so browsers fetch the changed options.js once.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:33:11 +01:00
2d3715da4c fix(options): option label always above the control, incl. checkboxes (Prompt G)
The generic form-label is now rendered for every option type; the
checkbox branch no longer emits an inline form-check-label (only the
form-check wrapper around the input remains). Classes/id/name/for and
data-parent wiring are unchanged, so options.js keeps working.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:32: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
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
d9d2d902c6 Docs: variant requires the mother theme respondage_vanilla in upload/themes/survey/
A <client>_vanilla theme extends respondage_vanilla via <extends>, so both
folders must be deployed; core vanilla ships with LimeSurvey itself.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 21:33:09 +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
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
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
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
8b200ce47b feat(options): menu item text color in the top bar (navbarfontcolor)
- config.xml: new colorpicker "navbarfontcolor" in the Colors category.
- custom_header.twig: applies it to #survey-nav menu links (normal + hover/focus,
  hover at 0.75 opacity), replacing the old bootstrap3 .navbar-default hover rule.
  Pick a color that contrasts with headerbackgroundcolor.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
4799ddf5a5 feat(header): left, center and right logos in the header navbar
- config.xml: brandlogo/brandlogofile = left logo; new centerlogo/centerlogofile
  and rightlogo/rightlogofile options; old secondlogo/secondlogofile removed.
- nav_bar.twig renders the three positions: left in flow, center absolutely
  centered, right flush right (ms-auto on the logo, menu keeps ms-auto when no
  right logo). Logos render only when the file resolves (imageSrc guard).
- sass/plain.sass: flex/relative container + absolute centering for .logo-center.
- options/options.twig: removed dead secondlogo variables.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:51:19 +01:00
fd7ecba1a3 chore: normalize all line endings to LF and enforce via .gitattributes
All text files in the theme (config.xml, sass, css, js, twig, md) used mixed
CRLF/LF. Normalize everything to LF (Unix), matching the LimeSurvey core
themes. .gitattributes (* text=auto eol=lf, binary images/fonts) keeps it
that way; config.xml documents the convention in its header comment.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:36:04 +01:00
a023555acf First commit after long time, too much to describe (sorry) 2026-07-07 16:05:43 +02:00
185832730b Add description for LimeSurvey version 6 theme 2026-06-17 10:12:27 +02:00
e3be1bcde7 First commit 2026-06-17 10:06:07 +02:00