@@ -34,9 +34,9 @@ clients commit to doing the associated clean up work once a feature stabilises.
3434
3535When starting work on a feature, we should create a matching feature flag:
3636
37- * Add a new
38- [ setting] ( https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/settings/Settings.js )
39- of the form:
37+ 1 . Add a new
38+ [ setting] ( https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/settings/Settings.js )
39+ of the form:
4040``` js
4141 " feature_cats" : {
4242 isFeature: true ,
@@ -45,17 +45,17 @@ When starting work on a feature, we should create a matching feature flag:
4545 default: false ,
4646 },
4747```
48- * Check whether the feature is enabled as appropriate:
48+ 2 . Check whether the feature is enabled as appropriate:
4949``` js
5050 SettingsStore .isFeatureEnabled (" feature_cats" )
5151```
52- * Add the feature to the [ set of labs on develop] ( ../riot.im/develop/config.json ) :
52+ 3 . Add the feature to the [ set of labs on develop] ( ../riot.im/develop/config.json ) :
5353``` json
5454 "features" : {
5555 "feature_cats" : " labs"
5656 },
5757```
58- * Document the feature in the [ labs documentation] ( labs.md )
58+ 4 . Document the feature in the [ labs documentation] ( labs.md )
5959
6060With these steps completed, the feature is disabled by default, but can be
6161enabled on develop by interested users for testing.
@@ -81,9 +81,9 @@ Set the feature to `enable` in the [app config](../riot.im/app/config.json).
8181
8282Once we're confident that a feature is working well, we should remove the flag:
8383
84- * Remove the [ setting] ( https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/settings/Settings.js )
85- * Remove all ` isFeatureEnabled ` lines that test for the feature's setting
86- * Remove the feature from the [ labs documentation] ( labs.md )
87- * Remove feature state from [ develop] ( ../riot.im/develop/config.json ) and
84+ 1 . Remove the [ setting] ( https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/settings/Settings.js )
85+ 2 . Remove all ` isFeatureEnabled ` lines that test for the feature's setting
86+ 3 . Remove the feature from the [ labs documentation] ( labs.md )
87+ 4 . Remove feature state from [ develop] ( ../riot.im/develop/config.json ) and
8888 [ app] ( ../riot.im/app/config.json ) configs
89- * Celebrate! 🥳
89+ 5 . Celebrate! 🥳
0 commit comments