-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Simplify the questions page #4413
Comments
Refer #4255 for discussion. |
Hey, I could help in this one! |
Great |
Could you please elaborate more on this? I have read the discussion at #4255 but could you tell me exactly what is to be linked with what? Thank you very much and I am so sorry if I bother you too much |
You can check the current design at pl. We have different buttons. Now we want to club them together as shown in the design given above. |
Also please see that some buttons will be only viewed to the admin or moderator while other buttons will be viewed by non admins and non moderators only. |
For the other two buttons let's ask @jywarren. I think become a moderator should open up email to moderation@publiclab.org . |
Absolutely, so if I have got this right, this is what needs to be done:
We'll be waiting for @jywarren for the remaining 2 buttons. Have I got it right? |
I think we are missing something.
Please try to access local host by logging through moderator and as a
normal user. We may need more buttons.
Also we may need to incorporate this design for many places like notes,
wiki's, comments.
We should wait till @jywarren returns from the vacation. Hope he is having
a great time.
I think we should also have button for marking as not spam for the
questions reported as spam but found non spam.
…On Thu, Dec 27, 2018, 6:49 PM Isha Gupta ***@***.*** wrote:
Absolutely, so if I have got this right, this is what needs to be done:
1.
On clicking the flag button now, a popover will be displayed, that
popover will contain:
Flag post to moderators, Spam post, Spam post and ban user for
admins/moderators
Flag post to moderators, become a moderator for non admin/non
moderators
2.
Flag post to moderators will be linked to Mozilla Thunderbird etc. for
email purposes
Spam post will be linked to the link which is accessible to
admin/moderator currently
We'll be waiting for @jywarren <https://github.com/jywarren> for the
remaining 2 buttons.
Have I got it right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ68UlTn7hC2UiW8dtc8-txe1rcwGks5u9Mj9gaJpZM4ZiDId>
.
|
Yes I agree, it would be wise to wait for @jywarren to get the correct idea about the functionality. I hope he is having an amazing time :D |
Yes it is the expected behaviour.
Thanks
…On Thu, Dec 27, 2018, 7:07 PM Isha Gupta ***@***.*** wrote:
Yes I agree, it would be wise to wait for @jywarren
<https://github.com/jywarren> to get the correct idea about the
functionality. I hope he is having an amazing time :D
When a user, be it moderator or normal, asks a question for the first
time, moderator has to mark it approved or spam.
For the next time onwards, the question is posted. On clicking th flag
button, the setup for mail account is shown for now. I think once its set
up, the original functionality will be displayed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ5KIosbqzKK2_Wehrjh2I9zI-ZSRks5u9M0ogaJpZM4ZiDId>
.
|
Any updates here @SidharthBansal ? |
Most of the mentors are on vacations for celebrating the new year. As soon as they will arrive they will respond. We need to wait till 3-4 January I guess at least for this. |
Yes, I thought so too. Thank you so much for your help, I'll see what all I can help on in the meanwhile. I hope our mentors have an amazing vacation! |
What if we add an if-else for the icons only.. This working is right now on /comments |
Yes we expect the similar behaviour.
…On Mon, Dec 31, 2018, 3:25 AM Oorjit Chowdhary ***@***.*** wrote:
What if we add an if-else for the icons only..
So we could do 'if user' -> fa fa-flag and open email
'if moderator' -> fa fa-spam and the spam function
This working is right now on /comments
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ64FtKpigHZ51FzIM7VcteOuF3gtks5u-TZJgaJpZM4ZiDId>
.
|
Let's hold on this issue until Jeff comes.
On Mon, Dec 31, 2018, 4:06 PM Sidharth Bansal <bansal.sidharth2996@gmail.com
wrote:
… Yes we expect the similar behaviour.
On Mon, Dec 31, 2018, 3:25 AM Oorjit Chowdhary ***@***.***
wrote:
> What if we add an if-else for the icons only..
> So we could do 'if user' -> fa fa-flag and open email
> 'if moderator' -> fa fa-spam and the spam function
>
> This working is right now on /comments
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#4413 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AUACQ64FtKpigHZ51FzIM7VcteOuF3gtks5u-TZJgaJpZM4ZiDId>
> .
>
|
yes @oorjitchowdhary we expect it only, thanks a lot! |
This is correct! The extra buttons - we can do in a follow-up. The idea is
that we put 2 functions into one button to save space. But the added
advantage later is that now that we don't need to worry about space, we can
have more finer-grained options for banning. For example, we might have
separate means to ban a user, vs. to ban and also ban all their individual
comments. Or just ban the comment but not all other comments by that user.
Moderators can then take some finer grained control over how they work. But
it could be done in follow-up as some more admin_controller routes may be
necessary!
Thanks!
…On Mon, Dec 31, 2018 at 8:15 AM Isha Gupta ***@***.***> wrote:
yes @oorjitchowdhary <https://github.com/oorjitchowdhary> we expect it
only, thanks a lot!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ9gTTmoxXQluI-6WXE7-V14_ZOouks5u-g3GgaJpZM4ZiDId>
.
|
Okay so @jywarren @SidharthBansal should I start with this for now? |
Yes, thanks
…On Thu, Jan 3, 2019, 1:18 PM Isha Gupta ***@***.*** wrote:
Absolutely, so if I have got this right, this is what needs to be done:
1. On clicking the flag button now, a popover will be displayed, that
popover will contain:
Flag post to moderators, Spam post, Spam post and ban user for
admins/moderators
Flag post to moderators, become a moderator for non admin/non
moderators
2. Flag post to moderators will be linked to Mozilla Thunderbird etc.
for email purposes
Spam post will be linked to the link which is accessible to
admin/moderator currently
We'll be waiting for @jywarren <https://github.com/jywarren> for the
remaining 2 buttons.
Have I got it right?
Okay so @jywarren <https://github.com/jywarren> @SidharthBansal
<https://github.com/SidharthBansal> should I start with this for now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ8bOef8ku96itdC3nYau1NsTqCC2ks5u_bWzgaJpZM4ZiDId>
.
|
Hey @SidharthBansal I think I have completed most of this issue, but the part where I am getting stuck is, I am not able to render the partial I have created for the buttons as data-content of a bootstrap popover. I have tried several different ways, even from our codebase, but there seems to be some bug in rendering it, could you help me out here with this? Thanks a lot! |
Also, I am not able to find the route for this page https://publiclab.org/wiki/moderation in routes.rb, what should I link "become a moderator" to in the meanwhile? |
Possibly, the link "become a moderator" should go to "mailto:moderators@publiclab.org"? |
Isn't "flag post to moderators" linked to the same? |
ah, /wiki/moderation exists on production so we can leave it like that -
it's a great idea! Then 'flag' is the email. Thanks!
…On Thu, Jan 3, 2019 at 12:04 PM Isha Gupta ***@***.***> wrote:
Isn't "flag post to moderators" linked to the same?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ7fTVrzCd2hD4AEeE6wZ8ZlgPXMYks5u_jgMgaJpZM4ZiDId>
.
|
Okay @jywarren ! Thank you sir! |
Okay @SidharthBansal @jywarren , so here's what I have implemented: For moderators/admins: Flag post to moderators is linked to email. For users (when signed in): Flag post to moderators is linked to email. For users (when they aren't logged in): The flag button would simply show up the login modal, as there is no meaning to display the options which require the user to login. Please have a look at it and please let me know if any changes are required. (PS: I have made a partial, as suggested, for rendering the content inside the popover) |
Can you please open up a PR and paste these screenshots there?
This will help us to guide you in a better way.
Thanks
…On Thu, Jan 3, 2019 at 11:54 PM Isha Gupta ***@***.***> wrote:
Okay @SidharthBansal <https://github.com/SidharthBansal> @jywarren
<https://github.com/jywarren> , so here's what I have implemented:
For moderators/admins:
[image: image]
<https://user-images.githubusercontent.com/40794215/50654363-992d7800-0fb2-11e9-9e32-dc803c40c3da.png>
Flag post to moderators is linked to email.
Spam post is linked to "/moderate/spam/<%= node.id %>", which was
originally a separate 'Spam' button.
For users (when signed in):
[image: image]
<https://user-images.githubusercontent.com/40794215/50653825-d0028e80-0fb0-11e9-8614-3ae6a7f2c17f.png>
Flag post to moderators is linked to email.
Become a moderator is linked to /moderators which is available in
production as /wiki/moderation
For users (when they aren't logged in):
The flag button would simply show up the login modal, as there is no
meaning to display the options which require the user to login.
[image: image]
<https://user-images.githubusercontent.com/40794215/50654403-c24e0880-0fb2-11e9-8277-1c0fa725e26f.png>
Please have a look at it and please let me know if any changes are
required.
(PS: I have made a partial, as suggested, for rendering the content inside
the popover)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ3i6UiqlXP0lb4oTiICuTX8olKTRks5u_krkgaJpZM4ZiDId>
.
|
#4511 is the link to my PR. I am waiting for approval, do let me know what else I can do! Thanks a ton! |
@IshaGupta18 just checking, have you linked the login modals to all the new buttons created in the pr. I commented here because I don't want to diverge the nice conversation going on between you and Jeff. |
I am so so sorry, I don't know how I didn't receive this mail and it's been five days. |
Yes I have linked the login modal to the flag button when the user is not signed in, I think that was what I was supposed to do. The modal will be shown to the user if he's not logged in and clicks on the flag button and consequently the popover won't be displayed. Once again I am very sorry for missing out on the mail. |
Great!
…On Thu, Jan 10, 2019, 10:34 PM Isha Gupta ***@***.*** wrote:
Yes I have linked the login modal to the flag button when the user is not
signed in, I think that was what I was supposed to do. The modal will be
shown to the user if he's not logged in and clicks on the flag button and
consequently the popover won't be displayed. Once again I am very sorry for
missing out on the mail.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4413 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ2JuCKycbpkB7H2EoFeDRBA1DaCzks5vB3KtgaJpZM4ZiDId>
.
|
* Fixes #4413 Simplify the questions page * Updating the test file * Updating test 2 * Updating test 3 * Updating test 4 * Attempting @response.match fix * Fixing indentation * Fixing indentation again * Update home_controller_test.rb * Refactoring flag_list partial code and changing test in home controller * Update home_controller_test.rb * Update home_controller_test.rb * Adding assert_equal in test * Update home_controller_test.rb
* Fixes publiclab#4413 Simplify the questions page * Updating the test file * Updating test 2 * Updating test 3 * Updating test 4 * Attempting @response.match fix * Fixing indentation * Fixing indentation again * Update home_controller_test.rb * Refactoring flag_list partial code and changing test in home controller * Update home_controller_test.rb * Update home_controller_test.rb * Adding assert_equal in test * Update home_controller_test.rb
As per @jywarren's suggestion, we want to change the design to

See publiclab.org/questions/
app/views/questions/show.html.erb
Refer #4255 (comment)
Related to #4159.
The text was updated successfully, but these errors were encountered: