Page MenuHomePhabricator

[MEX] M3 - add dialog to edit empty statement
Closed, ResolvedPublic

Description

After a string property has been selected in T401402, show an initially empty form for editing a new statement:

Screenshot 2025-08-28 at 17.39.41.png (1×2 px, 188 KB)

Figma file here: https://www.figma.com/design/RtMDwH7sMF5IPRJvyyZPv4/Mobile-editing-experience?node-id=2134-27544&t=C9HTDU2XkF8Mdz6A-1

Acceptance Criteria

  • An empty form for a string datatype is created
  • The add statement form matches the figma design but is not pixel perfect
  • Once the user arrives to the form, the initial input form - codex component Lookup - is already active, but the suggestiondropdown only opens once the user starts typing (as in desktop)
  • Once the user selects or types in a valid entry, the second field appears and is already active, but once again the dropdown only opens when the user starts typing
  • both lookups can show up to 4 suggestions
  • the lookups dropdown type is "initial suggestions" (component option) and the menu items include a description (also component option)
  • once both values are inserted correctly the publish button becomes active
  • behavior for what happesn when user clicks publish is defined at [MEX] M3.1.2 - Add publish functionality to edit forms T402620
  • the back arrow on top takes user to previous page

Event Timeline

Change #1179973 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Add 'edit statement' view to wbui2025

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

Change #1179974 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] [DNM] Made edit view visible in statement view

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

Change #1179974 abandoned by Arthur taylor:

[mediawiki/extensions/Wikibase@master] [DNM] Made edit view visible in statement view

Reason:

Now included in I6a6a696442383

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

Change #1179973 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add 'edit statement' view to wbui2025

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

Note: there are two different designs when opening the edit statement screen

  • When adding a new statement, the property is changeable and listed outside of the header
  • When editing an existing statement, the property cannot be changed and is listed inside the header
  • The "add statement" and "add identifier" buttons open on the main screen
  • Property suggester does not load

I'm assuming these will be addressed in T402447: [MEX] M3.1.1 - create basic edit statement form for simple text inputs so I'll leave this here for now