After the user completes the onboarding in T269490: Add a link: onboarding, they should be in Suggestions mode. This is a new state of the visual editor.
- Toolbar & Publish button
- Editing surface
- The user should not be able to actually change the text or elements of the article in any way, except through the link suggestions.
- Tapping on links in the article should do nothing (except the link suggestions).
- On desktop, hovering over links does nothing -- it does not open page previews.
- A nice-to-have idea for if a user is repeatedly tapping on the editing surface, as if to try to make an edit to the next, would be to prompt them to switch editing modes. See T269656.
- Link suggestions
- Upon arrival, the user should see the article scrolled all the way to the top. Then it should immediately scroll down to put the first suggestion in the article in focus. The article should not be pre-scrolled to the first suggestion -- we want the user to get oriented to the top of the article and then for it to scroll down.
- The set of link suggestions all have a highlighted treatment. The one in focus gets a blue treatment, and the other ones get a yellow treatment.
- When the user taps on one of these, the window scrolls to focus on it, and the link inspector makes it the focus, as well. We should, though, try to minimize unnecessary scrolling: if the link suggestion is already in view, we do not need to scroll to put it exactly in the center of the view.
- There should be a 4px negative space around these link suggestions to accommodate a tap target.
- Icons
- They all start with a robot icon next to them.
- When the user accepts a suggestion, it turns into a checkmark.
- When the user rejects a suggestion, it turns into an "X".
- When the user skips a suggestion, it stays a bot.
- T279492: Add a link: animate icon in recommended link annotation when acceptance changes
Mobile mockups as of 2021-01-12: | Desktop mockups as of 2021-01-12: |
NOTE: Refer to Figma for up-to-date detailed redline mocks and specs:
Mobile: https://www.figma.com/file/2SONd8P1tsexIB5coMOp8h/Growth-Structured-tasks?node-id=181%3A65
Desktop: https://www.figma.com/file/2SONd8P1tsexIB5coMOp8h/Growth-Structured-tasks?node-id=112%3A0
Instrumentation
See T278114: Instrumentation: Suggestions mode for details.