Page MenuHomePhabricator

Error message should display when content in search field is in an unacceptable format
Closed, ResolvedPublic

Description

As per the mockup, it's confusing if there is no error message to direct a contributor to input their website correctly.

errormessage.png (732×442 px, 93 KB)

Event Timeline

Change 523170 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Add validation feedback to external link

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

As implemented:

image.png (240×456 px, 20 KB)

Edit: Copy changed to less jargon-y "Enter a full URL, ..." at @matmarex's suggestions

Change 523170 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Add validation feedback to external link

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

"Enter a full URL, e.g. https://example.org"

Esanders added a subscriber: ppelberg.

Styling the input text as red would be an upstream change in OOUI, and would effect many more use cases, as this is a standardised widget.

We've decided to leave as is for now, and @iamjessklein may file an upstream task against OOUI to discuss this.

ppelberg claimed this task.