Lartsch / FediAct

Chrome/Firefox extension that simplifies interactions on other Mastodon instances than your own.
MIT License
459 stars 15 forks source link

Warn if the home server domain is formatted incorrectly #52

Open player-03 opened 1 year ago

player-03 commented 1 year ago

I included the "https://" when copying my home domain into the box, and FediAct accepted it without complaint. However, it still didn't load on any pages, and gave no indication as to why. I eventually fixed the problem via trial and error, but a warning message would have helped. Something like Can't find server at https://https://home.domain/ would have tipped me off.

In retrospect, I realize that https is the protocol and not the domain, and FediAct only asked for the domain. However, in my experience it's usually fine to include it. Other apps will either accept it, filter it out, or let me know what's wrong.

Lartsch commented 1 year ago

Hey, yes that should be improved. Many less technical users might have the same problem. Initially I thought the wording "domain" + the placeholder value of the input field would be sufficient to understand but apparently that is not the case.

player-03 commented 1 year ago

I'd say the instructions are worded correctly, it's just that users often won't pay close attention to wording.

One thing I have seen done is putting "https://" just in front of the text field. This is a concise and intuitive way to let users know you don't need that part, and you only want the part that comes after. (As a bonus, it also helps less tech savvy users who aren't familiar with the word "domain.")

Freeplayg commented 1 year ago

One thing I have seen done is putting "https://" just in front of the text field

That would be good, I could work on adding that to the popup

Lartsch commented 1 year ago

Alright, merged the pull request by @Freeplayg :) I'll leave this open until I have moved the regex check for domain format to the popup script (it already exists, but in the content script). Am on vacation currently and thesis is due soon so not that active right now