bouncepaw / mycorrhiza

🍄📑 Filesystem and git-based wiki engine for the independent web written in Go and using Mycomarkup as its primary markup language.
https://mycorrhiza.wiki
GNU Affero General Public License v3.0
307 stars 26 forks source link

User profile #115

Open bouncepaw opened 2 years ago

bouncepaw commented 2 years ago

Currently, the concept of a user page is quite limited. What do we have? There is a link to your user hypha (usually u/<username>) in our miserable top bar. There is a button in the editor tool bar that inserts a link to that hypha. History and recent changes have such links too. That's it.

Here's how we can extend it.

I also want to use the word profile for user pages. Phrases like your profile too.

I expect everyone to agree that the ideas in this message are worth implementing. If I'm wrong, please tell me why.

bouncepaw commented 2 years ago

Another idea I have is to introduce user hyphae as a separate hypha kind, along with textual hyphae, hyphae with attachments (+ optional description) and forthcoming alias hyphae.

Additional file type with extension .mycouser can be introduced. I have no idea why would we need such a file. Drop users.json file in favor of such .mycouser files? Why? Store links to profiles on other sites? Why?

By the way, there is no such concept as hypha kind in Mycorrhiza code base. Introducing it means making a big and a pleasant refactoring.

I don't expect everyone to agree with this message. Please discuss.

handlerug commented 2 years ago

Sadly, we can't store users' passwords in .mycouser files, so we'll have to have some storage for them anyway. Otherwise, sounds like a good idea to me.

bouncepaw commented 2 years ago

Sadly, we can't store users' passwords in .mycouser files

Passwords are to blame, right? Damn these passwords. Bring back the days before they became a thing...

handlerug commented 2 years ago

a simple "username" field on edit pages when

bouncepaw commented 2 years ago

Here is a sudden advantage of storing users as hyphae in git: new users appear in history!

This is cool imho.

bouncepaw commented 2 years ago

Identicons

While checking out Syncthing, I noticed cool 5 by 5 pixel monochrome images.

IMAGE 2021-11-14 22:01:28

Many websites have similar things, but I liked this implementation more because of the lack of colors.

Turns out, this pattern is called identicon.

And so I thought, why not have them? A little SVG image beside every link to a profile, isn't it cool?

You can take a look at Syncthing's implementation of identicons, but it is of little interest.

bouncepaw commented 4 months ago

Three years later, I think I want to have user profiles as separate entities and refer to them with @this syntax. The Reddit-like u/this syntax is weird in the end tbh.