Skip to content

fix: add text wrapping to omnichannel transfer comment#40873

Open
li5435945-ship-it wants to merge 2 commits into
RocketChat:developfrom
li5435945-ship-it:fix/26723-omnichannel-comment-wrap
Open

fix: add text wrapping to omnichannel transfer comment#40873
li5435945-ship-it wants to merge 2 commits into
RocketChat:developfrom
li5435945-ship-it:fix/26723-omnichannel-comment-wrap

Conversation

@li5435945-ship-it

@li5435945-ship-it li5435945-ship-it commented Jun 10, 2026

Copy link
Copy Markdown

Fixes #26723

Description

This PR adds to the component to allow omnichannel transfer comments to wrap to multiple lines instead of being truncated.

Changes

  • Added to in
  • Added to in

Testing

  1. Transfer an omnichannel conversation to another agent with a long comment
  2. Verify that the comment text wraps to multiple lines instead of being truncated

Related Issues

Fixes #26723

Summary by CodeRabbit

  • Bug Fixes
    • System messages now preserve whitespace and line breaks, improving readability.
    • Omnichannel conversation-closed messages in contact history display proper wrapping and formatting.

Add white-space: pre-wrap to MessageSystemBody component to allow
transfer comments to wrap to multiple lines instead of being truncated.

Fixes RocketChat#26723
@li5435945-ship-it li5435945-ship-it requested a review from a team as a code owner June 10, 2026 08:02
@dionisio-bot

dionisio-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 10784e9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant

CLAassistant commented Jun 10, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 09d01197-3923-44ec-accc-39530eb1849f

📥 Commits

Reviewing files that changed from the base of the PR and between 9b33146 and 10784e9.

📒 Files selected for processing (1)
  • .changeset/fix-omnichannel-comment-wrap.md
✅ Files skipped from review due to trivial changes (1)
  • .changeset/fix-omnichannel-comment-wrap.md
📜 Recent review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: cubic · AI code reviewer

Walkthrough

This PR applies inline white-space: pre-wrap to system message renderings (general system messages and omnichannel conversation-closed messages) and adds a changeset noting the UI patch.

Changes

System Message Whitespace Preservation

Layer / File(s) Summary
System message whitespace preservation
apps/meteor/client/components/message/variants/SystemMessage.tsx, apps/meteor/client/views/omnichannel/contactHistory/MessageList/ContactHistoryMessage.tsx, .changeset/fix-omnichannel-comment-wrap.md
MessageSystemBody now receives style={{ whiteSpace: 'pre-wrap' }} so system messages (including omnichannel close/transfer comments) preserve line breaks and wrap; a changeset was added for a patch release.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: adding text wrapping to omnichannel transfer comments, which directly addresses the core issue.
Linked Issues check ✅ Passed The changes implement the required fix for issue #26723 by adding white-space: pre-wrap styling to preserve line breaks in transfer comment text across both SystemMessage and ContactHistoryMessage components.
Out of Scope Changes check ✅ Passed All changes are directly scoped to fixing the omnichannel transfer comment wrapping issue; no unrelated modifications to other functionality are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot removed the type: bug label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Omnichannel transfer comment is not wrapped to multiple lines

2 participants