jerboa icon indicating copy to clipboard operation
jerboa copied to clipboard

Do not require login when clicking on 3 dot menu

Open tuxiqae opened this issue 3 years ago • 10 comments

When clicking on 3 dot menu of a post/comment(maybe others as well) users are introduced with the loginFirstToast toast which prevents them from copying links or other features which thos menu provides. I tried looking for the exact location where this is handled in the code but I could not find it. I would like to disable this check when clicking read-only global option (options which should not be hiddeb from anyone) I would gladly do it myself if I could find it, let me know if you want me to take xare of it.

Running Jerboa v0.0.31

tuxiqae avatar Jun 06 '23 07:06 tuxiqae

Here's where that check occurs: https://github.com/dessalines/jerboa/blob/main/app/src/main/java/com/jerboa/ui/components/common/AppBars.kt#LL296C9-L296C9

We probably want to add a "requiresAccount" field or something.

twizmwazin avatar Jun 06 '23 17:06 twizmwazin

In addition to the "please login" toasts that I had been doing, I think we should also navigate to the login page.

dessalines avatar Jun 06 '23 18:06 dessalines

In addition to the "please login" toasts that I had been doing, I think we should also navigate to the login page.

I do not agree, I would hate being redirected to the login page every time I accidentally clicked on the wrong button.

tuxiqae avatar Jun 06 '23 23:06 tuxiqae

https://github.com/dessalines/jerboa/pull/450 @dessalines @twizmwazin

tuxiqae avatar Jun 07 '23 19:06 tuxiqae

Guess we can close that? Just bear in mind that it was not tested as I do not have an Android development setup ready to use.

tuxiqae avatar Jun 07 '23 20:06 tuxiqae

Wish you would've told me that. I'm very busy so I haven't had time to manually test every one of these. I'll make sure its good before the release.

dessalines avatar Jun 07 '23 21:06 dessalines

@dessalines Don't you prefer to leave it open so you won't forget to manually test it?

tuxiqae avatar Jun 07 '23 21:06 tuxiqae

Tested on v0.0.33 and this issue appears to be fixed.

camporter avatar Jun 11 '23 19:06 camporter

I did too and it's actually kinda worse, now the new menu allows a couple of actions which require being signed-in (reporting, blocking), we need to take care of that

tuxiqae avatar Jun 11 '23 19:06 tuxiqae

Original issue is fixed, we can make a new issue for the resulting issue.

twizmwazin avatar Jun 14 '23 03:06 twizmwazin