Page MenuHomePhabricator

Request geolocation from user
Closed, ResolvedPublic

Description

NOTE: For the purpose of this task we will not build out the PageList component

In current form Nearby shows a disabled button which turns blue when JS is enabled.

Screen Shot 2020-02-28 at 1.29.37 PM.png (680×1 px, 63 KB)

If JS is disabled:
Screen Shot 2020-02-28 at 2.13.47 PM.png (1×1 px, 144 KB)

Clicking the button currently triggers an error message " You have denied access to Location Services for Wikipedia. To change this please visit your browser or device settings " however this should only display if the user refuses permission to access location.

Acceptance criteria

  • Upon clicking the button the user is prompted for geolocation access.
  • If the user rejects show the error message
  • If the user accepts render a null Vue component named PageList - this will be used in a future task to flesh out the feature.

Event Timeline

Change 587867 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/extensions/NearbyPages@master] Add the api and location provider from MobileFrontend

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

Change 587867 merged by jenkins-bot:
[mediawiki/extensions/NearbyPages@master] Add the api and location provider from MobileFrontend

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

Jdlrobson updated the task description. (Show Details)