[MGNLUI-4871] Show when validator fails in link field Created: 04/Dec/18  Updated: 25/Oct/23

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.0
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Pierre Sandrin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: ux
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 6.0


Attachments: Zip Archive MimeTypeValidatorClasses.zip     File dialog.yaml     JPEG File not-ok.jpg     JPEG File ok.jpg    
Issue Links:
Relates
relates to MGNLUI-6390 allowedMimeTypePattern property doesn... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

When a (custom) validator is added to a link field and the field value is not valid, the UI does not show it. Only when you hover on the field a tooltip appears.

This leads to the situation that the editor cannot save the form but does not know where the problem is. (Which field fails)

If a validator fails on a text field, a red border is indicating that the field not valid. This should also work for link fields.

I also attached our custom validator (MimeTypeValidator) and the dialog definition of the respective field.


Generated at Mon Feb 12 09:20:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.