Refactor comments: get rid of react#6498
Conversation
|
Oh my <3 You'vee got my full support here @ahukkanen, thanks for taking care of that! 😍 |
|
Awesome! 🚀 |
- Fix display of comment replies and the conversation title - Show reply only when able to reply - Add blocked comments messages
- Add functionality to the front-end comment alignment buttons - Implement enabling/disabling the send comment button depending on the comment field content
- Implement add comment and reply to comment - Fix problems with the cells in different situations and the single comment view
This makes the comments polling order aware.
The comment length comparison would fail if this returns nil.
I have added dynamic updates to the comments counter when comment or reply is added.
I have merged with develop.
I have gone through these. |
|
thanks for the fast feedback @ahukkanen |
|
@tramuntanal I don't quite understand? I did I don't see any conflicts with locale files. The only changes I've done with locale are with the comments en locale file which are relevant for this PR. I see changes in 116 files which are correct. I have fixed the conflict with CHANGELOG caused by the squash commits, that's the only issue I saw. |
|
A bit less than half of the added lines are tests. 😉 |
|
Today you are right @ahukkanen , yesterday I was seeing "93 / 603 files viewed" and there were that much of files many corresponding to locales... It is very strange, maybe GitHub compared to another branch by error... I don't know.. Anyway, today it everything appears ok! |
tramuntanal
left a comment
There was a problem hiding this comment.
Very good job again Antti!
decidim-comments/app/controllers/decidim/comments/comments_controller.rb
Show resolved
Hide resolved
|
OH MY ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ congratulations and thank you @ahukkanen for your work! <3 |

🎩 What? Why?
The current comments component is an overly complex separate component in Decidim built currently in React which is extremely difficult to customize due to having to "fork" the whole React application away from Decidim core. It currently feels like a completely separate system inside the Decidim framework.
This PR refactors the comments component to work through cells and vanilla JS as developers would expect when working with the framework.
📌 Related Issues
📋 Subtasks
CHANGELOGupgrade notes, if required