Feat: Add support to Action Text enabled content#365
Open
chagel wants to merge 11 commits intocrmne:mainfrom
Open
Feat: Add support to Action Text enabled content#365chagel wants to merge 11 commits intocrmne:mainfrom
chagel wants to merge 11 commits intocrmne:mainfrom
Conversation
Improved the `extract_content` method to correctly process Action Text. When `message` model uses `has_rich_text :content`, `message.content` becomes `ActionText:RichText`, returning HTML tags unintentionally. Adjustments ensure only the desired content is extracted.
Author
@crmne Added basic tests and modified dummy app for instance double. |
crmne
requested changes
Aug 30, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #365 +/- ##
==========================================
+ Coverage 84.65% 84.68% +0.02%
==========================================
Files 35 35
Lines 1825 1828 +3
Branches 492 494 +2
==========================================
+ Hits 1545 1548 +3
Misses 280 280 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Improved the
extract_contentmethod to correctly process Action Text. Whenmessagemodel useshas_rich_text :content,message.contentbecomesActionText:RichText, returning HTML tags unintentionally. Adjustments ensure only the desired content is extracted.Type of change
Scope check
Quality check
overcommit --installand all hooks passmodels.json,aliases.json)API changes
Related issues