In Minerva, IndexPager pages e.g. Special:Contributions and the history page show simplified rows which when clicked take you to the diff page
To support skinning the page in this way we need an adjustment to the HTML
Acceptance criteria
- It should be possible to click an entire row to get to the diff.
- In Vector no visual change should occur. The new element will be hidden by default. Styling should occur via a skinStyle defined on the mediawiki.pager.styles module.
Developer notes
See T298639 for prior art to how to do this without impacting Vector skin.
The link can be achieved by adding a diff link to the end of each row. In Minerva the link will be utilized using:
.mw-changelist-diff-link { position: absolute; top: 0; right: 0; left: 0; bottom: 0; color: transparent; }
the link can be added to the element returned by ContribsPager::formatRow
https://gerrit.wikimedia.org/g/mediawiki/core/+/445cffb5e71e8ec896eddf303fc5a14d347dbac0/includes/specials/pagers/ContribsPager.php#866
The link can be created like so:
$ret .= $linkRenderer->makeKnownLink( $this->getTitle(), 'View diff', [], [ 'diff' => $revRecord->getId() ] );
