Add time indicators to RevisionSlider
Open, NormalPublic

Description

Problem: Sometimes articles are changed a lot of times within a short time frame. In that case, people want to know easily which are the revisions that belong to that time frame, to just look at those.
While this is possible to define this in the history view, the revision slider does not offer any help about it just yet.

Solution:
On the revision slider, ever xth bar has a label indicating the date of the change. The idea is to have between 4 and 7 labels on the screen, with the most fitting subunit (Time, Day, Month, Year).

Format: For Time and Date, please use (part?) of the usual date format in media wiki. For month, use the month name, and for year, the 4-digit format ("2018").

Warning We are not 100% sure what the best parameters are. This is something we need to discuss once there is something that can be seen and felt. Please discuss the result with WMDE-Design before merging, since we might need to adapt it.

Rough mock:


Background: This is part of adding the revision slider to the revision diff page. The revision slider is a feature that adds a visualization of all revisions to the compare screen.
The revision slider was originally prototyped by the WMF Community Tech team and then handed over to the WMDE TCB team, as it is also a solution to fulfill a wish of the German Community Wishlist: https://de.wikipedia.org/wiki/Wikipedia:Umfragen/Technische_W%C3%BCnsche_2015/Artikel#Anzeige_aller_Bearbeitungskommentare_im_Diff

Lea_WMDE created this task.May 24 2016, 3:56 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptMay 24 2016, 3:56 PM
Lea_WMDE renamed this task from Add time labels to revision bars MOCK NEEDED to Add time labels to revision bars MOCK NEEDED IF REALIZED.May 24 2016, 4:58 PM
Lea_WMDE removed a project: Design.

@Danny_B thanks for looking after the tickets. However, right now we don't even know if they will ever be realized, so I think it's better to ping the design teams once we reached the stage of knowing that :)

Danny_B removed a subscriber: Danny_B.May 24 2016, 8:12 PM
Lea_WMDE moved this task from Incoming to Revision Slider on the TCB-Team board.May 26 2016, 3:43 PM
Ltrlg added a subscriber: Ltrlg.Aug 7 2016, 9:11 PM

The idea reported here was more to highlight different days, like it can be done sometimes on some calendars, where the week-end days are in a different color.

MtDu added a subscriber: MtDu.Aug 13 2017, 5:24 AM

A similar request in the problem field was reported in https://www.mediawiki.org/wiki/Topic:Uafmytgypbuj7qjg and should be evaluated if we deal with that task.

A similar request in the problem field was reported in https://www.mediawiki.org/wiki/Topic:Uafmytgypbuj7qjg […]

At that URL, see also the quick sketch I made of what a solution (just slightly different from the one stated in the task description) might look like.

CiteMe assigned this task to Lea_WMDE.May 18 2018, 2:52 AM
CiteMe changed the task status from Open to Stalled.
CiteMe added a subscriber: CiteMe.

All other decisions in this matter including another re-assignment, if she so wishes, goes to Lea. Also let anyone know with former interest know that she is now assigned. Please email me if there is anything at all you further need of me.

Lea_WMDE renamed this task from Add time labels to revision bars MOCK NEEDED IF REALIZED to Add time indicators to RevisionSlider.Aug 2 2018, 11:31 AM
Lea_WMDE changed the task status from Stalled to Open.
Lea_WMDE triaged this task as Normal priority.
Lea_WMDE updated the task description. (Show Details)
Lea_WMDE removed Lea_WMDE as the assignee of this task.Aug 2 2018, 12:33 PM

I was reading and understanding the problem statement. I have a question. Are we showing the labels on the basis of a pre-defined time frame (say, a month) or is it based on the number of contributions? From what I understand, it is based on the number of contributions within a particular time frame. Well, this will make it a much wider problem because there are articles that have more than 30 changes in a particular day. Check this for example: Revision History of Helicopter 66
So, we need to take into account the number of contributions within a time frame and that time frame can be anything. It can be a day, a couple of days, a week, a month, few months, an year.
Is there something that I am missing?
Please correct me if I am wrong somewhere.

WMDE-Fisch added a comment.EditedAug 13 2018, 12:02 PM

Are we showing the labels on the basis of a pre-defined time frame (say, a month) or is it based on the number of contributions? From what I understand, it is based on the number of contributions within a particular time frame. Well, this will make it a much wider problem because there are articles that have more than 30 changes in a particular day. Check this for example: Revision History of Helicopter 66
So, we need to take into account the number of contributions within a time frame and that time frame can be anything. It can be a day, a couple of days, a week, a month, few months, an year.

Yeah, the idea would be not to have a fixed timeframe. As you said, the revisions per time unit can vary a lot depending on the article. My rough idea here would be:

  • look at a certain set of revisions ( eg. the number of revisions that is currently visible )
  • get the delta what time has passed from the first revision to the last revision in your set
  • depending on that delta have a fixed set of applicable scales e.g.:
    • if the time between rev first and rev last is a year have a scale with maybe months
    • if the time between rev first and rev last is a day have a scale with hours
    • etc...
  • then iterate over the revisions and apply markers where the selected scale units are hit

:-)

Are we showing the labels on the basis of a pre-defined time frame (say, a month) or is it based on the number of contributions? From what I understand, it is based on the number of contributions within a particular time frame. Well, this will make it a much wider problem because there are articles that have more than 30 changes in a particular day. Check this for example: Revision History of Helicopter 66
So, we need to take into account the number of contributions within a time frame and that time frame can be anything. It can be a day, a couple of days, a week, a month, few months, an year.

Yeah, the idea would be not to have a fixed timeframe. As you said, the revisions per time unit can vary a lot depending on the article. My rough idea here would be:

  • look at a certain set of revisions ( eg. the number of revisions that is currently visible )
  • get the delta what time has passed from the first revision to the last revision in your set
  • depending on that delta have a fixed set of applicable scales e.g.:
    • if the time between rev first and rev last is a year have a scale with maybe months
    • if the time between rev first and rev last is a day have a scale with hours
    • etc...
  • then iterate over the revisions and apply markers where the selected scale units are hit

    :-)

This makes things quite clear. Thank you Christoph! :)

Instead of showing the text above the marker, what if we show it as a tooltip?

It will not work on desktop version of mobiles

It will not work on desktop version of mobiles

I don't see why it won't work. Could you please elaborate?

Most of them do not have tooltips, because hover works differently, or does not work at all.

This tooltip will not be triggered on hover. It will be shown as a "tooltip" permanently. It will not be triggered on an event such as hover etc.

Hi @wassan.anmol117 , I'm not sure how you imagine a permanent tooltip to look like. Could you elaborate or provide a quick sketch?

Hi @Charlie_WMDE, I tried but the tooltip doesn't automatically show on render. I will upload a [WIP] patch to show a basic structure.

Change 456205 had a related patch set uploaded (by Wassan.anmol; owner: Anmol Wassan):
[mediawiki/extensions/RevisionSlider@master] [WIP] Add time indicators to RevisionSlider

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

Hi @wassan.anmol117 please let me know when it has been merged so I can have a look on beta.

Sure! @Charlie_WMDE. However, you can download the patch and test it locally and let me know how can we make it better.

Hi @wassan.anmol117 I do not have my own testing environment so I can only test things that have been deployed to the test wiki.

Hi @wassan.anmol117 I do not have my own testing environment so I can only test things that have been deployed to the test wiki.

@Charlie_WMDE lets look at it together! :-)