Page MenuHomePhabricator

Incorrect text selection highlight by punctuation.
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
eamedina
Jul 17 2023, 12:40 PM
Referenced Files
F37555212: 2023-08-17_15-30-49.png
Aug 17 2023, 10:42 PM
F37555191: 2023-08-17_14-55-04.png
Aug 17 2023, 10:42 PM
F37555177: 2023-08-17_14-48-17.png
Aug 17 2023, 10:42 PM
F37555296: 2023-08-17_14-59-41.png
Aug 17 2023, 10:42 PM
F37555292: 2023-08-17_14-57-24.png
Aug 17 2023, 10:42 PM
F37555133: 2023-08-17_14-47-04.png
Aug 17 2023, 10:42 PM
F37555125: 2023-08-17_14-41-28.png
Aug 17 2023, 10:42 PM
F37520191: 2023-08-16_15-04-43.png
Aug 16 2023, 10:35 PM

Description

Text selection sometimes incorrectly highlights a sentence because of some punctuation marks such as "i. e." or "Mr." among others.

image.png (1×686 px, 689 KB)

This is an improvement to T328906

Event Timeline

Change 939301 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/Wikistories@master] Add test spec and improve the split sentences util

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

PWaigi-WMF triaged this task as Medium priority.Aug 1 2023, 3:41 PM

Change 939301 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Add test spec and improve the split sentences util

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

@hueitan Is this an issue or as designed?

Status:
Environment: Beta
OS: macOS Ventura
Browser: Chrome 116
Device: MBP
Emulated Device: via DevTool
Test Links:
Desktop: https://en.wikipedia.beta.wmflabs.org/wiki/Beech_marten
Mobile Story Edit: https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Story:Beech_MArtin?frameid=0#story

Editing my story is not pulling in the updated changes I did for the article.
Steps

  1. I edit the article so it can have Mr., i.e. and ex.

2023-08-16_15-07-25.png (1×1 px, 686 KB)

  1. Click on replace when I edit the article which brings me to the article to select the content.

2023-08-16_15-10-08.png (851×727 px, 351 KB)

  1. As you see my edits are updated when you go to the article but when I edit my story, it's still showing the original article w/o my changes.

2023-08-16_15-04-43.png (844×819 px, 139 KB)

As you see my edits are updated when you go to the article but when I edit my story, it's still showing the original article w/o my changes.

The story builder fetches the article content through the rest v1 api mobile-html, that means the content you see is from wikipedia.org

I suggest you find different articles for testing.

@hueitan Please see the issue below and let me know how I should proceed, thanks!

Status:
Environment: Beta
OS: macOS Ventura
Browser: Chrome 116, Firefox 116, Safari 16.6
Device: MBP
Emulated Device:Iphone 12, Ipad Mini, Pixel 6, Samsung Galaxy 20 Ultra via DevTool
Test Links:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Story:Dog_Test?frameid=0#article
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Mr._Bean#story
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Harry_Potter#article

i.e.Mr. & :-...
2023-08-17_14-41-28.png (850×722 px, 133 KB)
2023-08-17_14-47-04.png (817×752 px, 126 KB)
2023-08-17_14-57-24.png (825×791 px, 153 KB)
2023-08-17_14-59-41.png (814×718 px, 142 KB)

Issues:
Bullets
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Mr._Bean#story
I see that T344364 is created for bullets, which you can't even select any of the bullets.

2023-08-17_14-48-17.png (818×803 px, 144 KB)

Quotes
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Harry_Potter#article
Should quotes be included on T344364 or a separate ticket since you can select them separately unlike with the bullets, you can't choose them at all?

2023-08-17_14-55-04.png (828×736 px, 110 KB)
2023-08-17_15-30-49.png (813×725 px, 115 KB)

@hueitan Sounds good, I will move this to sign off. Thanks for your work!

Status: ✅ PASS
Environment: Beta
OS: macOS Ventura
Browser: Chrome 116, Firefox 116, Safari 16.6
Device: MBP
Emulated Device:Iphone 12, Ipad Mini, Pixel 6, Samsung Galaxy 20 Ultra via DevTool
Test Links:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Story:Dog_Test?frameid=0#article
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Mr._Bean#story
https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:StoryBuilder/Harry_Potter#article