Page MenuHomePhabricator

[OTRS] Unexpected behavior with context menu "Share" action
Closed, ResolvedPublic

Description

From https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=11736306

On iOS, if you select text within an article and use the popover menu to copy the text, everything works as intended. But if you instead tap “share” to bring the share sheet, the output being passed to the next app / action is not the selected text (as expected) but rather a link to the article you are viewing.

Essentially - the other actions in the context menu are about the selected snippet. The share action is not.

Possibilities

  • Change text to "share article"
  • Include the selected snippet of text with the article URL

Event Timeline

Hey! Thanks for creating a ticket about this so quickly (I reported the bug via email yesterday).

I personally think that the appropriate behaviour is just to share the selected text as it is. I tested several other iOS apps (both first and third party) using a Siri shortcut that displays the shortcuts input, and all of the apps only sent the selected text.

Furthermore, there is already a share menu for the article itself, so I don’t think changing the context menu or sending a URL with the selected text would be appropriate. If either of those solutions were implemented, there’s be no direct way to pass selected text from a Wikipedia article to another app or a Siri shortcut.

I hope that all makes sense and helps in some way.

Ps. I spent half an hour looking through the source on GitHub trying to find where the context menu is implemented, but couldn’t pinpoint it and I’m not at all familiar with swift otherwise I’d submit a PR.

Josh/Carolyn: Let's add a snippet to it, along with teh link.

ABorbaWMF subscribed.

Tested on 6.9.3 (1948)

I was a little unclear on the expected results here so I thought I would flag this one for a little review. Below is a screenshot of the same text. The top was done using 'copy' from the highlight menu and the bottom was done using 'share' and then 'copy' from the share menu.

IMG_3A1EAE2FCA84-1.jpeg (2×2 px, 833 KB)

cmadeo subscribed.

@ABorbaWMF Thanks! This is the expected behavior, will move over to PM sign-off

JMinor claimed this task.