Page MenuHomePhabricator

Random article widget
Closed, DeclinedPublic

Description

Create a widget for viewing random articles

Behavior:
Every time the user views the widget after {{insert timeout here}}, a new random article is shown
-and/or-
There's a randomizer button that cycles the random article

Current appearance:

Matches the featured article widget

Compact:

Simulator Screen Shot - iPhone X - 2019-03-21 at 16.23.27.png (498×1 px, 384 KB)

Expanded (it looks like there's a margin issue that affects the featured article widget as well):

Simulator Screen Shot - iPhone X - 2019-03-21 at 16.23.29.png (1×1 px, 1 MB)


Proposed designs

CollapsedExpanded
Random widget collapsed.png (1×750 px, 1 MB)
Random widget expanded.png (1×750 px, 1 MB)
Zeplin: https://zpl.io/a7OqnRKZeplin: https://zpl.io/2v7mz55

Design details

  • Tapping on the label in the condensed view will open the app to a new random article in the randomizer stack
  • Tapping on 'Save for later' saves the article but does not open the app
  • Tapping on 'Another random article' opens the app to a new random article in the randomizer stack
  • Tapping on the article (title, image, body, etc) opens the app to the article

Event Timeline

In part we speak here of pull request #2990.

Looking at this, I need to update the pull request to add that "another random article" link, and the timeout before refreshing automatically.

@DLynch we're wrapping up development on 6.3, if you'd like to ship this, please update pull request and move to "Needs Code Review" in the next couple weeks. Thanks!!

@JMinor sorry, I was caught up in the Editing offsite when that comment came in and I missed having the time to work on it.