Record Comments Extension- Collapsible Comment Threads- Notifications needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harrytruman
    Senior Member
    • Jun 2023
    • 108

    #1

    Record Comments Extension- Collapsible Comment Threads- Notifications needed

    Hello everyone,

    Just found this great extension that allows users to post threaded comments to a record, available for free on github: GitHub - mozkomor05/espocrm-comments-extension: Comments extension make it possible to add collapsable comment threads to any entity.

    Very easy to install and appears to work so far.

    Has anyone else tried this? I can't figure out how to send notifications to users (when a new comment is posted) who follow the record, like posts in a stream. When I go to the entity manager (see screenshot below) the comments entity is shaded and I can't click on it. This extension is perfect if users are alerted to new comments in their records, or records they follow. Thanks everyone.​
  • ChrisSka83
    Senior Member
    • Apr 2023
    • 232

    #2
    How did they get the extension to work?

    It absolutely does not work for me.
    After installation, the "Comments" entry is missing in the entity settings.
    And in addition, I can no longer get into any record in the entities.​

    Comment

  • harrytruman
    Senior Member
    • Jun 2023
    • 108

    #3
    Originally posted by ChrisSka83
    How did they get the extension to work?

    It absolutely does not work for me.
    After installation, the "Comments" entry is missing in the entity settings.
    And in addition, I can no longer get into any record in the entities.​
    Initially, it didn't work for me either. I had to click rebuild and refresh the browser. Then it worked. It's still working as of this morning.

    Comment


    • ChrisSka83
      ChrisSka83 commented
      Editing a comment
      I have done this several times, but it just does not work for me. Too bad actually, would have been quite practical.
  • harrytruman
    Senior Member
    • Jun 2023
    • 108

    #4
    This looks promising: Chats extension for EspoCRM - Payhip

    It's only $79 and allows three different kinds of chats. Private, Public, and Team.

    It also has a notification function. Huge plus!

    Has anyone had experience with this extension? It's from a website called TelecastGroupSoftware. Thanks. ​

    Comment

    • esforim
      Active Community Member
      • Jan 2020
      • 2205

      #5
      I haven't' personally use it but telecastg provide lots of community support. He also seem quite efficient in EspoCRM system.

      Comment

      • harrytruman
        Senior Member
        • Jun 2023
        • 108

        #6
        Originally posted by espcrm
        I haven't' personally use it but telecastg provide lots of community support. He also seem quite efficient in EspoCRM system.
        Thanks for the feedback. I'll give it a try.

        Comment

        • harrytruman
          Senior Member
          • Jun 2023
          • 108

          #7
          @telecastg​ I recently purchased the Chats extension for EspoCRM - Payhip

          This is working OK so far. Is there a way to notify users of new comments (in the dashlet), only for the records they follow? Thanks.

          Comment

          • murugappan
            Active Community Member
            • Aug 2017
            • 489

            #8
            Hi,

            There are 2 other extensions from the same person. Please check them out.

            (1) Email Preview : https://github.com/mozkomor05/espocr...view-extension
            (2) Login as User: https://github.com/mozkomor05/espocr...user-extension

            Comment


            • murugappan
              murugappan commented
              Editing a comment
              Hi esforim, I understand. I am stating that are 2 other interesting extension from mozkomor05. More of an awareness to anyone interested not specifically for telecastg. Ah, i see, my statement "from the same person" generated the confusion. So sorry.

            • esforim
              esforim commented
              Editing a comment
              Kharg also release extension too on his Github

            • murugappan
              murugappan commented
              Editing a comment
              @espocrm,

              Kharg's extensions are fantastic too. I downloaded them and testing them with our apps. Thank you.
          • harrytruman
            Senior Member
            • Jun 2023
            • 108

            #9
            Hi Everyone, I'm bumping this discussion back to the team. I'd really love to find a way to add Collapsible Comment Threads to the Stream (similar to Reddit). Any ideas are greatly appreciated. Even an integration solution or updates to the extension mentioned above: Not compatible with version 7.4.3 · Issue #2 · mozkomor05/espocrm-comments-extension · GitHub​ Thanks everyone!

            Comment


            • Kharg
              Kharg commented
              Editing a comment
              No promises, but I'll see if I can do something
          • harrytruman
            Senior Member
            • Jun 2023
            • 108

            #10
            Hi Kharg, much appreciated. The young developer who wrote this extension a couple of years ago did an amazing job. I mostly got it to work last year before the recent system updates but now it's having trouble. Thanks for offering to take a look at this. It would be incredibly helpful to our users.

            Comment

            • harrytruman
              Senior Member
              • Jun 2023
              • 108

              #11
              Hi Kharg, just checking in to see if you have any new thoughts on this collapsable thread extension for stream. I'm going to try Cursor AI this weekend and see if I can use natural language commands to update the code. I'm hearing more and more amazing things about these AI code builders. Please let me know if you've had a chance to look at this extension. Thanks!

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                Hello,

                I’ve made some progress, but it’s still not functioning, seems that it needs a lot of work to be made working again.
            • harrytruman
              Senior Member
              • Jun 2023
              • 108

              #12
              Hi Kharg, thank you for the update and for taking the time to work on this. I think this could be an amazing tool for Espo one day. Hopefully, together we can make it work!

              Comment

              • harrytruman
                Senior Member
                • Jun 2023
                • 108

                #13
                Hi Kharg, still working on this one. From what I can see this extension creates a new comments entity and does not use the notes entity as the Stream feature does. Do you think it makes sense to continue working on this extension or instead modifying the espocrm codebase to enable nested comments, reply button, etc.? I'm wondering if by creating a new comments entity it will reduce functionality with other system features (notifications, etc.) or cause problems with future espocrm updates. Thanks.

                mozkomor05/espocrm-comments-extension | DeepWiki

                Click image for larger version

