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:
- When an anonymous (ie. not logged in) user tries to click the "edit" button, a dialog (Message dialog with 3 actions) appears instead
- This doesn't apply to the 'View Source' button for protected pages
- The dialog should allow the user to either navigate to the "Login" or "Create Account" page.
- The user, once logged in (either by creating their account or just logging in), should be redirected to the edit page for the article
- 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
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.