Goal
We want to make it easy for users to include a link to the Interaction Timeline in their on-wiki discussions.
Really rough UI wireframe
On click would open:
Wikitext
Example wikitext to be copied:
Between 2017-01-01 and 2017-01-02 on test.wikipedia.org [[User:Test-apples]] ([[User talk:Test-apples|talk]] | ([[Special:Contributions/Test-apples|contribs]]) and [[User:Test-bananas]] ([[User talk:Test-bananas|talk]] | ([[Special:Contributions/Test-bananas|contribs]]) both made edits to some pages in common. You can see a chronological list of all their edits on [https://tools.wmflabs.org/interaction-timeline/?wiki=testwiki&user=Test-apples&user=Test-bananas&startDate=1483228800 the Interaction Timeline] or a table view on [https://tools.wmflabs.org/sigma/editorinteract.py?users=Test-apples&users=Test-bananas&users=&startdate=20170101&enddate=&ns=&server=testwiki the Interaction Analyser].
Wikitext + variables:
Between $1 and $2 on $3 [[User:$4]] ([[User talk:$4|talk]] | ([[Special:Contributions/T$4|contribs]]) and [[User:$5]] ([[User talk:$5|talk]] | ([[Special:Contributions/$5|contribs]]) both made edits to some pages in common. You can see a chronological list of all their edits on [https://tools.wmflabs.org/interaction-timeline/?wiki=$3&user=$4&user=$5&startDate=$1 the Interaction Timeline] or a table view on [https://tools.wmflabs.org/sigma/editorinteract.py?users=$4&users=$5&startdate=$1&enddate=$2&ns=&server=$3 the Interaction Analyser].
Acceptance criteria
- On the Interaction Timeline, when the parameters for 2 users and wiki have been entered and the Timeline displays, an unintrusive UI element should appear in the bottom right corner of the Timeline.
- It should be labeled Share these results
- On click it should open a modal
- The modal should have a description sentence: Copy & paste this wikitext to an on-wiki discussion to share these Timeline results with others:
- The modal should have a text area filled with the wikitext above
- The text area contents should be selected be default so the user can select ctrl+C or command+C to copy.
- The text area contents should be editable so users can modify it.
- The modal should be closeable. When closed the edits to the text area can be discarded
- Dates:
- If no start date is provided, use 2000-01-01
- If no end date is provided, use the current date