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.
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