Twin-Cities-Mutual-Aid / twin-cities-aid-distribution-locations

A webapp to coordinate aid and care in the Twin Cities.
43 stars 32 forks source link

render phone numbers and email addresses as links #230

Closed eostrom closed 4 years ago

eostrom commented 4 years ago

What

Find phone numbers and email addresses in any field where we're already finding URLs (accepting, not accepting, seeking volunteers, urgent need, notes), and render them as tel: and mailto: links.

I also split a really long and unreadable regexp into three somewhat shorter and slightly less unreadable regexps.

Why

Implements #183. Makes it easier for map viewers to contact aid sites.

Ensure the following interactions work as expected. Please test using a mobile form factor.

Check the app in the following web browsers:

eostrom commented 4 years ago

Known issues:

comeoneileen commented 4 years ago

This is awesome! Thanks for the detailed writeup - it's very clear.

I did quite a bit of testing various emails, URLs, and phone numbers tonight, and I didn't find anything that didn't work or didn't turn into the right kind of link.

eostrom commented 4 years ago

Short on time again this weekend, but what needs to happen to get this merged?

codarose commented 4 years ago

@eostrom it looks like it is failing the Travis CI build, but I'll look into this and try to get it merged ASAP! Thank you for this update!!