This task adds involves the work of figuring out under what conditions we consider a Paste Check to be addressed/invalidated. See "Background" below for more context about the sorts of actions we need to consider here.
This ticket is related to T399675 in so far as T399675 will suggest the default path for addressing a check and this task holds the work of alternative paths someone can take to do the same.
The various paths that exist is a consequence of Paste Check "operating" on editable text rather than a singular discrete piece of relatively structured content with a separate workflow (e.g. links, citations, images, etc.)
Background
At the moment, there are the following issues when in the Mid-edit of Paste Check:
When editing the text pasted, the Paste Check remains visible, even though the user is modifying the text. This creates confusion, as the original validation should no longer apply once the user starts editing. Keeping the Paste Check visible could interrupt the editing flow, making it harder for users to focus.We'll revisit this work in T401343: Decide when paste-annotated text has been "modified".Similarly, when moving to a new text line or paragraph, the Paste Check remains visible, and the text stays highlighted. However, the Paste Check indications (card and highlighted text) should disappear because the user may want to continue writing after pasting the content.We will solve this in T405954: Paste Check highlight remains visible when writing/navigating to a new paragraphThe user can undo the “Rewrite” action by pressing Command + Z, but this command doesn’t work when selecting the “Keep” button. So, if the user accidentally selects “Keep”, there is no way to undo this action.No longer relevant since we included the declining survey after selecting "Yes, keep it" in T399675: Paste Check: Clarify resolution path/experience
Possible solutions
- The Paste Check could switch to a “Stand by” state once the user starts editing, allowing them to confirm the content after completing the edition.
- Avoid the text from being highlighted when pressing Enter at the end of the pasted text
- Display a Toast Notification when the user selects “Keep,” offering the option to revert the action.
Design proposal
Once the design proposal has been created in Figma, remove this note and link the Figma file below.
| Design proposal |
Open questions
Add here the questions to be answered in order to design and implement the component
Acceptance criteria (or Done)
Design
- Explore solutions to improve the experience when editing pasted content
Implementation
- Implement the decided solution