Page MenuHomePhabricator

Lock selection to a single side in TableDiffFormatter
Closed, ResolvedPublic2 Estimated Story PointsFeature

Description

Adopt the solution outlined at T285285.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJul 1 2021, 2:45 PM

Change 701104 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/core@master] Lock selection to a single side in diffs

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

Daimona set the point value for this task to 2.

Change 701104 merged by jenkins-bot:

[mediawiki/core@master] Lock selection to a single side in diffs

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

MusikAnimal subscribed.

Merged! QA notes: This is not testable on the beta cluster or in prod. You'll have to test on your local machine or use Patch Demo.

That said, the JavaScript changes included with https://gerrit.wikimedia.org/r/701104 will go live on Beta and prod and loaded on diff pages. This JavaScript isn't supposed to have any effect yet, since it looks for CSS classes that won't exist until T285857 is resolved, but I thought I'd let you know so you can check for any weirdness. The changes involved here have to do with selecting text.

dom_walden subscribed.

I have tested this very briefly on https://test.wikipedia.org (e.g. https://test.wikipedia.org/w/index.php?title=Main_Page&action=historysubmit&type=revision&diff=470140&oldid=448939).

I have not noticed any visual differences after these changes.

There seems to be some weird behaviour when trying to perform some actions with the mouse (as outlined in T288421).

I have tried a few keyboard shortcuts for selecting text (e.g. shift+arrow key, ctrl+shift+arrow, shift+end) and these seem to work as I would expect them to.

More thorough testing will be done when T285857 is complete.

Test Environment: https://test.wikipedia.org MediaWiki 1.37.0-wmf.17 (rMW730ddbb90c6f) 18:07, 5 August 2021.
Test Browser: Firefox 78

@dom_walden and @Daimona i am having a hard time understanding if the scope of this change should allow me to just select one column using my mouse to select on the page-- or if that's something that will be able to test once we release T285857? Thanks and sorry about the confusion!

When I test on the test.wikipedia.org I still select both columns when I try to copy and paste from the diff, but they do indeed paste as coherent text with each column coming after the other. Lmk if that's the scope of this work. thanks all!

@dom_walden and @Daimona i am having a hard time understanding if the scope of this change should allow me to just select one column using my mouse to select on the page-- or if that's something that will be able to test once we release T285857? Thanks and sorry about the confusion!

Yep, this change allows you to select just one column, but it's not testable in production (testwiki and beta included). The only way to test it currently is to do that locally, or use something like patchdemo. I've created https://patchdemo.wmflabs.org/wikis/4e717c5832/wiki/Main_Page for you to be able to test it easily.