Corresponding task from "add a link": T269644: Add a link: link inspector
When the user is in suggestions mode from T289829: Add an image: suggestions mode, but before they have selected "yes/no/skip", the image inspector should be open (unless they collapse it). The image inspector is the place where the action happens of accepting, rejecting, or skipping.
====NOTE: Final copy updated below - see relevant tab for corresponding QQQ in the copy spreadsheet:====
- Location
- The image inspector is a card at the bottom of the screen.
- When the user arrives on the page, it should animate in, like it is being "unminimized".
- Header
- Starts with the robot icon.
- Copy: Add a suggested image
- The far right of the header has a "down chevron", which minimizes the inspector.
- Minimize
- Content
- Suggested image
- The API will frequently provide multiple image suggestions.
We should always offer the first one, which is the highest confidence one. For this iteration, we should ignore the other suggestions beyond the first one.We should always offer the highest ranking image that is considered valid according to our own validation rules (e.g. high enough resolution, not an audio/video file, etc.). This change filed here: T296427: Add an image: use highest ranking valid image
- The API will frequently provide multiple image suggestions.
- T290911: Add an image: show suggestion-specific content in image inspector
- T290540: Add an image: image viewer
- T292467: Add an image: suggestion reason - revised copy for each reason type is detailed on this task.
- Below the thumbnail, there should be text: Add this image to the start of the article?
- Suggested image
- Actions
- At the bottom of the card are the action buttons.
- Yes: has a checkmark icon and the label Yes. This button triggers the caption stage. See T290781: Add an image: captions.
- No: has an X icon and the label No. This button triggers the rejection dialog. See T290046: Add an image: rejection dialog.
- Skip button: is a quiet button with the label Not sure. This button triggers the skip flow. See T290910: Add an image: skip button functionality for image inspector.
- RTL
- Note that the whole card should be flipped for RTL languages. In addition to the header and buttons, this would put the image thumbnail on the righthand side and the metadata on the left.
- Responsive
- Note that the design should be responsive for small devices, such that devices <360px drop the "Add this image to the start of the article?" line.
Mockups as of 2021-08-30:
Responsive for smaller devices:
NOTE: Refer to Figma for up-to-date detailed redline mocks and specs:
https://www.figma.com/file/ULhJr1isDstRbGE5vjYDsr/Add-images-structured-task?node-id=3042%3A8783



