==== Goal
**User story**: As a checkuser, I am interested in looking into a timeline of the contributions of the users and IPs under investigation so I can compare their activity and determine if they seem like the same user.
==== Mock
https://prtksxna.github.io/wmf-cu-goodplace/timeline.html
{F31662858, width=700}
The timeline is very similar in appearance to Recent changes.
==== Acceptance criteria
* Add a new tab for the Timeline
* The time displays data for all the users currently under investigations (i.e. users in the initial input form + users that were added because of further drilling down using the //Show all N users...// and //Show all N IPs...// buttons)
* Show all the contributions (edits), new page creations and log entries for the above users in reverse chronological order of time of activity (latest to oldest) for the time period for which the user has made the investigation. The changes can be found in the [cu_changes](https://github.com/wikimedia/mediawiki-extensions-CheckUser/blob/master/cu_changes.sql) table.
* There is a header for each date -- the entries are thus clubbed by the date.
* The information shown per record is as follows:
**For an edit**
```
(diff)(hist) .. Page-edited .. Timestamp .. Bytes changes .. Username (talk|contribs) .. IP address .. User-agent .. (Edit summary)
```
** If the record is for an unregistered editor, the Username does not exist and will be skipped.
** `diff` and `hist` lead to the edit diff and page history for the page edited.
** `talk` and `contribs` lead to the user's talk and contributions page.
** All the above links open in new tabs.
**For a new page creation**
```
N .. Page name .. Timestamp .. Username (talk|contribs) .. IP .. User-agent .. (Edit summary)
```
** The **N** in front of the log entry indicates a new page creation. You can see it in action on recent changes.
**For a log entry**
```
(Log) .. Timestamp .. Username (talk|contribs) <action> reset password for user "Testzzz7788" .. IP .. User-agent
(Log) .. Timestamp .. Username (talk|contribs) <action> was created .. IP .. User-agent
```
** The "Log" in front of the log entry will link to the specific log entry on Special:Log. The link opens in a new tab.
==== Notes
There will be follow up tickets for:
* Highlighting in the Timeline tab
* Filters in the Timeline tab
For reference, current CU displays the timeline view as but only for one user at a time. In the following screenshot I looked up a range in the input.
{F31662879}
Things that the older version displays but the newer one doesn't:
* User's permissions next to the username.
* Information about whether the user/IP was previously blocked.
* Link to block the user next to their username.