mirror of
https://github.com/go-vikunja/vikunja.git
synced 2025-12-05 19:16:51 -06:00
When users are mentioned in task descriptions or comments, email notifications now show the user's display name (e.g., "@John Doe") instead of just the username or invisible HTML tags. Changes: - Add formatMentionsForEmail() function to parse mention-user tags and replace them with <strong>@DisplayName</strong> for email rendering - Extract display name from data-label attribute, with fallback to data-id - Update TaskCommentNotification.ToMail() to format mentions in comments - Update UserMentionedInTaskNotification.ToMail() to format mentions in task descriptions - Add comprehensive test coverage (30+ test cases) for all edge cases including special characters, unicode, emoji, old/new mention formats, and HTML preservation The implementation is backward compatible with the old mention format and gracefully handles malformed HTML by returning the original content unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>