Page MenuHomePhabricator

Homepage: update "posted on" timestamp client-side when overlay is opened
Open, NormalPublic

Description

Once T222833: Mobile Homepage: Show module details in a mobile overlay is implemented, a somewhat jarring user experience occurs:

  1. On mobile, post a question via the homepage or help module
  2. You'll see "Posted 2 seconds ago" or something like that when you close the question poster dialog
  3. Go back to the main landing page for the homepage
  4. Tap the mentor or help module again
  5. You'll still see "Posted 2 seconds ago" next to your question although it's probably more like 30 seconds ago or 1 minute ago, etc

The proposal would be to update the "Posted on" timestamp via clientside JS when the user taps the overlay. For our reference, there is some prior art in MobileFrontend which updates the time elapsed since a user registered.

Event Timeline

kostajh created this task.Jun 17 2019, 2:47 PM
Restricted Application added a project: Growth-Team. · View Herald TranscriptJun 17 2019, 2:47 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kostajh added a subscriber: MMiller_WMF.

@MMiller_WMF I'll leave this for you to triage, let me know if you have questions!

MMiller_WMF renamed this task from Update "posted on" timestamp client-side when overlay is opened to Homepage: update "posted on" timestamp client-side when overlay is opened.Jun 17 2019, 7:01 PM
MMiller_WMF added a project: Growth-Team.
MMiller_WMF added subscribers: Catrope, SBisson, Etonkovidova and 4 others.

@kostajh -- if the user continues to see "posted 2 seconds" ago even when a minute has gone by, how long does it take to update?

@kostajh -- if the user continues to see "posted 2 seconds" ago even when a minute has gone by, how long does it take to update?

Reloading the homepage will also result in the HTML getting updated. When you open/close/open the overlay, a full page reload doesn't happen, so the HTML remains stale.

nray moved this task from Needs triage to Triaged on the Mobile board.Jul 1 2019, 5:53 PM

@kostajh, a question that came up in Triage is why this marked only for Mobile?

We are going to move this task to Upcoming to discuss priority in Grooming.

@kostajh, a question that came up in Triage is why this marked only for Mobile?
We are going to move this task to Upcoming to discuss priority in Grooming.

It's not only Mobile issue - if Homepage desk is not reloaded, the timestamp wouldn't be updated. For example, a user posts a question to Help desk, and then post a question to Mentor - the first timestamp won't be updated.

The non-updated timestamps are somewhat more noticeable on mobile- the additional step for expanding the Help/Mentorship modules implies that an overlay should be updated and this is not happening.

kostajh added a comment.EditedMon, Aug 12, 11:31 AM

@kostajh, a question that came up in Triage is why this marked only for Mobile?

For the reasons I wrote in T225941#5271329, but I didn't make that quite clear enough:

  1. On Desktop, post a question, you'll see "posted X seconds ago". If you reload the page a minute later, you'll see "Posted 1 minute ago", etc.
  2. On Mobile, post a question, you'll see "Posted X seconds ago", if you close then reopen the overlay, you still see "Posted X seconds ago".

In mobile, re-opening the overlay feels subjectively like it should pull in fresh data but the user does not get that experience since they see an outdated timestamp. On desktop, the user doesn't have an expectation that the "Posted X seconds ago" message should change without a reload, since little else on-wiki works that way.

Change 530837 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/extensions/GrowthExperiments@master] Update posted on timestamp when overlay is opened

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