#### Background
- Source: [Wikipedia:Template index/User talk namespace - Wikidata](https://www.wikidata.org/wiki/Q3223292)
- Spreadsheet: [Warning messages](https://docs.google.com/spreadsheets/d/1aU0WhgPwi1Djt1lmApc_krVrGXvojM1LEAYqRxa1bN0/edit#gid=11348671)
- Analyzed German, Arabic, Spanish, Indonesian, French, and Chinese warning messages
#### Task
- [x] Design screen with saved warning messages
- [x] Get feedback from engineers on if we can prepopulate links
- [x ] Hardcode in saved messages based on design
- [x] Instrument warning messages to understand which are commonly used (T358154)
- [x] Get target languages translated (see T350511)
#### Designs ([Figma](https://www.figma.com/file/cJmB34iJE5p8qbqrQWnE50/Android-%E2%86%92-Edit-Patrol-%E2%86%92-T322083?type=design&node-id=3804-57291&mode=design&t=2q3Pk32vKCbYzh5F-4))
**Updates to warn flow**
| 1. Taps warn {F41999263} | 2. Empty state {F42442576} | 2.1. Custom messages {F42935282} | 2.2. Example messages {F42442582} | 3. Or creates message {F42001894} | 4. Reviews message {F42001900} | 5. Makes changes {F42001903} | 6. Saves changes {F41999518} | 7. Preview {F41999459} | 8. Published {F41999464}
- After tapping "Warn" in `1`, users see saved messages listed in this [[ https://docs.google.com/spreadsheets/d/1aU0WhgPwi1Djt1lmApc_krVrGXvojM1LEAYqRxa1bN0/edit#gid=11348671 | spreadsheet ]]
- The saved messages list (`2`) contains a floating action button for new messages
- The CC0 disclaimer has been moved to the newly added preview step in `7`
- Please pay attention to small UI and label updates in the above screens
- Empty state when there are no warning custom warning messages yet (`2``
- Example messages serve as starting points but can’t be edited (`2.2.`). They can, however, be saved as “new messages” (see `6`)
- If a user edits an Example Message, they should not be shown the "Update existing message" option.
- If a user creates a brand new Message, they should not be shown the "Update existing message" option.
**New entry points**
| 9. List overflow {F41999551} | 10. Diff overflow {F41999557} | 11. Your messages {F42935282} | 11.1. Example messages {F42442724} | 12. Edit message {F42001924} | 13. New message {F41999641}
- Entry points for saved messages in the list and diff view allow users to access and manage their saved messages outside of the warn flow
- Note the contextual label updates in the app bar: "Saved messages" instead of "Warn", "Edit message" and "New message" instead of the user talk page, and "Save" instead of "Next"
**Edit saved messages**
| 14. List view {F42442895} | 15. Edit message {F42001933} | 16. Delete right swipe {F42442898} | 17. Delete left swipe {F42442900} | 18. Single delete {F42442902} | 19. Edit top right {F42442905} | 20. Selects messages {F42442908} | 21. Multi delete {F42442910}
- Only "Your messages" can be edited
- Tapping a message in the list view (`14`) allows users to edit it (`15`). Depending on the context (Warn flow or new entry point), users see a "Next" or "Save" button at the top right
- Swiping right (`16`) and left (`17`) lets users delete a message. The gestures work the same way as in Notifications (T288065)
- Tapping "Edit" at the top right in `14` lets users change the order and multi-select and delete list items (`20` and `21`)
- Snackbars (`18`, `21`) confirm the user's actions and let them undo their deletion
- Select/Deselect all options in the app bar (`20`) work the same as in notifications (T288066)
- Long pressing the list enables edit mode as well (T288066)
---
**Target date for release: Week of April 1-5**