This task is proposed as volunteer effort.
This task is a collection of targets and features I've been thinking of. It's not an exhaustive list and will change in the future.
- Updated, smooth UX (minor details, shadow around image, zoom animation).
- Article visible (dimmed) in the background.
- Image zooming (long-requested feature: T77423).
- Jumping between images in the gallery (thumbnails at bottom of the screen, fully fleshed out history navigation - done in patch below).
- Correct identification of images to show, ex. don't show icon sized images in userboxes (<=46px?), unless the user opens that image specifically. Show small images in div.thumb elements, though.
- Updated tests, possibly replacing all Ruby-Selenium tests.
- DOM and CSS cleanup, no more positioning with JS - done in patch below.
- To avoid reinventing the wheel, evaluate existing image lightbox solutions and make use of a suitable, free licensed implementation, preferably a Vue.js component.
- Faster loading and execution time as a result of smaller code-size and Vue's focus on performant DOM generation.
- Higher conversion (acceptance) rate in the long-timer community, where MMV usage is very low.
New UI Features
- Zooming with mousewheel and UP-DOWN, PLUS-MINUS keys.
- Opening-closing animation zooms between the thumbnail and the full-sized image (like medium.com).
- Fullscreen with 'F' key.
- Close viewer when clicking on article.
- Panning image with drag-n-drop (optional, some lightbox implementations support it out-of-the-box). Useful if the metadata overlays the image and also to view the article behind.
Image metadata reskinned
- Image metadata has transparent background, can overlay the image.
- Gallery thumbnails at the bottom between the two metadata columns.
- Toolbar buttons above thumbnails: zoom in, out, reset, previous, next, slideshow, fullscreen.
- Buttons in bottom-right corner above metadata: share, download, settings, "Open original image", "Open metadata page".
Method to extend metadata
- With a key yet to be determined (used to be UP-DOWN which is used for zooming in many image viewers).
- Scrolling not connected to it.
- Open initially: the user can easily zoom or pan the image, if it's obscured by the metadata.
- Metadata hiding button.
- Preloading full-size images when thumbnail is scrolled on-screen.
- Preloading neighbours of viewed image.
- Use it as image viewer in Reasonator.
Many websites all around the world deliver image viewers with pleasing UX. Viewers of Wiki*edia should have a similar experience.
This story began when as a user of MMV I was frustrated by the scrollbar constantly jumping back to the top of the page, which prompted me to investigate the issue. Alongside removing the source of the issue I've made a massive cleanup of the DOM and the CSS (patch 560576) that nobody dares to review. In the process I've gained familiarity with MMV and its features that are specific to Mediawiki. This knowledge can be turned beneficial with this project.