regression: canned response emojis appear as shortcodes to livechat visitors#41558
regression: canned response emojis appear as shortcodes to livechat visitors#41558nazabucciarelli 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 |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout. (12)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (3)📚 Learning: 2026-03-06T18:10:15.268ZApplied to files:
📚 Learning: 2026-03-27T14:52:56.865ZApplied to files:
📚 Learning: 2026-05-06T12:21:44.083ZApplied to files:
🔇 Additional comments (2)
Walkthrough
ChangesCanned response emoji insertion
Sequence Diagram(s)sequenceDiagram
participant useEmojiPicker
participant CannedResponsesComposer
participant emoji.list
participant onChange
useEmojiPicker->>CannedResponsesComposer: selected emojiName
CannedResponsesComposer->>emoji.list: look up emoji metadata
emoji.list-->>CannedResponsesComposer: Unicode or missing Unicode
CannedResponsesComposer->>onChange: insert Unicode or :name: with trailing space
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.7.0 #41558 +/- ##
=================================================
+ Coverage 68.61% 68.65% +0.03%
=================================================
Files 4138 4138
Lines 159416 159421 +5
Branches 28206 28160 -46
=================================================
+ Hits 109384 109451 +67
+ Misses 44893 44842 -51
+ Partials 5139 5128 -11
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
Root cause: When inserting an emoji in the canned response text, the
CannedResponsesComposer.tsxcomponent saved the literal shortcode (e.g :grinning_face_with_big_eyes:) instead of the unicode character. I guided myself with theMessageBox.tsxcomponent, which resolved the shortcode to unicode before inserting it.To address it, the same lookup that
MessageBox.tsxdoes was implemented: look for the entry inemoji.list[':name:']and, if it has unicode, then the real character is inserted, otherwise it falls back to the shortcode.Issue(s)
CORE-2468 [Regression] Canned response emojis appear as shortcodes to Livechat visitors
Steps to test or reproduce
You'll need a EE license for the Canned Responses feature.
Messagefield.Further comments
Summary by CodeRabbit
Bug Fixes
Tests