chore(reply-soft-lock): demote feature to an experiment
This has been done because the feature is still not complete, and we
don't want to release it along with the next extension release.
Bug: twpowertools:286
Change-Id: I80236400241af4bb4b9c374a570d44e56a6a6964
diff --git a/src/common/options/optionsPrototype.ts b/src/common/options/optionsPrototype.ts
index 5d3ace7..51dd75d 100644
--- a/src/common/options/optionsPrototype.ts
+++ b/src/common/options/optionsPrototype.ts
@@ -179,11 +179,6 @@
context: OptionContext.Options,
killSwitchType: KillSwitchType.Option,
},
- replysoftlock: {
- defaultValue: false,
- context: OptionContext.Options,
- killSwitchType: KillSwitchType.Option,
- },
/** Forums where the soft lock checkbox is enabled by default. */
replysoftlock_autosoftlockforums: {
defaultValue: identity<string[]>([]),
@@ -202,6 +197,11 @@
context: OptionContext.Experiments,
killSwitchType: KillSwitchType.Experiment,
},
+ replysoftlock: {
+ defaultValue: false,
+ context: OptionContext.Experiments,
+ killSwitchType: KillSwitchType.Experiment,
+ },
// Internal options
ccdarktheme_switch_status: {
diff --git a/src/options/presentation/data/featureCategories.pre.ts b/src/options/presentation/data/featureCategories.pre.ts
index bffe338..a728226 100644
--- a/src/options/presentation/data/featureCategories.pre.ts
+++ b/src/options/presentation/data/featureCategories.pre.ts
@@ -34,7 +34,6 @@
import { fixPEKB381989895Feature } from '@/features/fixPEKB381989895/presentation/options/feature';
import { simulateRolesFeature } from '@/features/simulateRoles/presentation/options/feature';
import { fixCrPopupFeature } from '@/features/fixCrPopup/presentation/options/feature';
-import { replySoftLockFeature } from '@/features/replySoftLock/presentation/options/feature';
const minorUIEnhancementsSectionName = () =>
msg('Minor UI enhancements', {
@@ -120,7 +119,9 @@
name: msg('Message composer', {
desc: 'Name of the category of extension features related to the message composer.',
}),
- features: [fixLinkDialogFeature(), replySoftLockFeature()],
+ // TODO(https://iavm.xyz/b/twpowertools/286): add `replySoftLockFeature()`
+ // after we promote this experiment to a released feature.
+ features: [fixLinkDialogFeature()],
sections: [
new FeatureSection({
name: minorUIEnhancementsSectionName(),
diff --git a/src/static/options/experiments.html b/src/static/options/experiments.html
index a7dddc8..0509914 100644
--- a/src/static/options/experiments.html
+++ b/src/static/options/experiments.html
@@ -15,6 +15,7 @@
<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="replysoftlock"> <label for="replysoftlock">Soft lock when replying: Adds the option to soft lock the current thread in the reply editor.</label></div>
<div class="actions"><button id="save" data-i18n="save"></button></div>
</form>
<div id="save-indicator"></div>