codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Generalize external links on user profile #1248

Open cellio opened 9 months ago

cellio commented 9 months ago

meta:288948

Currently, the user profile allows adding three "external" connections: web site, Discord ID, Twitter handle. We should keep Discord until we have a better chat solution, but otherwise, let's generalize this. I see two approaches we could take:

  1. The simpler one to lay out: three (two?) unlabelled links, put whatever you want there. Instead of seeing the link icon and the Twitter bird, you'd see up to three link icons with their links, plus Discord would be there.
  2. The "nicer" one, but requires more layout adjustment: the Mastodon approach of some number of editable pairs, label + value, which you can populate however you want. These won't fit in a single line like the current links do.

I am not proposing any sort of validation of these links a la Mastodon.

I'm proposing three slots because I'd like to encourage GitHub links on our production system, so that would allow you personal web site, GitHub, and some social-media site, plus Discord.

We'll need to add some explanatory text in the "Edit Profile" page for these fields, either way, so we can suggest your personal site, GitHub, or wherever else you can be contacted.