Skip to content

refactor(project-view-updates): optimize comment handling and renderi…#163

Merged
chamikaJ merged 4 commits intoWorklenz:release/v2.0.4from
shancds:fix/customer-feedback
Jun 19, 2025
Merged

refactor(project-view-updates): optimize comment handling and renderi…#163
chamikaJ merged 4 commits intoWorklenz:release/v2.0.4from
shancds:fix/customer-feedback

Conversation

@shancds
Copy link
Copy Markdown
Contributor

@shancds shancds commented Jun 19, 2025

…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.

shancds added 4 commits June 19, 2025 10:40
…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.
@chamikaJ chamikaJ merged commit 69cd40d into Worklenz:release/v2.0.4 Jun 19, 2025
1 check passed
@shancds shancds deleted the fix/customer-feedback branch July 15, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants