Page MenuHomePhabricator

Ensure paste check is shown on-screen for larger pastes
Open, Needs TriagePublicFeature

Description

Feature summary: I would like the paste check warning to be always shown on-screen (at the end of the pasted text), including when someone is pasting a longer text. Currently, the warning is shown at the top of the copied text, which means it can be off-screen.

Use case(s). When testing LLM check (T420258) on mobile, I initially thought it did not trigger. The only indication I had something happened was that my text got a yellow colour. When I separately tested the already deployed Paste check on mobile, I saw even less, just a partial yellow line to the right of the pasted text, which could equally just indicate that something is inserted rather than an error. We often see new editors create entire articles using chatGPT, which means that even on Desktop the paste check does not visibly trigger for a common use case.

Benefits: This will likely make paste check more noticeable for a large set of use cases.

Event Timeline

I think we might have a ticket somewhere (but cannot find it) about making it so that the check icon in the mobile gutter is kept on-screen. That would address this issue, in a non-paste-specific way.

Change #1301420 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] EditCheckGutterSectionWidget: keep icon visible in the viewport

https://gerrit.wikimedia.org/r/1301420

I think we might have a ticket somewhere (but cannot find it) about making it so that the check icon in the mobile gutter is kept on-screen. That would address this issue, in a non-paste-specific way.

This applies to desktop too - although on a wider screen it seems less likely.

Change #1302331 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] EditCheckGutterSectionWidget: keep icon visible in the viewport

https://gerrit.wikimedia.org/r/1302331

Change #1302903 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] EditCheckGutterSectionWidget: keep icon visible in the viewport

https://gerrit.wikimedia.org/r/1302903

^ this has wound up with me making patches to demonstrate all three approaches that might be taken.