VisualEditor warning about blocked external link ("People at this wiki decided to block links to this site. Please try another link.") can be skipped too easily (even accidentally), in at least two ways.
Steps to reproduce:
- Edit any page, e.g. https://en.wikipedia.org/w/index.php?title=The_Fighting_Temeraire&veaction=edit
- Click the link icon or press Ctrl+K
- Paste an external link that is blocked, for example: https://youtu.be/dQw4w9WgXcQ
Issue 1: The server-side check takes a good fraction of a second. You can click "Insert" before the check completes and disables it. On second thought, this behavior is better than waiting for the response.
Issue 2: Even when the "Insert" button is disabled, you can still press Enter on your keyboard to insert the link.
Please note, I understand that the feature isn't meant to be "secure" and prevent those links from being added, it's just intended to helpfully show the warning early before you go through the whole edit. But due to these issues it's easy to miss the warning by accident.
Story
@ppelberg to populate
Proposed UX
In cases when people manage to insert a URL that's blocked into the document, the following will happen:
- As soon as visual editor receives a response from the API indicating that the link someone has added is present on a community-maintained block list, said link will be highlighted using the component we defined in T365660.
- Purpose: inspire people to revisit the link they just added.
- Upon tapping the now-highlighted link, show people an Edit Check card the using the component we also defined in T365660.
- Said card would offer people two options Remove or Replace the link that the project they're contributing to has deemed spam.
- If someone does not choose to engage with the link that will have become highlighted in "2." before advancing "onward" to the publishing flow, we'll present them with the Edit Check card step "2." above refers to. Although, this version of the card will contain a single option Remove.
Meta: the Editing Team recognizes that the above amounts to a non-trivial investment to improve, what we assume to be, an edge case. However, the Editing Team is viewing the above as an opportunity to quickly learn the extent to which the design patterns it depends on will scale in the ways we've intended it to.//