fix: enable text wrapping for omnichannel transfer comments in system messages#36781
fix: enable text wrapping for omnichannel transfer comments in system messages#36781rajanarahul93 wants to merge 3 commits into
Conversation
|
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
WalkthroughAdded inline styling to the system message container to preserve whitespace and enable word-wrapping; the message content rendering remains unchanged and still uses Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/meteor/client/components/message/variants/SystemMessage.tsx (1)
93-93: Remove redundantwordWrapproperty.The
wordWrapproperty is deprecated and redundant sinceoverflowWrap: 'break-word'already provides the same functionality with the modern CSS property.Apply this diff to remove the redundant property:
-<MessageSystemBody data-qa-type='system-message-body' style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word', overflowWrap: 'break-word' }}> +<MessageSystemBody data-qa-type='system-message-body' style={{ whiteSpace: 'pre-wrap', overflowWrap: 'break-word' }}>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
apps/meteor/client/components/message/variants/SystemMessage.tsx(1 hunks)
Summary
Fixed the issue where omnichannel transfer comments were not wrapping to multiple lines in system messages, instead showing truncated text with "...". This affects the readability of transfer comments in the omnichannel workflow.
Root Cause
The
MessageSystemBodycomponent in system messages lacked CSS properties for proper text wrapping, causing long transfer comments to overflow and display as truncated text.Changes
MessageSystemBodycomponent inSystemMessage.tsxwhiteSpace: 'pre-wrap',wordWrap: 'break-word', andoverflowWrap: 'break-word'propertiesTesting
Risk Assessment
stylepropRelated Issues
Compliance
Summary by CodeRabbit
Bug Fixes
Style