Name:	image.png
Views:	4
Size:	15.8 KB
ID:	117372

                Comment


                • harrytruman
                  harrytruman commented
                  Editing a comment
                  By the way, here's the answer from AI with the extension codebase as context:https://deepwiki.com/search/i-want-t...4-b65624c078bf


                  Customizing EspoCRM Comments Stream Feature
                  After examining the EspoCRM codebase, I recommend creating a new installable extension rather than modifying the core codebase. Here's my analysis:

                  Current Implementation
                  The stream feature in EspoCRM currently:

                  Displays comments/posts in a flat structure (no nesting) panel.js:35-38
                  Already supports reactions to posts post.js:227-258
                  Has a quote-reply feature but not direct threaded replies default.js:129-137
                  Required Changes for Your Customization
                  To implement nested/threaded comments, reply button, and reactions, you would need to:

                  Data Model Changes:
                  Add a parentNoteId field to the Note entity to establish parent-child relationships
                  UI Component Changes:
                  Modify the stream panel view to render nested comments with proper indentation
                  Add a reply button to each comment
                  Implement threaded display logic for comments
                  Backend Changes:
                  Modify API endpoints to handle the parent-child relationship for notes
                  Why an Extension is Better
                  Creating an extension is recommended because:

                  Core Code Preservation:
                  EspoCRM's stream implementation is complex and tightly integrated panel.js:157-205
                  Modifying core files would make future updates difficult
                  Better Maintainability:
                  Extensions have a clear structure with manifest.json defining all components
                  Your changes will be isolated and won't be overwritten during updates
                  Distribution Benefits:
                  An extension can be easily shared and installed on other EspoCRM instances
                  Clean Development Approach:
                  Extensions follow EspoCRM's recommended way to add significant new functionality
                  Extension Structure
                  Your extension should include:

                  Custom entities/fields:
                  Add the necessary fields to support nested comments
                  Override core views:
                  Override views/stream/panel.js, views/stream/notes/post.js, and related views
                  Add new views for threaded comments display
                  manifest.json:
                  Define your extension metadata, dependencies, and version compatibility Base.php:184-198
                  Implementation Considerations
                  The quote-reply functionality already provides some foundation for your feature:

                  actionQuoteReply(data) {
                  // ...code for handling quote replies...
                  this.trigger('quote-reply', code);
                  }
                  list.js:275-327

                  You can extend this pattern to implement a direct reply feature that maintains the parent-child relationship.

                  For reactions, EspoCRM already has robust support you can leverage:

                  async react(type) {
                  // ...code for handling reactions...
                  }
                  post.js:227-259

                  Notes
                  EspoCRM provides a solid foundation with its existing stream implementation
                  The main challenge will be implementing the threaded display of comments while maintaining compatibility with future updates
                  The extension system is designed specifically for these types of customizations
                  Consider whether you need to maintain backward compatibility with existing comments
                  Creating an extension follows EspoCRM's best practices and will result in a more maintainable and upgradable solution than directly modifying the core codebase
              Working...