Add federation action hints instead of login prompts #279
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I know that I was the person that added the login prompts, but that was still a better solution than API errors.
Something similar like this for actions in FoundKey would improve usability greatly.
see also https://github.com/misskey-dev/misskey/issues/8806
The Misskey issue I linked above assumes usage of the ostatus
authorize-follow
endpoint. However as can be seen from the screenshot above, Mastodon does not seem to use this any more. Instead it just offers a URL, probably the Activitypuburl
(usingid
as fallback would be a good idea). This should be much easier to implement.I've been trying a few different things. Here is a screenshot of my current state:
What I would like to highlight about this is that the dialog assumes that you need to go to a different instance (as opposed to the dialog from Mastodon shown above). Therefore, copying the URL is the first option and highlighted. This is because:
The dialog also does not feature a sign up button because of point 2 above. In my opinion it is also unlikely that someone will randomly wander onto an instances page, click an interaction button and then want to create an account. If they really want they can close the dialog and use the "sign up" button that you can see in the background, which would be easier to reach without opening the dialog.
One thing to maybe add though is a "cancel" button next to the sign in button. Though technically you can achieve the same thing by closing the dialog normally.
First of all: This looks nice!
Like it more than my approach which was more of a carbon copy of the Mastodon one (minus good texting).
Some points though:
I agree, though I'm bad at coming up with a better title, hence the current one. No title is not really an option because the dialog component would have to be rewritten to allow that.Title has been replaced. Since there were no other suggestions, I picked one. (59a7f10fdc
)So you mean no label at all? Or just a shorter label, maybe just "URL"? (Similar problem to 1. because its using a preexisting component.)Has been rewritten without using that component, so there is no more label.Gonna do that.Done.updated screenshot
Looking good that way!