Last modified: 2014-09-18 21:15:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58363, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56363 - VForm: [[Special:ChangeEmail]] form should be rewritten to use HTMLForm with vform styling and prettier error messages
VForm: [[Special:ChangeEmail]] form should be rewritten to use HTMLForm with ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
MediaWiki UI (Other open bugs)
1.22.0
All All
: Normal minor (vote)
: ---
Assigned To: Sam Smith
: design, easy
: 70426 (view as bug list)
Depends on:
Blocks: 70913
  Show dependency treegraph
 
Reported: 2013-10-30 06:35 UTC by spage
Modified: 2014-09-18 21:15 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-10-30 06:35:44 UTC
Visit http://en.wikipedia.beta.wmflabs.org/wiki/Special:ChangeEmail , login, then enter a valid e-mail address and an invalid password and submit.

You get a plain red error warning.  You should get a nice pink box. The fix is easy, change  <p class="error"> to <p class="errorbox"> in its error() function.

There's more that could be fixed on this form.

For grins, enter valid/invalid e-mail... you get weird green and pink client-side validation "strips" (and the browser's own type="email" HTML5 validation warning when you submit).

It should use the mw-ui-vform compact layout style, though we don't yet have the CSS for the Agora invalid form field styling. It doesn't seem to use HTMLForm at all, building its own form out of table elements.

Improving this form could be a nice OPW job.
Comment 1 Theopolisme 2013-11-23 04:01:34 UTC
(In reply to comment #0)

> There's more that could be fixed on this form.
> For grins, enter valid/invalid e-mail... you get weird green and pink
> client-side validation "strips" (and the browser's own type="email" HTML5
> validation warning when you submit).
At least the duplicate warnings have been fixed, see https://bugzilla.wikimedia.org/show_bug.cgi?id=40909
Comment 2 Gerrit Notification Bot 2014-03-29 20:17:33 UTC
Change 121975 had a related patch set uploaded by Ganeshaditya1:
(Bug 56363) ChangeEmail special page rewritten to use vforms.

https://gerrit.wikimedia.org/r/121975
Comment 3 Jon 2014-09-04 12:04:20 UTC
So to summarise this bug:
* Add mw-ui-vform class to form with id mw-changeemail-form
* Render errors and success messages inside the form with the errorbox class as outlined in MediaWiki UI / VForm section.

Is the patch still being worked on?
Comment 4 Jon 2014-09-05 08:27:22 UTC
*** Bug 70426 has been marked as a duplicate of this bug. ***
Comment 5 Jon 2014-09-05 08:28:19 UTC
Should we also remove the cancel button as part of this? It seems strange to have a cancel button in this context.
Comment 6 Kunal Mehta (Legoktm) 2014-09-05 08:49:58 UTC
Change-Id: I629cee4264fad6cde98495c0e8daffe5ea245b48 converted Special:ChangeEmail to use HTMLForm, now it just needs updating to use vform styling which should be much easier now.
Comment 7 Jared Zimmerman (WMF) 2014-09-05 21:57:37 UTC
Cancel just returns an error for me now anyway.
Comment 8 Matthew Flaschen 2014-09-09 00:52:30 UTC
(In reply to Jared Zimmerman (WMF) from comment #7)
> Cancel just returns an error for me now anyway.

On what wiki?  It works for me on production English Wikipedia as well as Beta Labs English Wikipedia.
Comment 9 Matthew Flaschen 2014-09-09 00:53:10 UTC
I agree a cancel button is not really useful here, but in the meantime we should not be showing errors for it.
Comment 10 Jon 2014-09-09 13:54:29 UTC
... or we could just remove the cancel button.
Comment 11 Bartosz Dziewoński 2014-09-09 14:01:19 UTC
I like the "It causes problems? Remove it!" approach, we should do this more often. I wonder which extensions cause the most trouble, maybe we should remove them? :>
Comment 12 Matthew Flaschen 2014-09-09 22:40:21 UTC
Even if we do remove it, I would still like to know what the error is.
Comment 13 Jared Zimmerman (WMF) 2014-09-10 06:03:11 UTC
When I hit cancel I get the error "Enter a valid email address" which seems to imply its doing form validation, on cancel, which is very odd.
Comment 14 Matthew Flaschen 2014-09-10 19:21:32 UTC
(In reply to Jared Zimmerman (WMF) from comment #13)
> When I hit cancel I get the error "Enter a valid email address" which seems
> to imply its doing form validation, on cancel, which is very odd.

Confirmed.  This is present in production too.

I think the reason I couldn't reproduce it before is that it only happens after you've blurred the email field.  You get one chance to type a valid email, then on blur it starts warning you if it's not valid.

As you say, it validates it on cancel too, which is a bug (filed as bug 70676).
Comment 15 Gerrit Notification Bot 2014-09-18 19:58:23 UTC
Change 161339 had a related patch set uploaded by Prtksxna:
SpecialChangeEmail: Remove cancel button

https://gerrit.wikimedia.org/r/161339
Comment 16 Gerrit Notification Bot 2014-09-18 19:58:28 UTC
Change 161340 had a related patch set uploaded by Prtksxna:
SpecialChangeEmail: Use vform and remove wrapper

https://gerrit.wikimedia.org/r/161340
Comment 17 Gerrit Notification Bot 2014-09-18 20:11:25 UTC
Change 161339 merged by jenkins-bot:
SpecialChangeEmail: Remove cancel button

https://gerrit.wikimedia.org/r/161339
Comment 18 Gerrit Notification Bot 2014-09-18 20:11:41 UTC
Change 161340 merged by jenkins-bot:
SpecialChangeEmail: Use vform and remove wrapper

https://gerrit.wikimedia.org/r/161340
Comment 19 Gerrit Notification Bot 2014-09-18 21:15:23 UTC
Change 121975 abandoned by Jdlrobson:
ChangeEmail special page rewritten to use vforms.

Reason:
Prateek just resolved the bug. Thanks for the help getting us there Ganeshaditya1! :)

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links