OpenBazaar-Client icon indicating copy to clipboard operation
OpenBazaar-Client copied to clipboard

Allow cosmetic link name in About profile page

Open hoffmabc opened this issue 9 years ago • 6 comments

As you can see a complex URL will make the link look bad. We should allow users to maybe put a pretty print name with possibly a hover over for the real URL?

image

hoffmabc avatar Jan 25 '16 16:01 hoffmabc

We'd just need to add a separate field in the API for the display name, and then add it to the template and to the settings page.

jjeffryes avatar Jan 25 '16 16:01 jjeffryes

I wonder if we can solve this with regular expressions so that only website.extension displays at all times? If we can strip out 'http://www.' and anything after the trailing slash (if one exists), then it should be as pretty as possible at that point. @hoffmabc @jjeffryes thoughts?

morebrownies avatar Feb 04 '16 17:02 morebrownies

I accidentally answered this in the Slack channel.

Yes, we could make this a bit better with Regex, we'd remove the protocol and www, and any queries, from the displayed name.

That could be done either in the model or the template.

jjeffryes avatar Feb 04 '16 20:02 jjeffryes

@jjeffryes Any updates on that?

SamPatt avatar May 25 '16 20:05 SamPatt

This is still a low-priority todo.

jjeffryes avatar May 26 '16 14:05 jjeffryes

The ideal way to do this would be to change the backend so the "pretty text" can be saved for each field.

That would require two fields for each one, one the displayed text and one the URL.

As a stretch goal it would be good to add an "Other" link, which could be used for whatever users want.

jjeffryes avatar Sep 27 '16 21:09 jjeffryes