Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the unban functionality #7507

Open
sssash18 opened this issue Feb 15, 2020 · 21 comments · Fixed by #9230
Open

Enhance the unban functionality #7507

sssash18 opened this issue Feb 15, 2020 · 21 comments · Fixed by #9230
Labels
discussion enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute

Comments

@sssash18
Copy link
Contributor

sssash18 commented Feb 15, 2020

Please describe the problem (or idea)

What happened just before the problem occurred? Or what problem could this idea solve?
Currently if a user is banned the admin has to go to it's profile to unban the user.I would be better if the admin is provided with the unban option in the dropdown itself.
Current Behaviour
Untitled_ Feb 16, 2020 12_05 AM

What did you expect to see that you didn't?

Please show us where to look

https://publiclab.org/ ...

What's your PublicLab.org username?

This can help us diagnose the issue:

Browser, version, and operating system

Many bugs are related to these -- please help us track it down and reproduce what you're seeing!


Update from @jywarren

Hi, i think one issue here is that we are aiming to have very maintainable code and so are a little hesitant to add complex interfaces in duplicate. I wonder if we could do 2 things:

  1. could we format the banned label a bit? Off topic, but it looks a little funny, no?
  2. could we have, on a second line in the popup, something that says Unban on profile and link to the profile? this wouldn't require a test to protect new functionality and is pretty simple.
@sssash18 sssash18 added the bug the issue is regarding one of our programs which faces problems when a certain task is executed label Feb 15, 2020
@sssash18
Copy link
Contributor Author

@SidharthBansal @nstjean @cesswairimu @VladimirMikulic I would like to solve this one.Thanks

@VladimirMikulic
Copy link
Contributor

@sssash18 the is issue is unclear. In your case, the user has already been banned.

@sssash18 sssash18 changed the title Admin not able to ban from dropdown Admin not able to unban from dropdown Feb 15, 2020
@sssash18
Copy link
Contributor Author

@VladimirMikulic I think now it's fine.Sorry for the inconvenience.

@VladimirMikulic
Copy link
Contributor

👍

@sssash18
Copy link
Contributor Author

@VladimirMikulic Is this not a good idea as you closed the issue .

@VladimirMikulic
Copy link
Contributor

@sssash18 you said that it works fine now and I closed this.

@sssash18
Copy link
Contributor Author

@VladimirMikulic Actually I edited the title of issue and informed you that it's fine.

@VladimirMikulic
Copy link
Contributor

This is an issue, right?

@sssash18
Copy link
Contributor Author

This is an issue, right?

Yes it is a issue @VladimirMikulic .Thanks for reopening.

@cesswairimu
Copy link
Collaborator

This is actually not a bug its designed like that, you have to go the profile to unban a user. Maybe we can have a discussion if we need to change that.

@cesswairimu cesswairimu added discussion and removed bug the issue is regarding one of our programs which faces problems when a certain task is executed labels Feb 16, 2020
@sssash18
Copy link
Contributor Author

@cesswairimu won't it be little inconvenient for the admin to go to the user's profile and then unban it?

@cesswairimu
Copy link
Collaborator

Having the unban button there could cause being clicked accidentally

@sssash18
Copy link
Contributor Author

@cesswairimu to prevent that I have included a alert dialog box in my PR.

@cesswairimu
Copy link
Collaborator

@sssash18 still not sure about this pinging @publiclab/maintainers to get their thoughts on this

@SANJAY072000
Copy link

@cesswairimu I think instead of going to the profile we should have a list of all with a toggle button beside each list item to ban or unban profile corresponding to that list item

@jywarren
Copy link
Member

jywarren commented Aug 4, 2020

Hi, i think one issue here is that we are aiming to have very maintainable code and so are a little hesitant to add complex interfaces in duplicate. I wonder if we could do 2 things:

  1. could we format the banned label a bit? Off topic, but it looks a little funny, no?
  2. could we have, on a second line in the popup, something that says Unban on profile and link to the profile? this wouldn't require a test to protect new functionality and is pretty simple. What do you think?

@ebarry
Copy link
Member

ebarry commented Aug 5, 2020

sounds good to me to direct to the tools that already exist on profile pages

@stale
Copy link

stale bot commented Oct 7, 2020

Hi 😄, this issue has been automatically marked as stale because it has not had recent activity. Don't worry you can continue to work on this and ask @publiclab/reviewers to add "work in progress" label 🎉 . Otherwise, it will be closed if no further activity occurs in 5 days -- but you can always re-open it if you like! 💯 Thank you for your contributions 🙌 🎈.

@stale stale bot added the stale label Oct 7, 2020
@cesswairimu cesswairimu added help wanted requires help by anyone willing to contribute and removed stale labels Oct 7, 2020
@cesswairimu cesswairimu changed the title Admin not able to unban from dropdown Enhance the unban functionality Oct 7, 2020
@cesswairimu cesswairimu added the enhancement explains that the issue is to improve upon one of our existing features label Oct 7, 2020
@imajit
Copy link
Contributor

imajit commented Feb 21, 2021

@jywarren @cesswairimu i would like to work on this

@cesswairimu
Copy link
Collaborator

That's great @imajit 🎉... kindly check out Jeff's comment, that is what we would like to implement on this issue for now. Thanks

@cesswairimu
Copy link
Collaborator

cesswairimu commented Mar 18, 2021

Reopening this, tests remaining.

@cesswairimu cesswairimu reopened this Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants