Page MenuHomePhabricator

Settings link to bottom of page for RefPreviews and Page Previews anonymous/non logged-in users
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

When anonymous / non logged-in users disable Page-Previews, they see a second screen explaining that a link is added to the footer where they can re-enable. In T277639: Settings pop up for RefPreviews and Page Previews we will create a joint settings dialog for this user group to display all popup types in one dialog, and will adjust the behavior of the footer link in this ticket.

Requirements

  • After an anonymous user / a user that is not logged in clicks on the cog wheel and then disables either the Page previews or Reference previews, or both settings, users see the same graphic and message about re-enabling in the footer (with the adjusted header, "Previews")
  • Show the link to re-enable previews in the footer whenever one of the settings is disabled, using the existing link
  • Do not label the link "Enable previews" any more, but "Edit preview settings"
  • When clicking "Edit preview settings", the settings dialog comes back with the previously set settings and the user can change their setting for any preview type. If they leave it unchecked and click save again, do not show the graphic about the footer (this is current behavior for Page Previews)

Mocks

Note: the header of the pop-up should be "Previews" as above (mock has not been updated)

Anonymous disable - screen 2.png (494×630 px, 41 KB)

Event Timeline

ECohen_WMDE renamed this task from Add settings link to bottom of page for RefPreviews to Add settings link to bottom of page for RefPreviews anonymous users.Mar 17 2021, 9:46 AM
ECohen_WMDE updated the task description. (Show Details)
ECohen_WMDE updated the task description. (Show Details)
Lena_WMDE renamed this task from Add settings link to bottom of page for RefPreviews anonymous users to Add settings link to bottom of page for RefPreviews anonymous/non logged-in users.Mar 17 2021, 11:18 AM
Lena_WMDE updated the task description. (Show Details)
Lena_WMDE set the point value for this task to 2.Mar 18 2021, 3:12 PM

The changes we are discussing in this ticket https://phabricator.wikimedia.org/T277639#6954081 would also mean a different implementation for this ticket.

Lena_WMDE renamed this task from Add settings link to bottom of page for RefPreviews anonymous/non logged-in users to Settings link to bottom of page for RefPreviews and Page Previews anonymous/non logged-in users.Apr 14 2021, 9:27 AM
Lena_WMDE updated the task description. (Show Details)
Lena_WMDE updated the task description. (Show Details)

Because there are now more popup type settings in the settings window and they can have different settings (one could be enabled and the other disabled), it might make sense to change the label from "Enable previews" to "Edit preview settings" (or something similar). Also I would always display the link for the settings to not confuse users. For example if a user wants to change a specific setting and enabled all types before, the link will not appear, although it was displayed before.

Thanks @lilients_WMDE that's a good point, I've updated the ticket.

We need to hide the footer link when a conflicting gadget is activated.

Change 680293 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Popups@master] Clean up code enabling individual popup types

https://gerrit.wikimedia.org/r/680293

Change 681946 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/Popups@master] Updated settings link for anonymous users

https://gerrit.wikimedia.org/r/681946

Change 681949 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Popups@master] Clean up popup type settings related code

https://gerrit.wikimedia.org/r/681949

Change 680293 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Clean up code enabling individual popup types

https://gerrit.wikimedia.org/r/680293

Change 681946 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Updated settings link for anonymous users

https://gerrit.wikimedia.org/r/681946

Change 681949 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Clean up popup type settings related code

https://gerrit.wikimedia.org/r/681949