🎉 Launch "flatten threads" feature
Fixed: twpowertools:153
Change-Id: I09eb246a4b6de130d5bed81cefe9109995aaf43b
diff --git a/src/common/optionsPrototype.json5 b/src/common/optionsPrototype.json5
index 8bcc0da..79569aa 100644
--- a/src/common/optionsPrototype.json5
+++ b/src/common/optionsPrototype.json5
@@ -139,6 +139,11 @@
context: 'options',
killSwitchType: 'option',
},
+ 'flattenthreads': {
+ defaultVale: false,
+ context: 'options',
+ killSwitchType: 'option',
+ },
// Experiments:
'workflows': {
@@ -156,11 +161,6 @@
context: 'experiments',
killSwitchType: 'experiment',
},
- 'flattenthreads': {
- defaultVale: false,
- context: 'experiments',
- killSwitchType: 'experiment',
- },
// Internal options:
'ccdarktheme_switch_enabled': {
diff --git a/src/options/optionsPage.json5 b/src/options/optionsPage.json5
index 1b4f4d3..9435ece 100644
--- a/src/options/optionsPage.json5
+++ b/src/options/optionsPage.json5
@@ -11,6 +11,7 @@
{codename: 'threadall'},
{codename: 'ccdarktheme'},
{codename: 'threadlistavatars'},
+ {codename: 'flattenthreads'},
{codename: 'history'},
{codename: 'perforumstats'},
{codename: 'batchlock'},
diff --git a/src/static/_locales/ca/messages.json b/src/static/_locales/ca/messages.json
index c9c294c..8604bf8 100644
--- a/src/static/_locales/ca/messages.json
+++ b/src/static/_locales/ca/messages.json
@@ -179,6 +179,10 @@
"message": "Redueix l'espai en blanc a la Consola de la Comunitat i TW.",
"description": "Feature checkbox in the options page"
},
+ "options_flattenthreads": {
+ "message": "Mostra un selector per activar/desactivar la vista anidada als fils.",
+ "description": "Feature checkbox in the options page"
+ },
"options_save": {
"message": "Desa",
"description": "Button in the options page to save the settings"
diff --git a/src/static/_locales/en/messages.json b/src/static/_locales/en/messages.json
index 94fd093..7f6b213 100644
--- a/src/static/_locales/en/messages.json
+++ b/src/static/_locales/en/messages.json
@@ -179,6 +179,10 @@
"message": "Reduce the whitespace in the Community Console and TW.",
"description": "Feature checkbox in the options page"
},
+ "options_flattenthreads": {
+ "message": "Show a toggle to enable/disable nested view in threads.",
+ "description": "Feature checkbox in the options page"
+ },
"options_save": {
"message": "Save",
"description": "Button in the options page to save the settings"
diff --git a/src/static/_locales/es/messages.json b/src/static/_locales/es/messages.json
index b4574cf..23a1167 100644
--- a/src/static/_locales/es/messages.json
+++ b/src/static/_locales/es/messages.json
@@ -179,6 +179,10 @@
"message": "Reduce el espacio en blanco en la Consola de la Comunidad y TW.",
"description": "Feature checkbox in the options page"
},
+ "options_flattenthreads": {
+ "message": "Muestra un selector para activar/desactivar la vista anidada en los hilos.",
+ "description": "Feature checkbox in the options page"
+ },
"options_save": {
"message": "Guardar",
"description": "Button in the options page to save the settings"
diff --git a/src/static/options/experiments.html b/src/static/options/experiments.html
index 18fa34d..615d5ec 100644
--- a/src/static/options/experiments.html
+++ b/src/static/options/experiments.html
@@ -16,7 +16,6 @@
<div class="option"><input type="checkbox" id="workflows"> <label for="workflows" data-i18n="workflows"></label> <button id="manage-workflows" data-i18n="workflows_manage"></button></div>
<div class="option"><input type="checkbox" id="extrainfo"> <label for="extrainfo" data-i18n="extrainfo"></label></div>
<div class="option"><input type="checkbox" id="nestedreplies"> <label for="nestedreplies" data-i18n="nestedreplies"></label></div>
- <div class="option"><input type="checkbox" id="flattenthreads"> <label for="flattenthreads">Flatten threads (feature name TBD)</label></div>
<div class="actions"><button id="save" data-i18n="save"></button></div>
</form>
<div id="save-indicator"></div>