== User story
As an experienced editor, I would like the ability to reach the history of an article quicker, so that I can monitor the changes made to the article.
== Design
The history icon will appear in the toolbar for AMC users. This is (hopefully) a comprehensive overview of possible toolbar states:
| | default | +download | +map gadget | +download, +map gadget | user page
| AMC off | {F28247508} {F28247511} | {F28247513} {F28247515} | {F28247533} {F28247535} | {F28247539} {F28247543} | {F28247547} {F28247549}
| AMC on | {F28338012} {F28247553} | {F28338015} {F28338017} | {F28338021} {F28338023} | {F28338025} {F28338027} | {F28338031} {F28247572}
== Future design considerations
These ideas aren't fully flushed out, but there are a few things we may want to aim for in the future:
- the ability to specify primary/secondary icons, so that more important actions don't get displaced by less important ones
- the ability to specify the sequence of the first and last item in the toolbar, such that we can always know that Languages shows up first, and Edit shows up last (not counting the "More" action).
- the ability to add labels next to icons for larger screens
- the ability to do something special with the languages icon, e.g. include a label even on smaller screens
| toolbar system
| {F28253790}
| special languages treatment
| {F28253795}
== Acceptance criteria
[] Add history link to toolbar of pages in all namespaces where History exists (when user is in AMC mode)
[] Clicking history will navigate to the mobile version of the history page
[] If a page does not have a history page, do not display history icon
[] In AMC mode the three left-most icons should always be: edit, history, watch (in that order, with edit being the furthest left)
[] In non-AMC mode the two left-most icons should always be: edit, watch (in that order, with edit being the furthest left)
[] The history link should be feature flagged a la wgMinervaTalkAtTop - it should be possible to turn it on and off in AMC mode.
[] There should be no visible changes to non-AMC mode (at least for now) to avoid problems with cached HTML.
= QA
[] Test on AMC (mobile) (with map gadget on and off)
[] Test on AMC Tablet (with map gadget on and off)
[] Test on non-AMC tablet (with map gadget on and off)
[] Test on cached HTML (mobile) (with map gadget on and off)
[] Test on cached HTML tablet (with map gadget on and off)
= Sign off steps
[] Did we accrue any tech debt here that we need to pay off? If so create a card to make sure this gets addressed.