Page MenuHomePhabricator

Allow user to save articles from their mobile browser to the Wikipedia Android app
Open, LowPublic2 Estimated Story Points

Description

Background

This was originally suggested feature by users on both Android and iOS in the reading list usage survey (T164770).

User story

As a user who accesses Wikipedia through my browser as well as the app, I want to be able to add articles accessed through the web directly to my 'Saved' list in the Wikipedia app.

Proposed solution

Add "Save to reading list" as a share action from the user's device browser (on devices where the app is installed).

  • The new "Save to reading list action" is only available on wikipedia domains
  • The action saves to the default list, and shows a toast.
  • The current share action of 'Search Wikipedia' should remain in place

Note: For the Desktop web browser extensions, see task T191221.

Related
Equivalent task in the iOS app T145876

Event Timeline

Charlotte lowered the priority of this task from Medium to Low.Jan 15 2018, 4:19 PM
Charlotte set the point value for this task to 2.Apr 9 2018, 4:09 PM
Charlotte removed the point value for this task.
LGoto renamed this task from Allow user to save articles from their browser to the Wikipedia app to Allow user to save articles from their browser to the Wikipedia Android app.Apr 9 2018, 4:37 PM
RHo renamed this task from Allow user to save articles from their browser to the Wikipedia Android app to Allow user to save articles from their mobile browser to the Wikipedia app.Apr 9 2018, 4:52 PM
RHo updated the task description. (Show Details)
RHo renamed this task from Allow user to save articles from their mobile browser to the Wikipedia app to Allow user to save articles from their mobile browser to the Wikipedia Android app.Apr 10 2018, 12:46 PM

@RHo Looks like there's a technical limitation here:
When you highlight text and "share" it using the standard Android picker, it's shared as plain-text and cannot be "filtered" in the same way that links are filtered (where our app can subscribe to receive links only from *.wikipedia.org). Therefore we can only create another catch-all handler (similar to our current "Search Wikipedia" handler) that takes any arbitrary text and assumes that it's a title to be added to a reading list.

It looks like this is actually how Pocket works... you can feed it any arbitrary text, and it will say "This is not a valid web address", so there is some precedent for it. However, our case will be even more restrictive, where we'll need to say, "This is not a link to a Wikipedia article."

And by the same token, we also can't restrict the "Search Wikipedia" handler to handle only non-url text. So basically we would present two handlers side-by-side, both of which are catch-all, which would say "Search Wikipedia" and "Add to Reading List."
Thoughts?

hey @Dbrant - I think it's fair enough that we throw an error message if users tap to add an article to a reading list that is not from the wiki domain. Same goes for the existing "Search Wikipedia" search action.

Sharvaniharan added a subscriber: Sharvaniharan.

@RHo I remember you signing off on the expected behavior on this ... please feel free to move it to design sign off and review it, if I am wrong.. This has passed code review and has been merged, so needs to be in one of the sign off columns

hi @Sharvaniharan - this hasn't been done yet as far as I can see (there is no share action that is "Add to reading list") from the mobile browser. Also I can't see a patch attached to this in gerrit so don't believe work has started on this yet.

Jhernandez added a subscriber: Jhernandez.

Switched the parent task relationship so that the actual work blocks this task for resolving.