Add comments in participatory space presentation page stats block#8034
Conversation
1786cce to
c281b3b
Compare
There was a problem hiding this comment.
Nice implementation! 👏
I like the final approach, that doesn't add dependencies for any specific module in core. But I have some doubts before merging it:
- The title and the related proposal refer to "participatory spaces", but you are only adding the stats to "participatory processes". Should we add it also to assemblies and other spaces?
- I saw that
proposalsandbudgetsalready have thecomments_countstats registered, so I understand that you are adding the missing ones (meetings). But I also found thataccountabilityandblogsalso have thecomments_countcolumn. Should we register the stats for those too? - In the screenshot I see two "COMMENTS" stats. That's a bug? It was fixed after taking the screenshot or it's still there?
I've added the wrong screenshot, sorry. I've added the correct one :D In stats should be only one "Comments" stat |
My assumption was that we should add that stat for participatory processes, but I think that we can also add it to other spaces. It will be nice to have all those spaces specified in the meta proposal, because it wasn't clear enough for me. |
|
@roxanaopr ok, maybe @decidim/product can help us with those questions |
|
Hi there! Sorry for the delay @roxanaopr and @leio10. Regarding your doubts:
in the proposal it says participatory spaces, so we assume that it refers to all spaces that have statistics, that is: Processes, Assemblies and Conferences.
Yep, we should count all comments from all components that make use of them. @roxanaopr do you think it is possible to add it, in this or another PR? Thank you! |
|
Hello @carolromero! Thank you for the response! I will add in this PR the remaining implementation. |
|
@carolromero I guess it would be great if you could raise a meta proposal and make sure that all the metrics / stats are aligned between all the participatory spaces. |
bf64cc6 to
227bcf6
Compare
…ess groups, assemblies, conferences, votings
227bcf6 to
ac1448d
Compare
leio10
left a comment
There was a problem hiding this comment.
LGTM, please let me know your opinion about my doubts.
decidim-conferences/app/presenters/decidim/conferences/conference_stats_presenter.rb
Show resolved
Hide resolved
decidim-assemblies/app/presenters/decidim/assemblies/assembly_stats_presenter.rb
Outdated
Show resolved
Hide resolved
* develop: (47 commits) New Crowdin updates (#8150) Move the webpacker config override to @decidim/webpacker (#8158) Fix admin stylesheet dynamic imports (#8154) Fix session timeout conflicting with remember me (#7467) Allow to create online meetings without an URL (#8152) Fix verification route issues (#8146) Fix dont save timeout path to session (#8142) Fix access to import CSV results in accountability (#8132) Fix user report notification reported user name (#8130) Allow users to comment and delete their own comments (#8072) New Crowdin updates (#8124) Fix webpacker issues (#8136) Add comments in participatory space presentation page stats block (#8034) Split NPM dependencies to more granular packages (#8121) Metric is not shown when value is zero for blocked and reported users (#8117) Add missing templates translations (#8133) Add missing translation for authorization_modals (#8129) Polls in meetings (#8065) Fix flaky test on initiatives (#8128) Filter participants admin (#8104) ...
🎩 What? Why?
Add comments count for each topic on the About page, similar to the homepage statistics block.
📌 Meta Proposal
https://meta.decidim.org/processes/roadmap/f/122/proposals/16344
📌 Related Issues
Link your PR to an issue
Testing
Describe the best way to test or validate your PR.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots