inventaire / inventaire-client

webapp coupled to the inventaire server :books:
https://inventaire.io
47 stars 16 forks source link

Improve invalid format error in editor #462

Open jum-s opened 7 months ago

jum-s commented 7 months ago

When entering an invalid value, error is rather scarce:

2023-12-18_17-12

Some property value format can be confusing, such as P268 (BNF id): is a valid id 13516296h or cb13516296h ?

User experience could be improved by giving some information about what is valid format possibility. This could be done, for example, by pulling value of format as a regular expression on Wikidata property page and display it in the error message.

Another way could be to add a valid placeholder in text field

Related issue: #395