coracle icon indicating copy to clipboard operation
coracle copied to clipboard

Profile display mode in the feed

Open dtonon opened this issue 7 months ago • 1 comments

The current profile visualization in the feed is the following one:

image

This proposal aims to improve it with these rules:

  • Show <display_name> (<name>) if both are present, without the @ prefix for the name;
  • Show just <name>, if display_name is missing, or equal to the name;
  • Show the shortened npub <npub1xxx...12345> (and hide it below) if name is missing, to suggest to the user that name is more important than display_name and should be filled;
  • Below the first line show the shortened npub <npub1xxx...12345>, as now;
  • If the NIP-05 points to the root (_@<domain.com>) or corresponds to the name (<name>@<domain.com>), excluding a list of well-known generic providers, show only the <@domain.com> before the npub; this ensures that only domains that might actually be useful in identifying the user are displayed, moving the full NIP-05 into the profile and presenting it as a useful element in a user search.

I would suggest to also display the mentions without the @ in the text, so the username is not confused with the eventually matching domain, and it is coherent with the profile visualization. It's true that the @ character is a important hint on how to activate the inline search, but currently it is also quite well known. Furthermore we should make clear that the name is not a classic centralized username.

This view sums up the different cases:

image

dtonon avatar Jul 19 '24 13:07 dtonon