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>
This commit is contained in:
parent
931d61b13d
commit
b224627cda
5 changed files with 40 additions and 18 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -45,6 +45,11 @@ FEATURE_REQUEST*.md
|
|||
# internal too: never commit them to the public repo.
|
||||
BUG_REPORT*.md
|
||||
|
||||
# Parked-prompt index (moved out of prompts.md so it stays findable) and
|
||||
# security-review reports are internal too: never commit, never publish.
|
||||
OPEN_PROMPTS.md
|
||||
SECURITY_REVIEW*.md
|
||||
|
||||
# Working agreements for the agent (AGENTS.md) are internal too: never commit.
|
||||
AGENTS.md
|
||||
|
||||
|
|
|
|||
18
config.xml
18
config.xml
|
|
@ -212,8 +212,8 @@
|
|||
</dropdownoptions></navbarfontcolor>
|
||||
<navbarfontcolorcustom type="colorpicker" category="Header" width="4" title="Custom font color for the header menu (for 'Other ...')" parent="navbarfontcolor">#444444</navbarfontcolorcustom>
|
||||
<!-- Color choosers of the Header tab (rows 115/135/149): HOUSE-STYLE colors, set per
|
||||
variant via variants/<client>.json. sliderhandlecolor + privacybackgroundcolor remain in
|
||||
the Colors category (no custom tab yet — Prompt T). -->
|
||||
variant via variants/<client>.json. (The former Colors-category options moved to
|
||||
Page background / Questions in row 204.) -->
|
||||
|
||||
<!-- Backgrounds of navbar/page stay plain colorpickers (owner decision
|
||||
2026-11-26, row 115): they are mostly NOT one of the default colors,
|
||||
|
|
@ -360,6 +360,10 @@
|
|||
<backgroundimagefile type="imagefile" category="Page background" width="6" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
||||
<backgroundimagefixed type="buttons" category="Page background" width="6" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
|
||||
<backgroundimagedisplay type="buttons" category="Page background" width="6" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
|
||||
<!-- row 204: the privacy block background moved here from the removed Colors
|
||||
category — it renders in column 1 of the Page background pane, below the
|
||||
background image on/off switch (applied in custom_header.twig on .privacy) -->
|
||||
<privacybackgroundcolor type="colorpicker" category="Page background" width="6" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||
|
||||
<!-- Groups tab (options.twig tab 4, aGroupKeys order): col 1 = group title, col 2 = group description (width 6 = the two col-md-6 columns). -->
|
||||
<!-- Row 157/159: the group options carry category "Groups" (row 159: the
|
||||
|
|
@ -552,6 +556,10 @@
|
|||
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||
<!-- row 204: the slider handle color moved here from the removed Colors
|
||||
category — sliders appear inside questions, so it renders as a full-width
|
||||
row at the end of the Questions pane (applied in custom_header.twig) -->
|
||||
<sliderhandlecolor type="colorpicker" category="Questions" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
<!-- Questions
|
||||
HOUSE-STYLE: the colorpicker options in this section (question
|
||||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
|
|
@ -656,9 +664,9 @@
|
|||
</dropdownoptions></submitbuttontextcolor>
|
||||
<submitbuttontextcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom font color for the Submit button (for 'Other ...')" parent="submitbuttontextcolor">#ffffff</submitbuttontextcolorcustom>
|
||||
|
||||
<!-- Colors: no tab in the custom options page yet (Prompt T) — these two stay in core mode only. -->
|
||||
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||
<!-- row 204: the Colors category is gone — its last two options moved to
|
||||
Page background (privacybackgroundcolor) and Questions (sliderhandlecolor),
|
||||
so every remaining category is a visible tab again. -->
|
||||
|
||||
<!-- Other options tab (options.twig LAST tab): width 12 = full-width rows. -->
|
||||
<!-- Prompt O: the five "Other options" are width=12, so they stack in ONE
|
||||
|
|
|
|||
|
|
@ -435,7 +435,9 @@
|
|||
TWO columns (col-md-6 each) under the full-width intro — col 1 = overall background
|
||||
color (chooser + custom) + in-column hr + background image on/off; col 2 = the three
|
||||
image-detail options + the upload facility #}
|
||||
{% set aImagesPaneKeys = ['bodybackgroundcolor', 'bodybackgroundcolorcustom', 'backgroundimage', 'backgroundimagefile', 'backgroundimagefixed', 'backgroundimagedisplay'] %}
|
||||
{# row 204: privacybackgroundcolor (moved from the removed Colors category) joins
|
||||
column 1, right after the background image on/off switch #}
|
||||
{% set aImagesPaneKeys = ['bodybackgroundcolor', 'bodybackgroundcolorcustom', 'backgroundimage', 'privacybackgroundcolor', 'backgroundimagefile', 'backgroundimagefixed', 'backgroundimagedisplay'] %}
|
||||
{% if aImagesKeys is not empty %}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'category-images', 'label': 'Page background', 'category': 'Page background', 'keys': aImagesPaneKeys }]) %}
|
||||
{% endif %}
|
||||
|
|
@ -445,10 +447,9 @@
|
|||
{% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %}
|
||||
{% for category in aOptionAttributes.categories %}
|
||||
{% if category != 'Default font and colors' and category != 'Header' and category != 'Colors' and category != 'Page background' and category != 'Groups' and category != 'Other options' %}
|
||||
{# The "Colors" tab is removed on purpose. Its only remaining options are
|
||||
sliderhandlecolor and privacybackgroundcolor (the other Colors keys carry
|
||||
category "Header" now) — TODO: place these two
|
||||
options on another tab. #}
|
||||
{# The "Colors" category no longer exists (row 204: its last two options
|
||||
moved to Page background and Questions) — the exclusion stays as a
|
||||
safety net so a re-introduced "Colors" category never renders as a tab. #}
|
||||
{# Resolve this category's keys once and skip the tab entirely when none
|
||||
remain: e.g. "Progress" — its only option (progressbarposition)
|
||||
moved to the Top-of-page tab, so an empty tab must not be rendered. #}
|
||||
|
|
@ -623,7 +624,7 @@
|
|||
{# row 149: Page background pane — col 1 = overall background color
|
||||
(chooser + custom child) + background image on/off; col 2 = the
|
||||
three image-detail options #}
|
||||
{% if key in ['bodybackgroundcolor', 'bodybackgroundcolorcustom', 'backgroundimage'] %}{% set fSlot = 'bg1' %}
|
||||
{% if key in ['bodybackgroundcolor', 'bodybackgroundcolorcustom', 'backgroundimage', 'privacybackgroundcolor'] %}{% set fSlot = 'bg1' %}
|
||||
{% elseif key in ['backgroundimagefile', 'backgroundimagefixed', 'backgroundimagedisplay'] %}{% set fSlot = 'bg2' %}
|
||||
{% endif %}
|
||||
{% elseif bGroupsPane %}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<version>3.3.0</version>
|
||||
<apiVersion>3</apiVersion>
|
||||
<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
|
||||
<lastUpdate>2026-11-29 15:44:59</lastUpdate>
|
||||
<lastUpdate>2026-11-29 16:11:08</lastUpdate>
|
||||
<extends>vanilla_respondage</extends>
|
||||
</metadata>
|
||||
<compatibility>
|
||||
|
|
@ -173,8 +173,8 @@
|
|||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></navbarfontcolor>
|
||||
<navbarfontcolorcustom type="colorpicker" category="Header" width="4" title="Custom font color for the header menu (for 'Other ...')" parent="navbarfontcolor">#444444</navbarfontcolorcustom>
|
||||
<!-- Color choosers of the Header tab (rows 115/135/149): HOUSE-STYLE colors, set per
|
||||
variant via variants/<client>.json. sliderhandlecolor + privacybackgroundcolor remain in
|
||||
the Colors category (no custom tab yet — Prompt T). -->
|
||||
variant via variants/<client>.json. (The former Colors-category options moved to
|
||||
Page background / Questions in row 204.) -->
|
||||
<!-- Backgrounds of navbar/page stay plain colorpickers (owner decision
|
||||
2026-11-26, row 115): they are mostly NOT one of the default colors,
|
||||
default white #ffffff. EXCEPTION (row 135): the HEADER background color
|
||||
|
|
@ -284,6 +284,10 @@
|
|||
<backgroundimagefile type="imagefile" category="Page background" width="6" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
||||
<backgroundimagefixed type="buttons" category="Page background" width="6" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
|
||||
<backgroundimagedisplay type="buttons" category="Page background" width="6" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
|
||||
<!-- row 204: the privacy block background moved here from the removed Colors
|
||||
category — it renders in column 1 of the Page background pane, below the
|
||||
background image on/off switch (applied in custom_header.twig on .privacy) -->
|
||||
<privacybackgroundcolor type="colorpicker" category="Page background" width="6" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||
<!-- Groups tab (options.twig tab 4, aGroupKeys order): col 1 = group title, col 2 = group description (width 6 = the two col-md-6 columns). -->
|
||||
<!-- Row 157/159: the group options carry category "Groups" (row 159: the
|
||||
category names in this file ARE the tab labels of options.twig, so the
|
||||
|
|
@ -404,6 +408,10 @@
|
|||
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||
<!-- row 204: the slider handle color moved here from the removed Colors
|
||||
category — sliders appear inside questions, so it renders as a full-width
|
||||
row at the end of the Questions pane (applied in custom_header.twig) -->
|
||||
<sliderhandlecolor type="colorpicker" category="Questions" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
<!-- Questions
|
||||
HOUSE-STYLE: the colorpicker options in this section (question
|
||||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
|
|
@ -465,9 +473,9 @@
|
|||
<submitbuttontextcolor type="dropdown" category="Buttons" width="4" title="Font color for the Submit button" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other" data-default="1">[Other ...]</option></dropdownoptions></submitbuttontextcolor>
|
||||
<submitbuttontextcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom font color for the Submit button (for 'Other ...')" parent="submitbuttontextcolor">#ffffff</submitbuttontextcolorcustom>
|
||||
<!-- Colors: no tab in the custom options page yet (Prompt T) — these two stay in core mode only. -->
|
||||
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||
<!-- row 204: the Colors category is gone — its last two options moved to
|
||||
Page background (privacybackgroundcolor) and Questions (sliderhandlecolor),
|
||||
so every remaining category is a visible tab again. -->
|
||||
<!-- Other options tab (options.twig LAST tab): width 12 = full-width rows. -->
|
||||
<!-- Prompt O: the five "Other options" are width=12, so they stack in ONE
|
||||
column (full-width rows) in the Other options tab, label above each
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ mkdir -p "$STAGE" "$OUT_DIR"
|
|||
# in .gitignore (the public repo tracks the remaining files; the generic
|
||||
# variants/ tooling build.php + export_public.sh IS included, the client
|
||||
# definitions *.json, leak-patterns.txt and tests/ are NOT)
|
||||
(cd "$THEME_DIR" && tar --exclude='./.git' --exclude='./dist' --exclude='./variants/*.json' --exclude='./variants/leak-patterns.txt' --exclude='./variants/tests' --exclude='./sass' --exclude='./css/*.map' --exclude='./FEATURE_REQUEST*.md' --exclude='./BUG_REPORT*.md' --exclude='./AGENTS.md' --exclude='./prompts.md' --exclude='./limesurvey.md' --exclude='./.vibe' --exclude='./node_modules' --exclude='./package.json' --exclude='./package-lock.json' --exclude='./tmp' -cf - .) | (cd "$STAGE" && tar -xf -)
|
||||
(cd "$THEME_DIR" && tar --exclude='./.git' --exclude='./dist' --exclude='./variants/*.json' --exclude='./variants/leak-patterns.txt' --exclude='./variants/tests' --exclude='./sass' --exclude='./css/*.map' --exclude='./FEATURE_REQUEST*.md' --exclude='./BUG_REPORT*.md' --exclude='./SECURITY_REVIEW*.md' --exclude='./OPEN_PROMPTS.md' --exclude='./AGENTS.md' --exclude='./prompts.md' --exclude='./limesurvey.md' --exclude='./.vibe' --exclude='./node_modules' --exclude='./package.json' --exclude='./package-lock.json' --exclude='./tmp' -cf - .) | (cd "$STAGE" && tar -xf -)
|
||||
|
||||
# 2. leak check: no client-identifying strings may remain (text files only).
|
||||
# Client names are NOT hardcoded in this public file. Patterns are derived:
|
||||
|
|
|
|||
Loading…
Reference in a new issue