Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive intents from Wikipedia app #3722

Open
nicolas-raoul opened this issue Apr 29, 2020 · 3 comments
Open

Receive intents from Wikipedia app #3722

nicolas-raoul opened this issue Apr 29, 2020 · 3 comments

Comments

@nicolas-raoul
Copy link
Member

Sharing an image from the Wikipedia app to the Commons app should open that image's media details.
Sharing an article from the Wikipedia app should open that article's Wikidata item activity (same as the one acessible from Explore)

By the way here is what gets shared to GMail:

Image:

Screenshot_20200429-121654_Wikipedia Beta
Screenshot_20200429-121707_Gmail

Article:
Screenshot_20200429-121641_Wikipedia Beta
Screenshot_20200429-121632_Gmail

@sivaraam
Copy link
Member

sivaraam commented Apr 29, 2020

Sharing an image from the Wikipedia app to the Commons app should open that image's media details.

Do you mean that when someone shares images from the Wikipedia app we show the media details view and in other cases we show the upload dialog? Currently when I share an image from the Wikipedia app to Commons app, I see the upload flow just as expected. I'm wondering how changing this would be advantageous. The Wikipedia app already has a "Go to file page" option for an image. Isn't that helpful? Also, what would happen if the image exists only in Wikipedia and not in Commons?

@nicolas-raoul
Copy link
Member Author

nicolas-raoul commented Apr 30, 2020

what would happen if the image exists only in Wikipedia and not in Commons?

Good point, I had not thought about this! Moving a file from Wikipedia to Commons involves a lot of extra expected steps, for instance attribution, so doing it via our app does not sound like a good idea.

And if the image has a Commons URL, it does not make sense to upload it again. Instead, showing its details would be useful.

To know the most precise categories for an image, the best way I know is to go to the relevant Wikipedia article, see the pictures embedded in the article, and check their categories. It is currently hard to do on mobile (tapping "Go to file page" opens a page which does not show categories nor depictions), so I almost always do it on desktop. Being able to open the image in our app's media details would solve this problem.

@sivaraam
Copy link
Member

sivaraam commented May 1, 2020

Moving a file from Wikipedia to Commons involves a lot of extra expected steps, for instance attribution, so doing it via our app does not sound like a good idea.

Yeah, but there's no harm in allowing it AFAIK.

I think it's better if we keep the flow for sharing an image consistent. It's kind of weird to think that sharing an image from every other app would trigger the upload flow but sharing an image from the Wikipedia app alone would open the media details view. Also, it's not even an easy thing to do as I state below.

And if the image has a Commons URL, it does not make sense to upload it again. Instead, showing its details would be useful.

I don't think we ever get a Commons URL directly from the app. Even if an image that was uploaded to Commons is used in a Wikipedia article. Sharing that image only gives us a Wikipedia URL which when opened shows a Wikipedia file page where the image and it's description from Commons is shown.

To know the most precise categories for an image, the best way I know is to go to the relevant Wikipedia article, see the pictures embedded in the article, and check their categories. It is currently hard to do on mobile (tapping "Go to file page" opens a page which does not show categories nor depictions), so I almost always do it on desktop. Being able to open the image in our app's media details would solve this problem.

Yeah, I understand how the fact that the Commons mobile website doesn't show categories could be annoying at times. I've seen people complain about this in the Commons Village pump too.

Rather than thinking of handling this specifically for the images shared from the Wikipedia app, I believe a more generic and much more useful enhancement would be to identify Commons URL's and open the media details view for the corresponding case. I'm thinking of something similar to how the Wikipedia app shows up as an option when you try to open a Wikipedia URL. But yeah, the app can only render useful information for File pages. In other cases, we would just have to fall back to opening the browser. Regardless, I think this would turn out being helpful in a lot of cases including your case too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants