Launch per-forum activity chart feature
This CL also adds to docs/features.md info about the feature.
Fixed: twpowertools:92
Change-Id: Iad99acd7e720677d65ca45f35b9a34d9084eeb1a
diff --git a/docs/features.es.md b/docs/features.es.md
index 4b693d9..f3dba70 100644
--- a/docs/features.es.md
+++ b/docs/features.es.md
@@ -222,6 +222,14 @@
Esta opción bloquea todas estas peticiones de red para guardar, eliminar y
recuperar borradores para que la función esté efectivamente desactivada.
+### Actividad separada por foros en perfiles
+> **Option name:** _Muestra la actividad separada por foros en los perfiles de
+la Consola de la Comunidad._
+
+Una imagen vale más que mil palabras:
+
+![Animated GIF showing the feature](resources/per_forum_activity_chart.gif)
+
## Punto indicador
> **Opciones:** _Muestra si el autor del hilo ha participado en otros hilos_,
_Muestra el número de preguntas y respuestas escritas por el autor del hilo
diff --git a/docs/features.md b/docs/features.md
index ea6f1b3..6ef010f 100644
--- a/docs/features.md
+++ b/docs/features.md
@@ -209,6 +209,14 @@
This option blocks all these requests to save/delete/retrieve draft messages, so
the feature is effectively disabled.
+### Per-forum activity in profiles
+> **Option name:** _Show per-forum activity in profiles in the Community
+Console._
+
+An image is worth a thousand words:
+
+![Animated GIF showing the feature](resources/per_forum_activity_chart.gif)
+
## Indicator dot
> **Option names:** _Show whether the OP has participated in other threads_,
_Show the number of questions and replies written by the OP within the last `n`
diff --git a/docs/resources/per_forum_activity_chart.gif b/docs/resources/per_forum_activity_chart.gif
new file mode 100644
index 0000000..438fa53
--- /dev/null
+++ b/docs/resources/per_forum_activity_chart.gif
Binary files differ
diff --git a/src/common/optionsPrototype.json5 b/src/common/optionsPrototype.json5
index 4ff1752..5866b0e 100644
--- a/src/common/optionsPrototype.json5
+++ b/src/common/optionsPrototype.json5
@@ -119,6 +119,11 @@
killSwitchType: 'option',
},
// #!endif
+ 'perforumstats': {
+ defaultValue: false,
+ context: 'options',
+ killSwitchType: 'option',
+ },
// Experiments:
'workflows': {
@@ -131,11 +136,6 @@
context: 'experiments',
killSwitchType: 'experiment',
},
- 'perforumstats': {
- defaultValue: false,
- context: 'experiments',
- killSwitchType: 'experiment',
- },
// Internal options:
'ccdarktheme_switch_enabled': {
diff --git a/src/options/optionsPage.json5 b/src/options/optionsPage.json5
index a06819a..0de4df5 100644
--- a/src/options/optionsPage.json5
+++ b/src/options/optionsPage.json5
@@ -12,6 +12,7 @@
{codename: 'ccdarktheme'},
{codename: 'threadlistavatars'},
{codename: 'history'},
+ {codename: 'perforumstats'},
{codename: 'batchlock'},
{codename: 'autorefreshlist'},
// #!if ['chromium', 'chromium_mv3'].includes(browser_target)
diff --git a/src/static/options/experiments.html b/src/static/options/experiments.html
index 64c81b8..9a21fdf 100644
--- a/src/static/options/experiments.html
+++ b/src/static/options/experiments.html
@@ -15,7 +15,6 @@
<div id="optional-permissions-warning" hidden data-i18n="optionalpermissionswarning_header"></div>
<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="perforumstats"> <label for="perforumstats" data-i18n="perforumstats"></label></div>
<div class="actions"><button id="save" data-i18n="save"></button></div>
</form>
<div id="save-indicator"></div>