Feature summary (what you would like to be able to do and where):
- on the Wikipedia iOS app, you can currently enter edit mode and attempt to publish an edit on a semi-protected page
- the warning that the edit cannot be saved (because the page is protected) happens only after you attempt to save your edit, which is super frustrating because you can put a bunch of time into an edit and then you're stuck because it can't be saved
- This is inconsistent with the mobile web and desktop behavior, where editing is prevented before you do the work of making changes to a protected page. On desktop Vector, the edit buttons are hidden completely and you only see View Source, which is also not very new editor friendly. The best experience is probably mweb, where you see the edit button with a lock icon and a toast error message is displayed (see screenshot).
Benefits (why should this be implemented?):
Design proposition
If a page is semi-protected the editor should see an alert right after they tap on the edit pencil icon to edit the page.
- The alert will display a message stating that the page is semi/fully-protected.
- To dismiss the modal the editor will be able to tap on 'OK' or tap on the 'X' icon.
- If the editor is blocked from editing and they decide to edit a semi-protected page (they tap the edit pencil icon) the block message will appear (T275118). This block message will prevent the editor from editing the page. In this case they will not see the semi-protected alert modal right after.
Screens
Editor decides to edit a semi-protected page
Note for QA: This screen was not done; it is not technically possible. (See https://phabricator.wikimedia.org/T313772#8757317)
Editor taps to edit a semi-protected page | Editing screens open with an alert | Tapping 'Ok' brings the editor back to the editing screen |
Editor decides to edit a fully-protected page
Editor taps to edit a fully-protected page | Editing screens open with an alert | Tapping 'Ok' brings the editor to the editing screen that is disabled | Tapping on the 'X' icon takes you back to the article |
Editor that is blocked tries to edit a semi-protected page
Blocked editor taps to edit a semi-protected page | Block message appears |
QA Notes
This task can be tested in TestFlight 7.3.0.