With the new feature flag FEATURE_ARTICLE_TOOLS_MENU in place (T306609) we will begin work on the new page tools feature. In T306519 we judged the toolbox to be the least risk to move. See T306519#8007940 for useful background
The scope of this ticket is moving page tools from main menu/sidebar to page tools. Note other menus are out of scope and will be handled in T317898. The intention of limiting this chnage to the page tools is to tease out any additional technical complexity we may have missed.
Prototype
https://vector-2022.web.app/Moth
This ticket is only for the move to the tools (previously named more) menu. Pinnability is tracked elsewhere
TODO
- When the feature flag is disabled there are no visual changes
- When the feature flag is enabled, the toolbox should move to the dropdown
- Existing "More options" landmark name is renamed to "Tools"
- Add PHPUnit tests for any PHP changes made as part of this work
- There is a VectorComponentPageTools class
QA steps
- Check Pixel. There should be no visual changes.
- When the menu resizes, certain actions e.g. watch, edit should come present
- When the feature flag is enabled, the more menu label changes to "Tools"
- When the feature flag is enabled, the tools will not show in the main menu but instead in the new page tools menu
- When the feature flag is enabled, the toolbox will appear in the more menu. The headings will be retained.
- When a gadget adds to the toolbox e.g. `mw.util.addPortletLink( 'p-tb', '#', 'purge' ) it should appear inside the new page tools menu. To make this work we must ensure the element #p-tb is present in the DOM.
https://phabricator.wikimedia.org/T318434#8503919
https://phabricator.wikimedia.org/T318434#8515554
https://phabricator.wikimedia.org/T318434#8529871
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T318434#8503919 |
| 2 | ✅ | T318434#8503919 |
| 3 | ✅ | T318434#8503919 |
| 4 | ✅ | T318434#8515554 |
| 5 | ✅ | T318434#8503919 |
| 6 | ✅ | T318434#8503919 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ⬜ | T318434#8529871 |
| 2 | ✅ | T318434#8529871 |
| 3 | ✅ | T318434#8529871 |
| 4 | ✅ | T318434#8529871 |
| 5 | ✅ | T318434#8529871 |
| 6 | ✅ | T318434#8529871 |














