refactor(project-view-updates): optimize comment handling and renderi…#163
Merged
chamikaJ merged 4 commits intoWorklenz:release/v2.0.4from Jun 19, 2025
Merged
Conversation
…ng logic - Introduced useMemo and useCallback hooks to enhance performance and prevent unnecessary re-renders. - Refactored comment rendering logic into a separate function for better readability and maintainability. - Updated mentionsOptions to utilize useMemo for efficient computation based on members. - Improved comment change handling and member selection logic for a smoother user experience. - Cleaned up code by removing redundant comments and optimizing dependencies in useEffect hooks.
…mments - Implemented linkification for URLs in comments, allowing users to click and open links in a new tab. - Introduced a context menu for each comment with an option to delete, enhancing user interaction. - Refactored comment rendering to include link handling and improved code organization.
…d sanitization - Added a utility to linkify URLs in comments, allowing users to click and open links. - Refactored comment content processing to handle both mentions and links, improving user interaction. - Updated the sanitizeHtml function to allow <span> tags for mentions, enhancing content display.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ng logic