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

Improved message when place name not matched. #129

Open Mike-Heneghan opened 4 years ago

Mike-Heneghan commented 4 years ago

At the moment if a user searches for a placename that is not matched they get the standard "Sorry, ALISS is not available in your postcode." This could be quite misleading as it is very likely ALISS is available in their postcode but the name match wasn't successful.

It might be worth catching when a placename is searched but not found and returning a custom error page?

Something to the effect of:

Sorry, it looks like we couldn't match your searched place name to a postcode.

We're always trying to make it easier for users to find services but it looks like we haven't added your place name yet.

Please try again with a different place name or a postcode:

Mike-Heneghan commented 4 years ago

Noticed that the current redirect with errors isn't quite right.

When there is a valid GB postcode which isn't in Scotland we get:

Screenshot 2019-12-06 at 14 50 36

The error states it's in the wrong format although it is not.

When there is a search with random letters and a number:

Screenshot 2019-12-06 at 14 52 03

Which is the result we would expect.

When there is a search of only letters "sdasdgsdfgdgsdfg":

Screenshot 2019-12-06 at 14 52 17
Mike-Heneghan commented 4 years ago

The desired behaviour would be:

Invalid Postcode (random text with letters and numbers):

Doesn't appear to be a valid postcode message.

Valid postcode without a match (SW1V 1JT):

Sorry, ALISS is not available in your postcode. message

Invalid postcode, invalid place name i.e. just text:

Sorry, couldn't be matched with a postcode i.e.

Screenshot 2019-12-06 at 14 55 40