Page MenuHomePhabricator

Show a dialog on the article page when an anonymous user tries to make an edit
Open, Needs TriagePublic

Description

From T317595: Investigate: Can we load the Create account / Login forms in a modal from an article page?:

maybe we could get away with a simple dialog that explains the situation and asks users to create an account/log in with the buttons allowing the user to navigate to the create account or login page with the relevant returnto parameter.

We'll mvp with this while we do additional work getting the login form working in the modal.

AC:
  1. When an anonymous (ie. not logged in) user tries to click the "edit" button, a dialog (Message dialog with 3 actions) appears instead
    1. This doesn't apply to the 'View Source' button for protected pages
  2. The dialog should allow the user to either navigate to the "Login" or "Create Account" page.
  3. The user, once logged in (either by creating their account or just logging in), should be redirected to the edit page for the article
  4. This only applies to desktop. Mobile users should not see the modal.
Notes:

Different wikis may have different layouts for the edit button (multiple edit buttons) and users can set their own preferences as well. Please ensure these use cases are accommodated for.

Design

image.png (496×612 px, 49 KB)

Title: Create an account to edit
Body: <Name of the Wiki> requires you to have an account before you can start contributing. Learn more about this policy.

  • Name of the wiki to be replaced
  • Learn more would be a link that'll be set by the community.

Event Timeline

@Prtksxna Could you provide some copy for this dialog? Additionally, I noticed that semi-protected pages will instead show a "View Source" button. In that case, should the IPBEE workflow also exist? Here's an example:

image.png (114×313 px, 11 KB)

image.png (322×862 px, 70 KB)

Prtksxna added subscribers: Tchanders, Niharika.

Hey @STran! I've update the description. The learn more link in the copy will need to be set by the community. I am not sure what the best way to do this is. Configuration? @Niharika @Tchanders was there a way that community members would override our messages using some namespace on-wiki?