subconsciousnetwork / subconscious

Apache License 2.0
9 stars 0 forks source link

did expansion #806

Open justinabrahms opened 1 year ago

justinabrahms commented 1 year ago

If I put a DID into a note, I want it to expand into a little user card so I can click the follow button on them

bfollington commented 1 year ago

Might be worth considering a common iOS pattern here, we can detect if there's a DID in the clipboard and offer to follow it without even having the user paste it.

The proposed idea, creating a card within a note, has a circular dependency because we won't be able to produce the metadata for a profile without first resolving the user (which is what happens in the BG when you follow them anyway). So, if we wait to produce a card it may take 10s of seconds to render it, just to click follow next to it.

We might benefit from splitting this issue into two components:

justinabrahms commented 1 year ago

So two parts editing and viewing.

For the view experience, I'd love to see a user profile card with a profile photo, their pet name or did key or something and a follow button.

For the editing experience, I'd love the did clipboard thing you mentioned or allow me to @ any of my petnames.

cdata commented 1 year ago

One thing that is worth considering: it may only make sense to expand the DID if it corresponds to one or more entries in the sphere's address book, and the entry has been resolved to a sphere version. My reasoning here is:

OTOH, I could see a good case for a DID always being link-ified (assuming it is a method we know how to handle).