- (no interactions with context items) When a user navigates away (reloads) from the suggested add link surface, not having a warning looks like losing an opportunity to educate users how to go back to the suggested add link mode. Clicking on 'x' to close the suggested add link mode should trigger the warning even if a user did not interact with the context items.
- (when some links are added) users do not have sufficient warning that their changes won't be saved if they reload a page or navigate away
(1) A user doesn't interact with the link inspector
Actions on Add link overlay | Outcome on initial page | Desired |
---|---|---|
(1) the link inspector is open->a user reloads the page | ✅ no warning to users; after reloading an article is in Read mode | reloads with link inspector open (same behavior as reloading in VE mode) |
(2) the link inspector is open -> a user clicks on "X"-> no warning to users; clicks "Edit" | the link inspector is open | ✅ On clicking "x", the article returns to read mode, on clicking "Edit" in the same session, they should return to the editor in suggest mode (i.e., link inspector appears) |
(3) the link inspector is open -> a user clicks on "X", then a browser back button | no warning to users; a user is back on SE module | ✅ On clicking "x", the article returns to read mode, then on clicking browser back, they should return to the mobile Suggested edited module |
(4) the link inspector is open -> a user clicks on "X", then navigates away by selecting a link within the page (e.g., selecting talk page or clicking on a link to another article), then returns to add link suggested article via browser back button | no warning; no indication that clicking Edit button will bring the suggested add link surface back | ✅ On clicking "x", the article returns to read mode. On navigating away then clicking browser back, the user is taken to the the article in read mode. On clicking edit, they will be returned to the editor in suggest mode (i.e., link inspector appears) |
(2) A user interacts with the link inspector (a user clicks Yes/No)
Actions on Add link overlay | Outcome on initial page | Changes are recovered? | Desired |
---|---|---|---|
(1) the link inspector is open->a user reloads the page | no warning to users; after reloading an article is in Read mode | N/A | A reload browser dialog confirmation is shown (same as VE behaviour) | . If this warning message is prevented from being shown (as occurs on iOS), the article will reload in SE mode with an edits saved, and a toast message notifying users that this occurred
(2) the link inspector is open -> a user clicks on "X" | a warning about unsaved changes appears | N/A | ✅ a user is sufficiently informed |
(3) the link inspector is open -> a user clicks on browser back button | no warning to users | N/A | ✅ Confirmation dialog is shown (same as VE behaviour) |