Lartsch / FediAct

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

FediAct icon / account switching #28

Open Lartsch opened 1 year ago

Lartsch commented 1 year ago

The current solution (icon with fixed position in the bottom right of external instances) is more of a WIP and does not display correctly in some browsers, especially mobile.

Right now, it has no use other than indicating that FediAct is running and providing a link to your home instances when clicked, so it is not urgent to be updated

In the future, this will be moved into the sidebar of Mastodon. At latest once the icon can be clicked to switch accounts (see #18).

But I am not sure yet where to place it on V3 instances. Any suggestions?

Freeplayg commented 1 year ago

I'm not sure about placing it directly into an element, because it can become an issue in other fedi platforms in the future as some have different UI's the user can choose from

Freeplayg commented 1 year ago

I'm thinking of possibly a small toast modal that appears for a few seconds to show that it's running and then goes away? The account switching could possibly just go into the extension popup (and moving settings under a submenu?)

Freeplayg commented 1 year ago

I quickly made this in inspect element for the popup lol image

Lartsch commented 1 year ago

That's right, but it's a general "issue" with FediAct. The approach it uses requires quite some element identifiers to work reliable (as of now, different variants of v3 and v4 Mastodon). So at this point, I think it is neglectable that there would need to be additional identifiers for where to add the icon.

But in general, I'd also like to keep it simple.

I'm thinking about a generalized JSON template that could be added for each fediware and its versions:

FediAct would then process sites based on these generalized rules. But this will be a big update that is weeks away.

Lartsch commented 1 year ago

I'm thinking of possibly a small toast modal that appears for a few seconds to show that it's running and then goes away? The account switching could possibly just go into the extension popup (and moving settings under a submenu?)

That'd sure be elegant. It depends on the implementation of the account switching. As of now, I thought it'd be best if users can configure on an per-site basis which account should be used and in that case it would be easier to do so in the content script and update a dictionary in the local browser storage from there.

But I guess this could also be done from the popup. Haven't thought that through yet, thanks for your suggestions

Lartsch commented 1 year ago

That looks great! Hmmm... I like that approach. I will have to think about how the per-site account setting could look like if done from the popup.

Freeplayg commented 1 year ago

That looks great! Hmmm... I like that approach. I will have to think about how the per-site account setting could look like if done from the popup.

Do you mean per-site like if you're on mastodon.coffee, do actions on this account, if on mastodon.online, do it on another account? If so I'm not really sure what the point of that would be, since servers can contain many different things

Lartsch commented 1 year ago

That looks great! Hmmm... I like that approach. I will have to think about how the per-site account setting could look like if done from the popup.

Do you mean per-site like if you're on mastodon.coffee, do actions on this account, if on mastodon.online, do it on another account? If so I'm not really sure what the point of that would be, since servers can contain many different things

Yes, correct. A few users let me know that they would like this possibility.

But in the end, being able to switch accounts at all should be sufficient for the start. And I guess only some power users would benefit from a per-site setting, so I agree that, considering the effort for implementation, this is probably not worth it.

Also, it's just two clicks (popup > choose instance) to change, so even those power users could probably be satisfied.

Good input! I think we can go with the global account switcher and your proposal for the UI.

Lartsch commented 1 year ago

So we need some changes: