Page MenuHomePhabricator

Implement baseline MMV beta viewer design
Open, HighPublic5 Estimated Story Points

Description

Goals

Implement the baseline mobile image viewer per the Figma spec. The viewer is a Vue 3 / Codex overlay that replaces MMV on mobile (Minerva).

Figma Link

image.png (1×1 px, 2 MB)
image.png (1×794 px, 905 KB)

Acceptance Criteria
  • Basic layout is in place (header with title + close, full-bleed image, caption + details link, bottom nav bar with prev/next + counter). Progressive image loading and prefetch are working.
  • Keyboard navigation — Left/Right arrow keys to navigate images, Escape to close the viewer.
  • Author line — Display the image author/attribution below the title in the header. One line, truncated with ellipsis. (Note: we need to add a new API call to get this info.)
  • Tap-to-toggle chrome — Single tap on the image area hides all UI chrome (header, caption, nav bar) except the close button. A second tap anywhere restores the chrome. The close button must remain visible at all times.
  • Medium-sized nav buttons — The prev/next buttons in the nav bar should use Codex size="medium".
  • Button styling — Nav and close buttons should use the Codex "normal neutral" weight. Current custom dark-bg overrides (border, hover, active states) should be reviewed against this.

Notes:

  • Use background-base-interactive for the background
  • Image is fully visible and full bleed. Location is equidistant from header and footer elements.
  • description is underneath the image if there is one. Two lines then truncate. Uses the caption style. Links are primary progressive
  • Licensing information links to commons
  • move the next and previous arrows to the bottom alongside the pagination so they don't cover the images
  • Medium button for pagination
  • use the normal neutral style for buttons
  • single tap hides everything except the close affordance. Tapping anywhere again brings back the chrome
  • Title is two lines then truncate
  • Author is one line and truncate
  • MMV is always in dark mode

token list
Title: UI-text-bold with line-height x-small and text colour base
close button: medium neutral-normal
Author: caption-text color-subtle
The description and attribution link are text-color-base and caption-text sizing with primary-progressive links
The key line above the pagination buttons is border-color-muted
Background is background-color-interactive-subtle
pagination text is caption as well

Event Timeline

@egardner @SherryYang-WMF Have a look at the design spec and the Figma link and let me know if you need any clarification on any of the notes or specs.

Change #1254349 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Update layout to match T418382 mockups

https://gerrit.wikimedia.org/r/1254349

egardner renamed this task from [DESIGN] Baseline MMV beta viewer design to Baseline MMV beta viewer design.Wed, Mar 18, 4:55 PM
egardner renamed this task from Baseline MMV beta viewer design to Implement baseline MMV beta viewer design.
egardner updated the task description. (Show Details)
egardner set the point value for this task to 5.Wed, Mar 18, 5:03 PM

token list
Title: UI-text-bold with line-height x-small and text colour base
close button: medium neutral-normal
Author: caption-text color-subtle
The description and attribution link are text-color-base and caption-text sizing with primary-progressive links
The key line above the pagination buttons is border-color-muted
Background is background-color-interactive-subtle
pagination text is caption as well

I think that's everything! Let me know if any other questions come up!

Change #1264914 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MultimediaViewer@master] Extract mmv.common ResourceLoader module for shared infrastructure

https://gerrit.wikimedia.org/r/1264914

Change #1264914 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Extract mmv.common ResourceLoader module for shared infrastructure

https://gerrit.wikimedia.org/r/1264914

Change #1266602 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Toggle UI chrome visibility on image tap

https://gerrit.wikimedia.org/r/1266602

Change #1267209 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Add focus trap

https://gerrit.wikimedia.org/r/1267209

Change #1267107 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Add directional slide transitions between images

https://gerrit.wikimedia.org/r/1267107

Test wiki created on Patch demo by EGardner (WMF) using patch(es) linked to this task:
https://af2dc58524.catalyst.wmcloud.org/w/

Change #1267950 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Exclude close button from controls fade-out

https://gerrit.wikimedia.org/r/1267950

Change #1254349 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Implement the new design and fetch more metadata

https://gerrit.wikimedia.org/r/1254349

Change #1266602 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] MMV Beta Viewer: Toggle UI chrome visibility on image tap

https://gerrit.wikimedia.org/r/1266602