**Summary**
Page Preview preferences (existing under Preferences > Appearance > Reading preferences) will be merged with Reference Preview preferences (currently under Preferences >
Beta features). This will create a single 'Previews' preference, in the same location as the current Page preview preference.
**Note, that this will only be implemented on small default wikis (tbd), so the beta preference settings must be preserved for the remaining wikis until the feature is deployed to all wikis.**
**Requirements**
[] A single preference enables/disables both Page Previews and Reference Previews at the same time.
[] Page Previews user preference should be respected so that:
* everyone that has pagepreviews off, has the joint preference turned off
* everyone that has in on, has the joint preference turned on
* everyone from deployment date has the joint preference turned on by default
[] If the user has a gadget which hides one/or both features working, it does not change a users setting but visibly greys out the preference as shown below. They must disable any conflicting gadget to be able to change the preference. This could also result in this joint preference only truly enabling one of the two previews, depending on which gadget they have enabled. The hiding behavior for RefPreviews is covered in another ticket: {T265872}
[] The merged Preview preference is editable in three different locations:
* Logged in users:
[] Appeareance preference page (This ticket adjusts the wording to reflect the joint preference for the existing location)
[] The cog-wheel/pop-up Ref Previews, implemented in this ticket {T234205}. (This ticket adjusts the wording to reflect the joint preference for the existing pop up for Page Previews as well)
* Anonymous users:
[] Cog-wheel pop-up that saves the preference via a cookie
**Mocks**
|current Page Previews |merged Previews
| {F33923215} | {F33923217} |
| {F32386385} | {F32398545} |
User settings (backend): Preference setting
|Nav pop ups enabled, Page Previews enabled| Joint preference enabled, greyed out (current behaviour)|
|Nav pop ups enabled, Ref Previews enabled |Joint preference enabled, greyed out (same as above)|
|RefTooltips enabled, Page Previews enabled |Joint preference enabled, not greyed out, include special message about half of the preference being disabled by gadgets|
|RefTooltips enabled, Reference Previews enabled |Joint preference enabled, not greyed out, include special message about half of the preference being disabled by gadgets|
**Open questions**
* Current RefPreviews beta feature mentions which specific gadgets cause conflicts and the current Page Previews preferences mention gadgets but not specific names. This is possibly to keep it general enough to apply to all wikis, though does not help users find the source of the conflict. Which pattern would we like to follow?