Move inline HTML from VectorTemplate.php to distinct Mustache files.
Acceptance criteria
- Isolate HTML from renderVariantsComponent() to VariantList.mustache. (VectorMenu)
- Isolate HTML from renderActionsComponent() to PageActionMenu.mustache. (VectorTabs)
- Isolate HTML from renderPersonalComponent() to UserMenu.mustache. (PersonalMenu)
- Add QA steps
QA
Visit 2 random pages on desktop site as a logged in user on https://en.wikipedia.beta.wmflabs.org/
- Verify footer contains " This page was last edited..."
- Verify footer contains "Text is available under the Creative Commons Attribution-ShareAlike License...".
- Verify footer contains a mobile view link
- Verify sidebar contains interaction, tools, print/export and languages
- verify "move" is available in "more" menu
- verify search shows autocomplete results
- Verify variant drop down menu shows on https://zh.wikipedia.beta.wmflabs.org/wiki/%E9%A6%96%E9%A1%B5 to right of discussion tab.
- Verify Echo notifications shows up in top right
- Verify ULS displays when clicking on language cog on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_language_test_page
- Verify "add link" displays under list of languages on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_language_test_page
- logout and verify UI is more or less the same with the exception of the personal menu in the top right.
QA Results
AC | Status | Details |
---|---|---|
1 | ✅ | T240062#5841639 |
2 | ✅ | T240062#5841639 |
3 | ✅ | T240062#5841639 |
4 | ✅ | T240062#5841639 |
5 | ✅ | T240062#5841639 |
6 | ✅ | T240062#5841639 |
7 | ✅ | T240062#5841639 |
8 | ❓ | T240062#5841639 |
9 | ✅ | T240062#5841639 |
10 | ✅ | T240062#5841639 |
11 | ✅ | T240062#5841639 |