The code $skin->getSkinName() === 'vector' is often used in hooks to determine whether to take certain actions in code. Wherever this pattern exists we should also check 'vector-2022' now that Vector is 2 separate skins.
On top of this certain extensions allow disabling features on a skin basis. These should be updated.
TODO
- Patch ContentTranslation to check vector-2022 key
- Patch ProofReadPage to check vector-2022 key
- Patch WikimediaEvents (https://codesearch.wmcloud.org/deployed/?q=%3D%3D%3D%20%27vector%27&i=nope&files=&excludeFiles=&repos=)
- RelatedArticlesFooterAllowedSkins should be updated to include vector-2022 where needed.
- Fix Vector hook https://gerrit.wikimedia.org/g/mediawiki/skins/Vector/+/948f0392c94fb042c4c9deb0d69a2c98ede7b587/includes/Hooks.php#333 to use isVectorSkin
QA
- Visiting https://en.wikipedia.beta.wmflabs.org/wiki/Spain?useskin=vector-2022 as a logged in user, verify that the watchstar does not appear in the more dropdown. It should be a star outside the more dropdown.
- Visiting https://en.wikipedia.beta.wmflabs.org/wiki/Spain?useskin=vector-2022 as a logged in user and clicking user dropdown all menu items should have icons