Add ability to hide content from front page#10024
Conversation
|
@alecslupu keep in mind the changes you made to frontend files (mainly) can be overwritten with the redesign. In this case, flag modal changes will lose, due to the refactor we're doing in #9852 |
b053cee to
20a391b
Compare
c936da6 to
0c227f3
Compare
0c227f3 to
5d147bf
Compare
andreslucena
left a comment
There was a problem hiding this comment.
I had some general suggestions to make, but after seeing the changes from #9852, I think that we should expedite that PR (as its longer, had more work already and its pretty close to be merge). After that one is merge I think we can retake that, just applying it to the new design.
Just skimming in the code, I think that this will mean a big change (like the current FlagModalCell isn't used anymore, now it's on ReportButtonCell, https://github.com/decidim/decidim/blob/feature/redesign-action-buttons/decidim-core/app/cells/decidim/report_button/flag_modal.erb)
Sorry for not seeing this until its too late 😞
decidim-core/app/packs/src/decidim/change_report_form_behavior.js
Outdated
Show resolved
Hide resolved
decidim-core/app/packs/src/decidim/change_report_form_behavior.js
Outdated
Show resolved
Hide resolved
@andreslucena don't worry. the changes are not that big, and once you merge #9852 i can take this and change it. Just want to make sure that the new Report Button is being used by the old interface as well. |
989b1f6 to
57f1295
Compare
11e4370 to
bfb9f8e
Compare
|
@andreslucena #9852 has been merged. I have updated the branch, and can confirm that it works with old design and re design. Currently is waiting your input. |
ahukkanen
left a comment
There was a problem hiding this comment.
Works great! Tested this for normal admins, process admins and process moderators and all those roles can see the hide control. Alongside this, also eagerly waiting for #10111. 🎉
Just a question, is it by design that process valuators can also see the hiding controls? I understand that this might be by design but it just seemed a bit weird to me.
Also, added one comment to improve the specs and one comment to improve the code.
decidim-core/lib/decidim/core/test/shared_examples/reports_examples.rb
Outdated
Show resolved
Hide resolved
bfb9f8e to
7b1c732
Compare
I have logged in as a valuator on my local environment, and i can successfully see the global moderation section, which is displaying the places where i have access to. for that particular reportable resource i can also use the hide functionality. If is something to be changed regarding whether a valuator could or could not hide a resource, i would say is not in the scope of this PR. @decidim/maintainers I think all the required changes have been made, therefore, please review. |
Yes this is exactly what I meant, are valuators supposed to be able to moderate content? @decidim/product Could you shed some light whether valuators should be able to moderate content within the participatory space? |
@ahukkanen I confirm that they shouldn't, and it should be treated as a bug. |
|
Should it treated within this task?
It seems this could be an entire new issue.
On Thu, 22 Dec 2022 at 18:19, Carolina Romero ***@***.***> wrote:
Could you shed some light whether valuators should be able to moderate
content within the participatory space?
@ahukkanen <https://github.com/ahukkanen> I confirm that they shouldn't,
and it should be treated as a bug.
—
Reply to this email directly, view it on GitHub
<#10024 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZZU6WVJDAVNZ7TKMOARTWOR5MVANCNFSM6AAAAAARV3SQOQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
--
Sent from Gmail Mobile
|
I agree, we should report it as a bug as I believe it also applies to the current version. Just wanted to make sure that this was not intentional. |
It seems the comments were already resolved from this review.
🎩 What? Why?
This PR adds a checkbox in the report form that will allow the admin to directly hide the content of an user.
This PR depends on : #9852
Ref: SPAM04
📌 Related Issues
Link your PR to an issue
Testing
📷 Screenshots
Please add screenshots of the changes you're proposing
