Page MenuHomePhabricator

[FRONTEND] Supporting Images - Implement AW editor UX
Closed, ResolvedPublic

Description

⚠️ This ticket depends on the AW image insertion flow design task. Scope is preliminary and will be updated once designs are complete.

Implement the image insertion UI in the Abstract Wikipedia editor.

Leading documentation: https://docs.google.com/document/d/1ERhZ1XF-4u9vfKYhat3typhnBzapWbcUlqfqZd2KJN0/edit?tab=t.0

Scope (subject to design):

  • [ + ] button -> add image entry point in AW editor
  • Commons filename/URL input (manual; no picker for v1)
  • Inline validation: empty, valid, invalid filename, not on Commons, unsupported file type
  • Preview: rendered image shown before publish
  • Right-aligned image block in article
  • Alt text (required) and caption (optional) fields

Out of scope: Commons media picker, full MediaViewer click behavior, video/audio

Acceptance criteria:

  • Image insertion entry point visible in AW editor [+] menu
  • Manual Commons filename input working
  • All validation error states displayed inline per design
  • Preview shows rendered image before publish
  • Right-aligned image block renders in article
  • Alt (required) and caption (optional) fields working
  • Jest unit tests covering input validation and component states

Event Timeline

DSmit-WMF triaged this task as Medium priority.
DSmit-WMF updated the task description. (Show Details)
DSmit-WMF renamed this task from [FRONTEND] Implement AW editor UX to [FRONTEND] Supporting Images - Implement AW editor UX.Apr 16 2026, 10:16 AM

If everything is implemented correctly this would not be a lot of work.

This should be the final flow:

DSmit-WMF changed the task status from Open to In Progress.Wed, May 20, 12:46 PM
DSmit-WMF claimed this task.

Change #1289952 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] WikifunctionsPFragmentImageRenderer: render <ext-wikilambda-image> to <figure>

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

Change #1289952 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Commons image support: renderer, editor integration, and frontend components

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