Mike-Heneghan / ALISS

ALISS (A Local Information System for Scotland) is a service to help you find help and support close to you when you need it most.
https://aliss.org
0 stars 0 forks source link

Add client side validation for adding service areas #99

Closed Mike-Heneghan closed 4 years ago

Mike-Heneghan commented 4 years ago

Currently, some users are adding service areas which are already encompassed for example adding Scotland and then regional service areas.

It would be relatively easy to add simple client-side validation to nudge users to either use regional service areas or national ones but not both.

Mike-Heneghan commented 4 years ago

Made slightly more complex as the Service Area field is abstracted out. Due to the complexity of trying to update the generic field and mutli-select might be better to start by creating a service-area specific code to make it a bit more explicit then optimise later.

Mike-Heneghan commented 4 years ago

Placeholder Message to avoid resizing:

Screenshot 2019-08-22 at 09 27 24

Once the area is clicked on a message appears to select either national or regional:

Screenshot 2019-08-22 at 09 27 32

If only national is selected then regional options are hidden:

Screenshot 2019-08-22 at 09 28 05

If regional option are selected then national are hidden:

Screenshot 2019-08-22 at 09 28 16
Mike-Heneghan commented 4 years ago

Merged into master