You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add comprehensive visual diff system for card description changes
This commit introduces a sophisticated visual diff system that enhances
the activity feed with intelligent change detection and professional
presentation. Resolves issue #7201.
Features:
• Smart diff rendering with emoji indicators (➕✏️🗑️🚚)
• Word-level diffing for modifications with <del>/<ins> HTML tags
• Intelligent move detection for relocated unchanged content
• Special handling for checkbox state transitions (☐ ↔ ☑)
• Line number context preservation for better readability
• Noise filtering (empty lines, unchanged content)
Technical Implementation:
• New DiffService with LCS-based diff algorithm
• Enhanced activity provider with diff integration
• Multi-pass detection: moves → modifications → additions/deletions
• Similarity scoring system for optimal operation pairing
• HTML-safe output compatible with activity feed constraints
Benefits:
• Clear visualization of content changes in activity timeline
• Reduced cognitive load with filtered, relevant changes only
• Professional emoji-based change indicators
• Maintains backward compatibility with existing activity system
The system intelligently distinguishes between:
- Line moves (🚚): Exact content relocated to different position
- Modifications (✏️): Content changes with word-level highlighting
- Additions (➕): New content inserted
- Deletions (🗑️): Content removed
Tested extensively with various scenarios including complex multi-operation
changes, edge cases, and performance considerations.
Signed-off-by: Alexander Askin <[email protected]>
0 commit comments