Currently, the ReadingLists feature (bookmark icon/button and special page) are available via BetaFeatures. (on wikis that have the beta feature setup).
We need to adjust the code to make ReadingLists available on web for users in experiment (with hidden preference).
The user can see the ReadingLists bookmark icon if:
# They enabled ReadingLists as a beta feature (e.g. on test.wikipedia)
# They have the hidden preference set: readinglists-web-ui-enabled AND are in the treatment group for the experiment we-3-3-4-reading-list-test1
# They are using the desktop site and skin Vector 2022
# Requirements
[x] The hidden user preference exists
[] There is logic that activates the feature for people in the experiment treatment group
# Notes for implementation
---
to support the hidden preference:
in extension.json add
```
"DefaultUserOptions": {
"readinglists-web-ui-enabled": "0"
},
```
In HookHandler, add check that the preference is enabled:
```
$this->userOptionsLookup->getOption( $user, Constants::PREF_KEY_WEB_UI_ENABLED ) === '1';
```
And here is an example of how to add the experiment check, from ReaderGrowth:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ReaderExperiments/+/1187912