Page MenuHomePhabricator

Create a base Dialog component
Closed, ResolvedPublic

Description

As an user, I would like a dialogue component to be available within the Base components library so that I can use it while developing new screens

The component should:

  • The Dialog should use the new "teleport" feature available in Vue 3
  • The dialog should be made in a way to ensure keyboard and mouse does NOT affect the background (so scrolling should not scroll the page)
  • The Dialog should allow the user to define if the dialog should close or NOT if clicked outside
  • The dialog should have the following props/emit title, description, @success, @decline

image.png (800×1 px, 63 KB)

Event Timeline

JKieserman changed the task status from Open to In Progress.Feb 10 2022, 3:59 PM
JKieserman claimed this task.

Change 762516 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Add dialog component and use a dialog when abandoning function edits

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

Change 762516 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Add dialog component and use a dialog when abandoning function edits

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

Change 762516 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add dialog component and use a dialog when abandoning function edits

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

Design review notes

UI

  • White overlay is missing.
  • Buttons look weird? They're not matching the spec.
  • Font type in dialog isn't matching the spec.
  • Dialog in the design file has been updated to not have an 'X' in the top right corner (this matches codex)
  • Dialog should be centered in the white overlay

UX

  • Dialog should be triggered if the user edits anything in the object and then clicks anything that would navigate them away from edit mode such as 1) anywhere in the left sidebar 2) clicks 'Read' tab 3) clicks 'View history' tab 3) anywhere in the top right bar (e.g. Talk, Contributions, etc..) 4) If I search a term in the search box and click away from the page