ucphhpc / migrid-sync

MiGrid workspace where master branch is kept strictly in sync with SF upstream svn repo. Any development or experiments should use a branch. You probably want to fork your own clone or work e.g. on the edge branch if you wish to contribute.
GNU General Public License v2.0
3 stars 3 forks source link

Suggested improvement: Form fields validation or info signs with input input requirements for some fields #67

Open aputtu opened 3 weeks ago

aputtu commented 3 weeks ago

In internal ticket #33041 we got a bug report pointing out that the requirements where not documented.

When filling out form in Background Data Transfers, we have fields that has information on input requirements. However, the requirements are only shown when hovering the mouse over the field.

Providing info sign next to input field with the same information that is shown when hovering mouse is one improvement. Adding a input validation - e.g. show a warning when requirements is not met - while typing in the field, another usability suggestion.

This stems from an isolated bug report, but the same logic likely applies to other form fields across MiGrid.

The form field in question is likely this one:
https://github.com/ucphhpc/migrid-sync/blob/c690196369e8766ae198186930ce87f6c8a19f84/mig/shared/functionality/datatransfer.py#L560

jonasbardino commented 3 weeks ago

Thanks for forwarding it and elaborating, @aputtu.

We could probably add html5 input validators to more fields and add such info icons reusing the title text. We already do such validation e.g. on the external user sign up forms and have similar info icons on the gpdman create project form fields (SIF).

It's low priority and our development resources are currently rather limited but PRs are always welcome :)