Nearby is currently a WatchstarPageList. However at times it also looks like this:
A single MessageBox (error)
A welcome screen
A WatchstarPageList
Acceptance criteria
- Nearby no longer extends WatchstarPageList - either use a factory function using a plain View or make
- The welcome screen can be rendered outside Nearby.
- promisedView pattern is being used to display Nearby results
QA steps
Test this on https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:Nearby#/coord/37.7889528,-122.4034687 and without results https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:Nearby
On Special:Nearby test the following scenarios
- Confirm clicking "show nearby articles" shows nearby articles
- Ensure Special:Nearby has loaded first. Then drop your WiFi. Click the "show nearby articles" button and confirm an error message is shown
- Log in and show nearby articles and confirm a watchstar is displayed (note on staging clicking watchstar will not work, we will need to confim this on beta cluster)
QA Results
AC | Status | Details |
1 | ✅ | T217814#5183122 |
2 | ✅ | T217814#5183122 |
3 | ✅ | T217814#5183122 |