codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
26 stars 25 forks source link

Bug: The "Add contact" modal does not validate if a contact actually exists #415

Closed timbot1789 closed 7 months ago

timbot1789 commented 10 months ago

Currently, when you add a contact, you are required to add their web ID. However, no validation is done to see if this web ID actually exists, leading to confusing behavior.

Instead, we can make the web ID the first field input into the contact creation. Once they enter that, we can fetch the webId profile. If we get the profile, we can prepopulate the rest of the form with the data from the webId profile. If the profile fetch fails, we put an error in the form saying the web ID is invalid.

Inrupt's pod spaces has an example feature: https://podbrowser.inrupt.com/contacts/add

image