Background
We would like to set different defaults for the page tools menu
Acceptance criteria
- Logged out users will not have the ability to pin the page tools open (Pinnable header should be hidden)
- Logged out users will see the page tools menu as default dropdown
- Logged-in users will see the page tools menu as default pinned
- Make pinning/unpinning behavior persistent for logged-in users
- Cumulative layout shift and last visual change metrics should not be affected by this change (e.g. we should not rely on JS to render the page tools into the correct position on page load)
QA
Pinned/Unpinned state persists while logged-in
- Login and visit https://en.wikipedia.beta.wmflabs.org/wiki/Dog?vectorpagetools=1
- Verify that page tools is visible in the right sidebar
- Click the "hide" button in page tools
- Verify that the page tools moves to the page toolbar
- Refresh the page
- Verify that the page tools remains in the page toolbar
- Toggle the page tools to make the menu visible and click the "move to sidebar" button
- Verify that the page tools moves to the right sidebar
- Refresh the page
- Verify that page tools remains in the right sidebar
Page tools is in the page toolbar when anonymous and is not pinnable
- Logout and visit https://en.wikipedia.beta.wmflabs.org/wiki/Dog?vectorpagetools=1
- Verify that page tools is visible in the page toolbar
- Toggle the page tools to make the menu visible and verify that the "move to sidebar" button is not visible
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T322051#8476711 |
2 | ✅ | T322051#8476711 |
3 | ✅ | T322051#8476711 |
4 | ✅ | T322051#8476711 |
5 | ✅ | T322051#8476711 |
6 | ✅ | T322051#8476711 |
7 | ✅ | T322051#8476711 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T322051#8476713 |
2 | ✅ | T322051#8476713 |
3 | ✅ | T322051#8476713 |
4 | ✅ | T322051#8476713 |
5 | ✅ | T322051#8476713 |
6 | ✅ | T322051#8476713 |
7 | ✅ | T322051#8476713 |