Univention Bugzilla – Bug 54467
mailPrimaryAddress widget should suggest available mail domains
Last modified: 2022-06-08 17:47:50 CEST
A new widget for the users/user mailPrimaryAddress should suggest all available mail domains during typing. Currently one gets a error message after saving the object when the specified mail/domain object doesn't exists.
Created attachment 10920 [details] Screenshot of possible variants
What about creating a text entry field for the local part and a drop-down besides it with only the available domains? (Unless the syntax was changed to "string".)
(In reply to Daniel Tröder from comment #2) > What about creating a text entry field for the local part and a drop-down > besides it with only the available domains? (Unless the syntax was changed > to "string".) Isn't that what you see right in the screenshot? We decided for the left variant as it is much more simple in the implementation, it looks better and it's OOTB copy&pasteable. So, after typing in the @ all mail domains are suggested as completion.
(In reply to Florian Best from comment #3) > (In reply to Daniel Tröder from comment #2) > > What about creating a text entry field for the local part and a drop-down > > besides it with only the available domains? (Unless the syntax was changed > > to "string".) > > Isn't that what you see right in the screenshot? > We decided for the left variant as it is much more simple in the > implementation, it looks better and it's OOTB copy&pasteable. > So, after typing in the @ all mail domains are suggested as completion. I was thinking that it does still allow to type in a wrong domain. But from a UX point of view the completion solution is much better :) And the case where a user does type / copy&paste in a wrong domain should be seldom and will still be caught by UDM with a helpful error message. ... so forget my previous post - the completion solution is best ;)
(In reply to Daniel Tröder from comment #4) > I was thinking that it does still allow to type in a wrong domain. It does still allow to type a wrong domain but you will get the same error message as before when trying to save the object then.
*** Bug 32142 has been marked as a duplicate of this bug. ***
A new widget which suggests the available mail domains during typing has been added (Thanks to Johannes Kaiser). The syntax class for mailPrimaryAddress has been adjusted to map the widget to the new MailBox widget, do validation like before, display the widget also in the search field when selecting to search for mailPrimaryAddress. univention-web.yaml fed0111b6608 | YAML Bug #54467 univention-web (4.0.2-50) 08f7e728d0e8 | Bug #54467: add umc.widgets.MailBox univention-directory-manager-modules.yaml fed0111b6608 | YAML Bug #54467 univention-directory-manager-modules (15.0.11-44) 6fa7fd83d5ad | Bug #54467: add widget for users/user:mailPrimaryAddress
YAML: OK Code review: OK Manual tests: OK
<https://errata.software-univention.de/#/?erratum=5.0x334> <https://errata.software-univention.de/#/?erratum=5.0x335>